Fix a test

This commit is contained in:
James Agnew 2018-07-01 12:23:24 -04:00
parent b929864873
commit 99cefd0844
1 changed files with 1 additions and 7 deletions

View File

@ -1769,6 +1769,7 @@ public class AuthorizationInterceptorDstu2Test {
@Override
public List<IAuthRule> 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