Skip to content
Permalink
Browse files

Missed applying the sparql-update

  • Loading branch information...
whikloj committed Sep 7, 2015
1 parent dc10334 commit 9c106ff66ae6296dc3460f2875b76648ae2affec
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/test/java/org/fcrepo/integration/auth/webac/WebACRecipesIT.java
@@ -125,12 +125,15 @@ private String ingestObj(final String path) throws IOException {
* @throws UnsupportedEncodingException
*/
private void linkToAcl(final String protectedResource, final String aclResource)
throws UnsupportedEncodingException {
throws UnsupportedEncodingException, IOException {
final HttpPatch request = super.patchObjMethod(protectedResource.replace(serverAddress, ""));
setAuth(request, "fedoraAdmin");
request.setHeader("Content-type", "application/sparql-update");
request.setEntity(new StringEntity(
"INSERT { <> <" + WEBAC_ACCESS_CONTROL_VALUE + "> <" + aclResource + "> . } WHERE {}"));
try (final CloseableHttpResponse response = super.execute(request)) {
assertEquals(HttpStatus.SC_NO_CONTENT, response.getStatusLine().getStatusCode());
}
}

/**

0 comments on commit 9c106ff

Please sign in to comment.
You can’t perform that action at this time.