aboutsummaryrefslogtreecommitdiffstats
path: root/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/apex-pdp-stability/src/main/resources/simulatorConfig')
-rw-r--r--testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-modify-config.json33
-rw-r--r--testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-restart.json33
-rw-r--r--testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/controlloop-hostname-update-update-config.json36
-rw-r--r--testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/simParameters.json27
4 files changed, 129 insertions, 0 deletions
diff --git a/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-modify-config.json b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-modify-config.json
new file mode 100644
index 000000000..4f03bbfa1
--- /dev/null
+++ b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-modify-config.json
@@ -0,0 +1,33 @@
+{
+ "correlationUUID": null,
+ "commonHeader": {
+ "timestamp": "2020-12-16T10:29:00.450Z",
+ "originatorId": "POLICY",
+ "requestId": "f392e439-c176-411b-b972-8acadac0f8df",
+ "subRequestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "apex-example-cba",
+ "blueprintVersion": "1.0.0",
+ "actionName": "modify-config",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-12-16T10:29:01.737Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "modify-config-response": {
+ "execute-command-logs": [
+ "INFO:root:Arguments : Active,,"
+ ],
+ "prepare-environment-logs": [
+ "Installed pip packages:\n requirements.txt\n\n"
+ ]
+ }
+ }
+}
diff --git a/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-restart.json b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-restart.json
new file mode 100644
index 000000000..694bc6df0
--- /dev/null
+++ b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/apex-example-cba-restart.json
@@ -0,0 +1,33 @@
+{
+ "correlationUUID": null,
+ "commonHeader": {
+ "timestamp": "2020-12-16T10:30:46.213Z",
+ "originatorId": "POLICY",
+ "requestId": "f392e439-c176-411b-b972-8acadac0f8df",
+ "subRequestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "apex-example-cba",
+ "blueprintVersion": "1.0.0",
+ "actionName": "restart",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-12-16T10:30:46.828Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "restart-response": {
+ "execute-command-logs": [
+ "INFO:root:Arguments : Active,,"
+ ],
+ "prepare-environment-logs": [
+ "Installed pip packages:\n requirements.txt\n\n"
+ ]
+ }
+ }
+}
diff --git a/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/controlloop-hostname-update-update-config.json b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/controlloop-hostname-update-update-config.json
new file mode 100644
index 000000000..342ae8b1e
--- /dev/null
+++ b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/cdsresponse/controlloop-hostname-update-update-config.json
@@ -0,0 +1,36 @@
+{
+ "commonHeader": {
+ "timestamp": "2020-08-24T14:45:07.491Z",
+ "originatorId": "CDS",
+ "requestId": "123456",
+ "subRequestId": "123-123",
+ "flags": null
+ },
+ "actionIdentifiers": {
+ "blueprintName": "controlloop-hostname-update",
+ "blueprintVersion": "1.0.4",
+ "actionName": "update-config",
+ "mode": "sync"
+ },
+ "status": {
+ "code": 200,
+ "eventType": "EVENT_COMPONENT_EXECUTED",
+ "timestamp": "2020-08-24T14:45:12.863Z",
+ "errorMessage": null,
+ "message": "success"
+ },
+ "payload": {
+ "update-config-response": {
+ "execute-command-logs": [
+ "INFO:root:<data xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"/>",
+ "INFO:root:configuring Device....",
+ "INFO:root:Done Device Configuration Successfully",
+ "INFO:root:Device Configuration After modification",
+ "INFO:root:http://10.101.200.10:32777/restconf/config/network-topology:network-topology/topology/topology-netconf/node/927b2580-36d9-4f13-8421-3c9d43b7a57e/yang-ext:mount",
+ "INFO:root:<data xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><system
+xmlns=\"urn:opendaylight:hostname\"><hostname>testhost-1212332324343</hostname></system></data>"
+ ],
+ "prepare-environment-logs": ["Installed pip packages:\n requirements.txt\n\n"]
+ }
+ }
+}
diff --git a/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/simParameters.json b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/simParameters.json
new file mode 100644
index 000000000..248c858cc
--- /dev/null
+++ b/testsuites/apex-pdp-stability/src/main/resources/simulatorConfig/simParameters.json
@@ -0,0 +1,27 @@
+{
+ "dmaapProvider": {
+ "name": "DMaaP simulator",
+ "topicSweepSec": 300
+ },
+ "restServers": [
+ {
+ "name": "DMaaP simulator",
+ "providerClass": "org.onap.policy.models.sim.dmaap.rest.DmaapSimRestControllerV1",
+ "host": "0.0.0.0",
+ "port": 3905,
+ "https": false
+ }
+ ],
+ "grpcServer": {
+ "name": "CDS simulator",
+ "providerClass": "org.onap.policy.simulators.CdsSimulator",
+ "host": "0.0.0.0",
+ "port": 6680,
+ "timeout": 30,
+ "username": "ccsdkapps",
+ "password": "ccsdkapps",
+ "resourceLocation": "/opt/app/policy/simulators/etc/mounted/cdsresponse/",
+ "successRepeatCount": 0,
+ "requestedResponseDelayMs": 0
+ }
+}