Test that /api/user/v1 and /api/application/v4 works
@@ -42,6 +42,11 @@ public class UserApiTest extends ControllerContainerCloudTest {
.roles(operator),
"[]");
+ // GET at application/v4/tenant is available also under the /api prefix.
+ tester.assertResponse(request("/api/application/v4/tenant")
+ .roles(operator),
+ "[]");
+
// POST a tenant is not available to everyone.
tester.assertResponse(request("/application/v4/tenant/my-tenant", POST)
.data("{\"token\":\"hello\"}"),
@@ -120,6 +125,11 @@ public class UserApiTest extends ControllerContainerCloudTest {
.roles(Set.of(roles.tenantOperator(id.tenant()))),
new File("application-roles.json"));
+ // GET application role information is available also under the /api prefix.
+ tester.assertResponse(request("api//user/v1/tenant/my-tenant/application/my-app")
+ .roles(Set.of(roles.tenantOperator(id.tenant()))),
+ new File("application-roles.json"));
+
// DELETE an application role is allowed for an application admin.
tester.assertResponse(request("/user/v1/tenant/my-tenant/application/my-app", DELETE)
.roles(Set.of(roles.applicationAdmin(id.tenant(), id.application())))
