/** * Verify that an administrator can read the child of a group-controlled resource. */ @Test @DisplayName("Verify that an administrator can read the child of a group-controlled resource") default void testAdminCanReadGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can't find the ACL of a child resource. */ @Test @DisplayName("Verify that an administrator can't find the ACL of a child resource") default void testAdminCanControlGroupResourceChild() { try (final Response res = target(getGroupContainerChild() + 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 group-controlled resource. */ @Test @DisplayName("Verify that an administrator can read the child of a group-controlled resource") default void testAdminCanReadGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()).get()) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }
/** * Verify that an administrator can't find the ACL of a child resource. */ @Test @DisplayName("Verify that an administrator can't find the ACL of a child resource") default void testAdminCanControlGroupResourceChild() { try (final Response res = target(getGroupContainerChild() + 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 group-controlled resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a group-controlled resource") default void testAdminCanWriteGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).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 group-controlled resource. */ @Test @DisplayName("Verify that an administrator can write to the child of a group-controlled resource") default void testAdminCanWriteGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request() .header(AUTHORIZATION, getAuthorizationHeader()) .method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(SUCCESSFUL, res.getStatusInfo().getFamily(), OK_RESPONSE); } }