/** * Verify that an anonymous user cannot append to a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot append to a group-controlled resource") default void testUserCanAppendGroupResource() { try (final Response res = target(getGroupContainer()).request().post(entity("", TEXT_TURTLE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot append to a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot append to a group-controlled resource") default void testUserCanAppendGroupResource() { try (final Response res = target(getGroupContainer()).request().post(entity("", TEXT_TURTLE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot control a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot control a group-controlled resource") default void testCanControlGroupResource() { try (final Response res = target(getGroupContainer() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot control a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot control a group-controlled resource") default void testCanControlGroupResource() { try (final Response res = target(getGroupContainer() + EXT_ACL).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot read a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot read a group-controlled resource") default void testCanReadGroupResource() { try (final Response res = target(getGroupContainer()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot read a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot read a group-controlled resource") default void testCanReadGroupResource() { try (final Response res = target(getGroupContainer()).request().get()) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }
/** * Verify that an anonymous user cannot write to a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to a group-controlled resource") default void testCanWriteGroupResource() { try (final Response res = target(getGroupContainer()).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 a group-controlled resource. */ @Test @DisplayName("Verify that an anonymous user cannot write to a group-controlled resource") default void testCanWriteGroupResource() { try (final Response res = target(getGroupContainer()).request().method(PATCH, entity(INSERT_PROP_FOO, APPLICATION_SPARQL_UPDATE))) { assertEquals(UNAUTHORIZED, fromStatusCode(res.getStatus()), UNAUTHORIZED_RESPONSE); } }