/** * Verify that an administrator can control the child of a public resource. */ @Test @DisplayName("Verify that an administrator can control the child of a public resource") default void testAdminCanControlPublicResourceChild() { try (final Response res = target(getPublicContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(NOT_FOUND, fromStatusCode(res.getStatus()), NOT_FOUND_RESPONSE); } }
/** * Verify that an administrator can read the child of a public resource. */ @Test @DisplayName("Verify that an administrator can read the child of a public resource") default void testAdminCanReadPublicResourceChild() { try (final Response res = target(getPublicContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can read the child of a public resource. */ @Test @DisplayName("Verify that an administrator can read the child of a public resource") default void testAdminCanReadPublicResourceChild() { try (final Response res = target(getPublicContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can control the child of a public resource. */ @Test @DisplayName("Verify that an administrator can control the child of a public resource") default void testAdminCanControlPublicResourceChild() { try (final Response res = target(getPublicContainerChild() + EXT_ACL).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(NOT_FOUND, fromStatusCode(res.getStatus()), NOT_FOUND_RESPONSE); } }
/** * Verify that an administrator can write to the child of a public resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a public resource") default void testAdminCanWritePublicResourceChild() { try (final Response res = target(getPublicContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can write to the child of a public resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a public resource") default void testAdminCanWritePublicResourceChild() { try (final Response res = target(getPublicContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }