Avoid uncontrollable multi-threaded execution in unit test
@@ -133,6 +133,7 @@ public class ApplicationApiTest extends ControllerContainerTest {
@Test
public void testApplicationApi() {
tester.computeVersionStatus();
+ tester.controller().jobController().setRunner(__ -> { }); // Avoid uncontrollable, multi-threaded job execution
createAthenzDomainWithAdmin(ATHENZ_TENANT_DOMAIN, USER_ID); // (Necessary but not provided in this API)
@@ -658,11 +659,6 @@ public class ApplicationApiTest extends ControllerContainerTest {
.screwdriverIdentity(SCREWDRIVER_ID),
"{\"message\":\"Successfully copied environment hosted-instance_tenant1_application1_placeholder_component_default to hosted-instance_tenant1_application1_us-west-1_prod_default\"}");
- // DELETE the deployment to dev
- tester.assertResponse(request("/application/v4/tenant/tenant1/application/application1/environment/dev/region/us-east-1/instance/default", DELETE)
- .userIdentity(USER_ID),
- "Deactivated tenant/tenant1/application/application1/environment/dev/region/us-east-1/instance/default");
-
// DELETE an application
tester.assertResponse(request("/application/v4/tenant/tenant1/application/application1", DELETE).userIdentity(USER_ID)
.oktaAccessToken(OKTA_AT),
