fix(c/fhir) FHIR connector test failures
@@ -18,7 +18,6 @@ package io.syndesis.connector.fhir;
import ca.uhn.fhir.rest.api.MethodOutcome;
import io.syndesis.common.model.integration.Step;
import org.hl7.fhir.dstu3.model.OperationOutcome;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
@@ -28,7 +27,6 @@ import static com.github.tomakehurst.wiremock.client.WireMock.okXml;
import static com.github.tomakehurst.wiremock.client.WireMock.patch;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
-@Disabled("https://github.com/syndesisio/syndesis/issues/9504")
public class FhirPatchWithBodyTest extends FhirTestBase {
@Override
@@ -43,7 +41,7 @@ public class FhirPatchWithBodyTest extends FhirTestBase {
@Test
public void shouldPatchWithBodyTest() {
- stubFhirRequest(patch(urlEqualTo("/Patient/1?_format=xml")).willReturn(okXml(toXml(new OperationOutcome()))));
+ stubFhirRequest(patch(urlEqualTo("/Patient/1")).willReturn(okXml(toXml(new OperationOutcome()))));
template().requestBody("direct:start",
"{\"id\":\"1\", \"1\": {\"op\":\"replace\", \"path\":\"active\", \"value\":true}}", MethodOutcome.class);
@@ -51,7 +49,7 @@ public class FhirPatchWithBodyTest extends FhirTestBase {
@Test
public void shouldPatchWithBodyWithoutOpTest() {
- stubFhirRequest(patch(urlEqualTo("/Patient/1?_format=xml")).willReturn(okXml(toXml(new OperationOutcome()))));
+ stubFhirRequest(patch(urlEqualTo("/Patient/1")).willReturn(okXml(toXml(new OperationOutcome()))));
template().requestBody("direct:start",
"{\"id\":\"1\", \"1\": {\"path\":\"active\", \"value\":true}}", MethodOutcome.class);
