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