aboutsummaryrefslogtreecommitdiffstats
path: root/so-simulator/src
diff options
context:
space:
mode:
authorBoslet, Cory <cory.boslet@att.com>2020-10-14 11:48:02 -0400
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-10-14 11:48:02 -0400
commitda2edd403c9b10310a1dc73b8060fce69cfcd7b8 (patch)
tree2ae07e39156991ce03d8181b8f721bb5f98b0e7a /so-simulator/src
parent98c50c3184e915945dfe339284fc6dcbd8fdca9f (diff)
Removed unused sim scenrios and robots
Removed unused sim scenrios and robots Issue-ID: SO-3301 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I0db39d3fb6f193c060634989e54215ab52cbf857
Diffstat (limited to 'so-simulator/src')
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStack.java28
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStackAudit.java26
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/ModuleCreateDelete.java52
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameFailureId.java25
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplace.java25
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplaceVolume.java25
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStack.java22
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro1.java38
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro2.java38
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdVolumeGroup.java39
-rw-r--r--so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByName.java24
11 files changed, 0 insertions, 342 deletions
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStack.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStack.java
deleted file mode 100644
index cbb375ae55..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStack.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-CreateStack")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks", method = RequestMethod.POST)
-public class CreateStack extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().post().extractFromPayload("$.stack_name", "stackName");
-
- scenario.action(new CreateAAInventory());
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Create.json"));
-
-
- }
-
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStackAudit.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStackAudit.java
deleted file mode 100644
index 35e0571b14..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/CreateStackAudit.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-CreateStackAudit")
-@RequestMapping(value = "/sim/mockPublicUrlThree/stacks", method = RequestMethod.POST)
-public class CreateStackAudit extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().post().extractFromPayload("$.stack_name", "stackName");
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
-
- }
-
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/ModuleCreateDelete.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/ModuleCreateDelete.java
deleted file mode 100644
index 046829fa2f..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/ModuleCreateDelete.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.onap.so.simulator.actions.aai.DeleteVServers;
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import com.consol.citrus.endpoint.resolver.DynamicEndpointUriResolver;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-ModuleCreateDelete")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/dummy_id/stackId")
-public class ModuleCreateDelete extends AbstractSimulatorScenario {
-
-
- @Override
- public void run(ScenarioDesigner scenario) {
- // Get to see if stack exists
- scenario.http().receive().get().extractFromHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "correlationId");
- scenario.echo("${correlationId}");
- scenario.correlation().start().onHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "${correlationId}");
-
- scenario.variable("stackName", "dummy_id");
- scenario.variable("cloudOwner", "cloudOwner");
- scenario.variable("cloudRegion", "regionOne");
- scenario.variable("tenantId", "0422ffb57ba042c0800a29dc85ca70f8");
- scenario.variable("vServerId", "92272b67-d23f-42ca-87fa-7b06a9ec81f3");
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
- // Initial Get from Openstack Adapter prior to deletion of the stack
- scenario.http().receive().get();
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
- // Delete of the stack
- scenario.http().receive().delete();
- scenario.action(new DeleteVServers());
- scenario.http().send().response(HttpStatus.NO_CONTENT);
-
- // Final Get from Openstack Adapter after the deletion of the stack
- scenario.http().receive().get();
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Deleted.json"));
-
- }
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameFailureId.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameFailureId.java
deleted file mode 100644
index 3c95149afe..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameFailureId.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Query-Failure-ID-Name-Resources")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/failure_id/resources", method = RequestMethod.GET)
-public class QueryResourcesByStackNameFailureId extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get();
-
- scenario.variable("stackName", "failure_id");
-
- scenario.http().send().response(HttpStatus.OK).header("ContentType", "application/json")
- .payload(new ClassPathResource("openstack/gr_api/GetStackResourcesMacro.json"));
-
- }
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplace.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplace.java
deleted file mode 100644
index 434eafc668..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplace.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Query-Replace-ID-Name-Resources")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/replace_module/resources", method = RequestMethod.GET)
-public class QueryResourcesByStackNameModuleReplace extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get();
-
- scenario.variable("stackName", "replace_module");
-
- scenario.http().send().response(HttpStatus.OK).header("ContentType", "application/json")
- .payload(new ClassPathResource("openstack/gr_api/GetStackResourcesMacro.json"));
-
- }
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplaceVolume.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplaceVolume.java
deleted file mode 100644
index 6504cf6dc0..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryResourcesByStackNameModuleReplaceVolume.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Query-Replace-Volume-ID-Name-Resources")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/replace_module_volume_id/resources", method = RequestMethod.GET)
-public class QueryResourcesByStackNameModuleReplaceVolume extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get();
-
- scenario.variable("stackName", "replace_module_volume_id");
-
- scenario.http().send().response(HttpStatus.OK).header("ContentType", "application/json")
- .payload(new ClassPathResource("openstack/gr_api/GetStackResourcesMacro.json"));
-
- }
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStack.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStack.java
deleted file mode 100644
index ecd0c9fdba..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStack.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-QueryStackByName")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/*", method = RequestMethod.GET)
-public class QueryStack extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get();
-
- scenario.http().send().response(HttpStatus.NOT_FOUND);
-
- }
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro1.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro1.java
deleted file mode 100644
index 249834a8d8..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro1.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.endpoint.resolver.DynamicEndpointUriResolver;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-QueryStackByID-NetworkMacro1")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/macro_network1/*", method = RequestMethod.GET)
-public class QueryStackByIdNetworkMacro1 extends AbstractSimulatorScenario {
-
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get().extractFromHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "correlationId");
- scenario.echo("${correlationId}");
- scenario.correlation().start().onHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "${correlationId}");
-
- scenario.variable("stackName", "dummy_id");
-
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
- scenario.http().receive().get();
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Deleted.json"));
-
- }
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro2.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro2.java
deleted file mode 100644
index b3c6c7231f..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdNetworkMacro2.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.endpoint.resolver.DynamicEndpointUriResolver;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-QueryStackByID-NetworkMacro2")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/macro_network1/*", method = RequestMethod.GET)
-public class QueryStackByIdNetworkMacro2 extends AbstractSimulatorScenario {
-
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get().extractFromHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "correlationId");
- scenario.echo("${correlationId}");
- scenario.correlation().start().onHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "${correlationId}");
-
- scenario.variable("stackName", "dummy_id");
-
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
- scenario.http().receive().get();
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Deleted.json"));
-
- }
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdVolumeGroup.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdVolumeGroup.java
deleted file mode 100644
index cbe842caf9..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByIdVolumeGroup.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import com.consol.citrus.endpoint.resolver.DynamicEndpointUriResolver;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-VolumeGroup-Interactions")
-@RequestMapping(value = "/sim/v1/tenantOne/stacks/VolumeGroup/*")
-public class QueryStackByIdVolumeGroup extends AbstractSimulatorScenario {
-
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get().extractFromHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "correlationId");
- scenario.echo("${correlationId}");
- scenario.correlation().start().onHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME,
- "${correlationId}");
-
- scenario.variable("stackName", "VolumeGroup");
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Created.json"));
-
- scenario.http().receive().delete();
-
- scenario.http().send().response(HttpStatus.NO_CONTENT);
-
- scenario.http().receive().get();
-
- scenario.http().send().response(HttpStatus.OK)
- .payload(new ClassPathResource("openstack/gr_api/Stack_Deleted.json"));
- }
-
-}
diff --git a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByName.java b/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByName.java
deleted file mode 100644
index b51a608e6d..0000000000
--- a/so-simulator/src/main/java/org/onap/so/simulator/scenarios/openstack/QueryStackByName.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package org.onap.so.simulator.scenarios.openstack;
-
-import org.springframework.core.io.ClassPathResource;
-import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import com.consol.citrus.simulator.scenario.AbstractSimulatorScenario;
-import com.consol.citrus.simulator.scenario.Scenario;
-import com.consol.citrus.simulator.scenario.ScenarioDesigner;
-
-@Scenario("Openstack-QueryStackByName3")
-@RequestMapping(value = "/sim/mockPublicUrlThree/stacks/*", method = RequestMethod.GET)
-public class QueryStackByName extends AbstractSimulatorScenario {
-
- @Override
- public void run(ScenarioDesigner scenario) {
- scenario.http().receive().get();
-
- scenario.http().send().response(HttpStatus.NOT_FOUND);
-
- }
-
-
-}