/** * Verify that an administrator can control the child of a private resource. */ @Test @DisplayName("Verify that an administrator can control the child of a private resource") default void testAdminCanControlPrivateResourceChild() { try (final Response res = target(getPrivateContainerChild() + 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 private resource. */ @Test @DisplayName("Verify that an administrator can read the child of a private resource") default void testAdminCanReadPrivateResourceChild() { try (final Response res = target(getPrivateContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can control the child of a private resource. */ @Test @DisplayName("Verify that an administrator can control the child of a private resource") default void testAdminCanControlPrivateResourceChild() { try (final Response res = target(getPrivateContainerChild() + 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 private resource. */ @Test @DisplayName("Verify that an administrator can read the child of a private resource") default void testAdminCanReadPrivateResourceChild() { try (final Response res = target(getPrivateContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can write to the child of a private resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a private resource") default void testAdminCanWritePrivateResourceChild() { try (final Response res = target(getPrivateContainerChild()).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 private resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a private resource") default void testAdminCanWritePrivateResourceChild() { try (final Response res = target(getPrivateContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }