/** * Verify that another user cannot control the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot control the child of a default ACL resource") default void testOtherUserCanControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } } }
/** * Verify that another user cannot read the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot read the child of a default ACL resource") default void testOtherUserCanReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }
/** * Verify that another user cannot control the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot control the child of a default ACL resource") default void testOtherUserCanControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } } }
/** * Verify that another user cannot write to the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot write to the child of a default ACL resource") default void testOtherUserCanWriteDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }
/** * Verify that another user cannot read the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot read the child of a default ACL resource") default void testOtherUserCanReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }
/** * Verify that another user cannot write to the child of a default ACL resource. */ @Test @DisplayName("Verify that another user cannot write to the child of a default ACL resource") default void testOtherUserCanWriteDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }