From 62c7c0fa55c8c9c6545a87519edcb04899e5a859 Mon Sep 17 00:00:00 2001 From: Alin Date: Mon, 9 Jul 2018 16:43:31 +0300 Subject: [PATCH] fixed the AuthorizationInterceptorR4Test return code based on fhir doc --- .../server/interceptor/AuthorizationInterceptorR4Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/AuthorizationInterceptorR4Test.java b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/AuthorizationInterceptorR4Test.java index 33ad4feabb9..5df78a7ba23 100644 --- a/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/AuthorizationInterceptorR4Test.java +++ b/hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/server/interceptor/AuthorizationInterceptorR4Test.java @@ -1647,7 +1647,7 @@ public class AuthorizationInterceptorR4Test { patch.setEntity(new StringEntity(patchBody, ContentType.create(Constants.CT_JSON_PATCH, Charsets.UTF_8))); CloseableHttpResponse status = ourClient.execute(patch); extractResponseAndClose(status); - assertEquals(204, status.getStatusLine().getStatusCode()); + assertEquals(200, status.getStatusLine().getStatusCode()); assertTrue(ourHitMethod); } @@ -2924,7 +2924,7 @@ public class AuthorizationInterceptorR4Test { httpPost.setEntity(new StringEntity(input, ContentType.parse("application/json-patch+json"))); status = ourClient.execute(httpPost); extractResponseAndClose(status); - assertEquals(204, status.getStatusLine().getStatusCode()); + assertEquals(200, status.getStatusLine().getStatusCode()); assertTrue(ourHitMethod); }