diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2021-01-21 14:17:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-01-21 14:17:58 +0000 |
commit | 2a26e7f038190ef736a73443ee56169fea6815a9 (patch) | |
tree | 4822f88f7fc70277f6559c198ee7cb4277d4eaeb /cds-regression-test/test/remote-python/connection-fail | |
parent | 8908c43db11c2eecc2b6e730a5c99f6ec3091a95 (diff) | |
parent | e92fce768cb792f11920f45fdbb38b3af69e212f (diff) |
Merge "Update to latest version"honolulu
Diffstat (limited to 'cds-regression-test/test/remote-python/connection-fail')
5 files changed, 0 insertions, 116 deletions
diff --git a/cds-regression-test/test/remote-python/connection-fail/resources/elalto/expected-response.json b/cds-regression-test/test/remote-python/connection-fail/resources/elalto/expected-response.json deleted file mode 100644 index 2ab445b..0000000 --- a/cds-regression-test/test/remote-python/connection-fail/resources/elalto/expected-response.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "correlationUUID": "9f53fea6-c288-4d19-8d85-93832294f21a", - "commonHeader": { - "timestamp": "2020-07-20T18:15:21.593Z", - "originatorId": "System", - "requestId": "remote-python-connection-fail", - "subRequestId": "1", - "flags": null - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-python", - "blueprintVersion": "1.0.0", - "actionName": "connection-fail", - "mode": "sync" - }, - "status": { - "code": 500, - "eventType": "EVENT_COMPONENT_FAILURE", - "timestamp": "2020-07-20T18:15:22.846Z", - "errorMessage": "FAILURE : prepare-env : Command failed during env. preparation... timeout(120) requestId (remote-python-connection-fail). grpcError: (Connection refused: /127.0.0.1:4242)", - "message": "failure" - }, - "payload": { - "connection-fail-response": { - "execute-command-payload": "", - "execute-command-logs": "" - } - } -} diff --git a/cds-regression-test/test/remote-python/connection-fail/resources/elalto/request-payload.json b/cds-regression-test/test/remote-python/connection-fail/resources/elalto/request-payload.json deleted file mode 100644 index 4bcf8e2..0000000 --- a/cds-regression-test/test/remote-python/connection-fail/resources/elalto/request-payload.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "commonHeader": { - "originatorId": "System", - "requestId": "remote-python-connection-fail", - "subRequestId": "1" - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-python", - "blueprintVersion": "1.0.0", - "actionName": "connection-fail", - "mode": "sync" - }, - "payload": { - "connection-fail-request": {} - } -} diff --git a/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/expected-response.json b/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/expected-response.json deleted file mode 100644 index c9b15bd..0000000 --- a/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/expected-response.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "correlationUUID": null, - "commonHeader": { - "timestamp": "2020-06-09T21:02:52.783Z", - "originatorId": "System", - "requestId": "remote-python-connection-fail", - "subRequestId": "1", - "flags": null - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-python", - "blueprintVersion": "1.0.0", - "actionName": "connection-fail", - "mode": "sync" - }, - "status": { - "code": 500, - "eventType": "EVENT_COMPONENT_FAILURE", - "timestamp": "2020-06-09T21:02:53.142Z", - "errorMessage": "FAILURE : prepare-env : Command failed during env. preparation... timeout(120) requestId (remote-python-connection-fail). grpcError: (finishConnect(..) failed: Connection refused: /127.0.0.1:4242)", - "message": "failure" - }, - "payload": { - "connection-fail-response": { - "execute-command-logs": "[]", - "execute-command-payload": "{}" - } - } -} diff --git a/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/request-payload.json b/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/request-payload.json deleted file mode 100644 index 4bcf8e2..0000000 --- a/cds-regression-test/test/remote-python/connection-fail/resources/frankfurt/request-payload.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "commonHeader": { - "originatorId": "System", - "requestId": "remote-python-connection-fail", - "subRequestId": "1" - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-python", - "blueprintVersion": "1.0.0", - "actionName": "connection-fail", - "mode": "sync" - }, - "payload": { - "connection-fail-request": {} - } -} diff --git a/cds-regression-test/test/remote-python/connection-fail/test.sh b/cds-regression-test/test/remote-python/connection-fail/test.sh deleted file mode 100644 index 4d3a38f..0000000 --- a/cds-regression-test/test/remote-python/connection-fail/test.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -CBA_NAME="remote-python" -TEST_NAME="connection-fail" -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" - -RESOURCES_DIR="$TEST_DIRECTORY/$CBA_NAME/$TEST_NAME/resources/$CDS_VERSION" -REQUEST_PAYLOAD_FILE="$RESOURCES_DIR/request-payload.json" -EXPECTED_PAYLOAD_FILE="$RESOURCES_DIR/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 500 $RESPONSE_HEADERS_FILE - -echo 'Assert payload' -assert_cds_response_equals $EXPECTED_PAYLOAD_FILE $RESPONSE_PAYLOAD_FILE |