/** * Verify that a user cannot control the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot control the child of a non-inheritable ACL resource") default void testUserCannotControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } } }
/** * Verify that a user cannot read the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot read the child of a non-inheritable ACL resource") default void testUserCannotReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }
/** * Verify that a user cannot control the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot control the child of a non-inheritable ACL resource") default void testUserCannotControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } } }
/** * Verify that a user cannot read the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot read the child of a non-inheritable ACL resource") default void testUserCannotReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(FORBIDDEN, fromStatusCode(res.getStatus()), FORBIDDEN_RESPONSE); } }
/** * Verify that a user cannot write to the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot write to the child of a non-inheritable ACL resource") default void testUserCannotWriteDefaultAclResourceChild() { 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 a user cannot write to the child of a non-inheritable ACL resource. */ @Test @DisplayName("Verify that a user cannot write to the child of a non-inheritable ACL resource") default void testUserCannotWriteDefaultAclResourceChild() { 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); } }