/** * Verify that an anonymous user cannot read the child of a resource with no * default ACL inheritance. */ @Test @DisplayName("Verify that an anonymous user can read the child of a default ACL resource") default void testCanReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that a user cannot control the child of a default ACL resource. */ @Test @DisplayName("Verify that a user cannot control the child of a default ACL resource") default void testCanControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } } }
/** * Verify that a user cannot control the child of a default ACL resource. */ @Test @DisplayName("Verify that a user cannot control the child of a default ACL resource") default void testCanControlDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } } }
/** * Verify that an anonymous user cannot read the child of a resource with no * default ACL inheritance. */ @Test @DisplayName("Verify that an anonymous user can read the child of a default ACL resource") default void testCanReadDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot write to the child of a default ACL resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to the child of a default ACL resource") default void testCanWriteDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request().method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot write to the child of a default ACL resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to the child of a default ACL resource") default void testCanWriteDefaultAclResourceChild() { try (final Response res = target(getDefaultContainerChild()).request().method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }