From 99cefd08446ac86731b4deff80d8e3d115c1e28d Mon Sep 17 00:00:00 2001 From: James Agnew Date: Sun, 1 Jul 2018 12:23:24 -0400 Subject: [PATCH] Fix a test --- .../auth/AuthorizationInterceptorDstu2Test.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptorDstu2Test.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptorDstu2Test.java index 295fc423344..fe70c2e20bb 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptorDstu2Test.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptorDstu2Test.java @@ -1769,6 +1769,7 @@ public class AuthorizationInterceptorDstu2Test { @Override public List buildRuleList(RequestDetails theRequestDetails) { return new RuleBuilder() + .allow().patch().allRequests().andThen() .allow("Rule 1").write().instance("Patient/900").andThen() .build(); } @@ -1788,13 +1789,6 @@ public class AuthorizationInterceptorDstu2Test { assertEquals(204, status.getStatusLine().getStatusCode()); assertTrue(ourHitMethod); - ourHitMethod = false; - httpPost = new HttpPatch("http://localhost:" + ourPort + "/Patient/999"); - httpPost.setEntity(new StringEntity(input, ContentType.parse("application/json-patch+json"))); - status = ourClient.execute(httpPost); - response = extractResponseAndClose(status); - assertEquals(403, status.getStatusLine().getStatusCode()); - assertFalse(ourHitMethod); } @Test