Skip to content

Commit

Permalink
Removed test by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed Jun 10, 2024
1 parent 678b9b0 commit 4f58d28
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ class EtorDomainRegistrationTest extends Specification {
endpoints.get(consolidatedOrdersEndpoint) != null
}

def "domain registration has endpoints when DB_URL is not found"() {
given:
def domainRegistration = new EtorDomainRegistration()
def ordersEndpoint = new HttpEndpoint("POST", EtorDomainRegistration.ORDERS_API_ENDPOINT, true)
def metadataEndpoint = new HttpEndpoint("GET", EtorDomainRegistration.METADATA_API_ENDPOINT, true)
def consolidatedOrdersEndpoint = new HttpEndpoint("GET", EtorDomainRegistration.CONSOLIDATED_SUMMARY_API_ENDPOINT, true)
TestApplicationContext.addEnvironmentVariable("DB_URL", "")

when:
def endpoints = domainRegistration.domainRegistration()

then:
!endpoints.isEmpty()
endpoints.get(ordersEndpoint) != null
endpoints.get(metadataEndpoint) != null
endpoints.get(consolidatedOrdersEndpoint) != null
}

def "RSEndpointClient uses the right implementation depending if REPORT_STREAM_URL_PREFIX is present or not"() {
given:
def domainRegistration = new EtorDomainRegistration()
Expand Down

0 comments on commit 4f58d28

Please sign in to comment.