summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Smokowski <ss835w@att.com>2020-04-16 11:07:22 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-16 11:07:22 +0000
commit39eef5d57370e16d878dfe969c49accfac6233b3 (patch)
tree5fb5eae4f7c86f9f1d9064bb30f6b2d79679c187
parentf31a44c0846c9faa49c6004e3172d1e32e7659ec (diff)
parent347e63c1a7f1d2938ccbc4d49f3b87d62ea5343e (diff)
Merge "Updated scenrios to fix failing robot test"
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdDoubleFailure.java29
1 files changed, 5 insertions, 24 deletions
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdDoubleFailure.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdDoubleFailure.java
index 2fa8725d56..a9f879413f 100644
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdDoubleFailure.java
+++ b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdDoubleFailure.java
@@ -39,23 +39,18 @@ public class QueryStackByIdDoubleFailure extends AbstractSimulatorScenario {
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
- // Rollback Delete of the stack
- scenario.http().receive().delete(); // step 7
- scenario.action(new DeleteVServers());
- scenario.http().send().response(HttpStatus.NO_CONTENT);
-
// Rollback Poll
- scenario.http().receive().get(); // step 10
+ scenario.http().receive().get(); // step 7
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
// Rollback Poll Retry
- scenario.http().receive().get();
+ scenario.http().receive().get(); // step 9
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
// Create Poll
- scenario.http().receive().get(); // step 14
+ scenario.http().receive().get(); // step 11
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
@@ -64,30 +59,16 @@ public class QueryStackByIdDoubleFailure extends AbstractSimulatorScenario {
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
- // Rollback Delete
- scenario.http().receive().delete();
- scenario.action(new DeleteVServers());
- scenario.http().send().response(HttpStatus.NO_CONTENT);
-
// Rollback Poll
- scenario.http().receive().get(); // step 18
+ scenario.http().receive().get(); // step 15
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
// Rollback Poll Retry
- scenario.http().receive().get();
+ scenario.http().receive().get(); // step 17
scenario.http().send().response(HttpStatus.OK)
.payload(new ClassPathResource("openstack/gr_api/Stack_Failure.json"));
- // Delete
- scenario.http().receive().delete();
- scenario.http().send().response(HttpStatus.NO_CONTENT);
-
- // Delete Poll
- scenario.http().receive().get();
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Deleted.json"));
-
}
}