diff --git a/matchbox-server/src/test/java/ch/ahdis/matchbox/test/MatchboxApiTest.java b/matchbox-server/src/test/java/ch/ahdis/matchbox/test/MatchboxApiTest.java index 94c86457ec8..1ac68648f17 100644 --- a/matchbox-server/src/test/java/ch/ahdis/matchbox/test/MatchboxApiTest.java +++ b/matchbox-server/src/test/java/ch/ahdis/matchbox/test/MatchboxApiTest.java @@ -217,10 +217,11 @@ public void verifyCachingImplementationGuides() { assertEquals("n/a", this.getTxServer(contextR4, operationOutcome)); // add new parameters should create a new validation engine for default validation - // operationOutcome = validationClient.validate(resource, profileCore); - // String sessionId3CoreTxNa = getSessionId(contextR4, operationOutcome); - // assertEquals(0, getValidationFailures((OperationOutcome) operationOutcome)); - // assertNotEquals(sessionIdCore, sessionId3CoreTxNa); + operationOutcome = validationClient.validate(resource, profileCore, parameters); + String sessionId3CoreTxNa = getSessionId(contextR4, operationOutcome); + assertEquals(0, getValidationFailures((OperationOutcome) operationOutcome)); + assertNotEquals(sessionIdCore, sessionId3CoreTxNa); + assertEquals("n/a", this.getTxServer(contextR4, operationOutcome)); } @Test diff --git a/matchbox-server/validation-fhir-tests.http b/matchbox-server/validation-fhir-tests.http index 77b51f7e628..f0a6382f3a7 100644 --- a/matchbox-server/validation-fhir-tests.http +++ b/matchbox-server/validation-fhir-tests.http @@ -1,8 +1,8 @@ -@host = https://test.ahdis.ch/matchboxv3/fhir -### @host = http://localhost:8080/matchboxv3/fhir +### @host = https://test.ahdis.ch/matchboxv3/fhir +@host = http://localhost:8081/matchboxv3/fhir ### @host = http://hapi.fhir.org/baseR4 -## No issues detected during validation +### No issues detected during validation POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Basic HTTP/1.1 Accept: application/fhir+json Content-Type: application/fhir+xml @@ -18,6 +18,22 @@ Content-Type: application/fhir+xml +### No issues detected during validation +POST {{host}}/$validate?profile=http://hl7.org/fhir/StructureDefinition/Basic&txServer=n/a HTTP/1.1 +Accept: application/fhir+json +Content-Type: application/fhir+xml + + + + + + + + + + + + ### No issues detected during validation POST {{host}}/$validate?profile=http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict HTTP/1.1 Accept: application/fhir+json