Verify tenant admins can restart applications
@@ -451,6 +451,11 @@ public class ApplicationApiTest extends ControllerContainerTest {
.userIdentity(USER_ID),
"{\"message\":\"Triggered production-us-west-1 for tenant1.application1\"}");
+ // POST a 'restart application' command
+ tester.assertResponse(request("/application/v4/tenant/tenant1/application/application1/environment/prod/region/us-central-1/instance/default/restart", POST)
+ .userIdentity(USER_ID),
+ "Requested restart of tenant/tenant1/application/application1/environment/prod/region/us-central-1/instance/default");
+
// POST a 'restart application' command
tester.assertResponse(request("/application/v4/tenant/tenant1/application/application1/environment/prod/region/us-central-1/instance/default/restart", POST)
.screwdriverIdentity(SCREWDRIVER_ID),
