summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/remote-python/success
diff options
context:
space:
mode:
authorJozsef Csongvai <jozsef.csongvai@bell.ca>2021-01-19 12:32:04 -0500
committerJozsef Csongvai <jozsef.csongvai@bell.ca>2021-01-20 10:02:39 -0500
commite92fce768cb792f11920f45fdbb38b3af69e212f (patch)
tree650d0bd49b1c98b49535d3f8aa9f98bb97255532 /cds-regression-test/test/remote-python/success
parentbfffa2d982cc506979aaa0b96b6bb352c8dda9a7 (diff)
Update to latest version
Issue-ID: TEST-295 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ie14e2061c1e0931bf3d555e54c79bb736d140d5c
Diffstat (limited to 'cds-regression-test/test/remote-python/success')
-rw-r--r--cds-regression-test/test/remote-python/success/expected-response.json36
-rw-r--r--cds-regression-test/test/remote-python/success/request-payload.json16
-rwxr-xr-xcds-regression-test/test/remote-python/success/test.sh25
3 files changed, 0 insertions, 77 deletions
diff --git a/cds-regression-test/test/remote-python/success/expected-response.json b/cds-regression-test/test/remote-python/success/expected-response.json
deleted file mode 100644
index 8b0149f..0000000
--- a/cds-regression-test/test/remote-python/success/expected-response.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "correlationUUID": "9acac95d-9b17-4224-9fe1-0cdb652d027c",
- "commonHeader": {
- "timestamp": "2020-07-02T22:52:50.662Z",
- "originatorId": "System",
- "requestId": "remote-python-request",
- "subRequestId": "1",
- "flags": null
- },
- "actionIdentifiers": {
- "blueprintName": "RT-remote-python",
- "blueprintVersion": "1.0.0",
- "actionName": "remote-python",
- "mode": "sync"
- },
- "status": {
- "code": 200,
- "eventType": "EVENT_COMPONENT_EXECUTED",
- "timestamp": "2020-07-02T22:53:05.357Z",
- "errorMessage": null,
- "message": "success"
- },
- "payload": {
- "remote-python-response": {
- "execute-command-payload": {
- "abc": [
- "xyz",
- "qqq"
- ]
- },
- "execute-command-logs": [
- "remote executor regression"
- ]
- }
- }
-}
diff --git a/cds-regression-test/test/remote-python/success/request-payload.json b/cds-regression-test/test/remote-python/success/request-payload.json
deleted file mode 100644
index b3b9be8..0000000
--- a/cds-regression-test/test/remote-python/success/request-payload.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "commonHeader": {
- "originatorId": "System",
- "requestId": "remote-python-request",
- "subRequestId": "1"
- },
- "actionIdentifiers": {
- "blueprintName": "RT-remote-python",
- "blueprintVersion": "1.0.0",
- "actionName": "remote-python",
- "mode": "sync"
- },
- "payload": {
- "remote-python-request": {}
- }
-}
diff --git a/cds-regression-test/test/remote-python/success/test.sh b/cds-regression-test/test/remote-python/success/test.sh
deleted file mode 100755
index 1afabbb..0000000
--- a/cds-regression-test/test/remote-python/success/test.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-CBA_NAME="remote-python"
-TEST_NAME="success"
-TEST_NUMBER=$RANDOM
-
-mkdir -p "$RESPONSES_DIRECTORY/$CBA_NAME/$TEST_NAME/$TEST_NUMBER/"
-RESPONSE_HEADERS_FILE="$RESPONSES_DIRECTORY/$CBA_NAME/$TEST_NAME/$TEST_NUMBER/response-headers"
-RESPONSE_PAYLOAD_FILE="$RESPONSES_DIRECTORY/$CBA_NAME/$TEST_NAME/$TEST_NUMBER/response-payload"
-
-REQUEST_PAYLOAD_FILE="$TEST_DIRECTORY/$CBA_NAME/$TEST_NAME/request-payload.json"
-EXPECTED_PAYLOAD_FILE="$TEST_DIRECTORY/$CBA_NAME/$TEST_NAME/expected-response.json"
-
-. ./$TEST_DIRECTORY/utils.sh
-
-echo "Running test: $CBA_NAME:$TEST_NUMBER:$TEST_NAME"
-
-echo 'Calling CDS process'
-process_cba $REQUEST_PAYLOAD_FILE $RESPONSE_PAYLOAD_FILE $RESPONSE_HEADERS_FILE
-
-echo 'Assert statuscode'
-assert_status_code 200 $RESPONSE_HEADERS_FILE
-
-echo 'Assert payload'
-assert_cds_response_equals $EXPECTED_PAYLOAD_FILE $RESPONSE_PAYLOAD_FILE