From 758fe11d20c544926a6a816c0c85b8e3174ab649 Mon Sep 17 00:00:00 2001 From: "Merkel, Jeff" Date: Thu, 30 Jan 2020 09:21:48 -0500 Subject: - Include stack Status Reason when rollback is - Include stack Status Reason when rollback is suppressed. - Updated to format code to pass the build. Issue-ID: SO-2620 Signed-off-by: Benjamin, Max (mb388a) Change-Id: Id9789930eaf7c47666a9401f8e3c57156c931b74 --- .../src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'adapters/mso-adapter-utils/src/test/java/org') diff --git a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java index 92cf96ed16..0f9f7a273e 100644 --- a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java +++ b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java @@ -153,12 +153,13 @@ public class MsoHeatUtilsTest extends MsoHeatUtils { stack.setId("id"); stack.setStackName("stackName"); stack.setStackStatus("CREATE_IN_PROGRESS"); - stack.setStackStatusReason("Stack Finished"); + stack.setStackStatusReason("Stack In Progress"); CreateStackParam createStackParam = new CreateStackParam(); createStackParam.setStackName("stackName"); exceptionRule.expect(StackCreationException.class); - exceptionRule.expectMessage("Stack rollback suppressed, stack not deleted"); + exceptionRule.expectMessage( + "Stack Creation Failed Openstack Status: CREATE_IN_PROGRESS Status Reason: Stack In Progress. Stack rollback suppressed, stack not deleted"); heatUtils.postProcessStackCreate(stack, false, 120, false, cloudSiteId, tenantId, createStackParam); } -- cgit 1.2.3-korg