/** * Verify that an anonymous user cannot control the child of a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot control the child of a group-controlled resource") default void testCanControlGroupResourceChild() { try (final Response res = target(getGroupContainerChild() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot read the child of a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot read the child of a group-controlled resource") default void testCanReadGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot read the child of a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot read the child of a group-controlled resource") default void testCanReadGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot control the child of a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot control the child of a group-controlled resource") default void testCanControlGroupResourceChild() { try (final Response res = target(getGroupContainerChild() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot write to the child of a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to the child of a group-controlled resource") default void testCanWriteGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).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 group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to the child of a group-controlled resource") default void testCanWriteGroupResourceChild() { try (final Response res = target(getGroupContainerChild()).request().method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }