From e92fce768cb792f11920f45fdbb38b3af69e212f Mon Sep 17 00:00:00 2001 From: Jozsef Csongvai Date: Tue, 19 Jan 2021 12:32:04 -0500 Subject: Update to latest version Issue-ID: TEST-295 Signed-off-by: Jozsef Csongvai Change-Id: Ie14e2061c1e0931bf3d555e54c79bb736d140d5c --- .../kotlin/connect-fail/expected-response.json | 29 ---------------------- .../kotlin/connect-fail/request-payload.json | 19 -------------- .../test/netconf/kotlin/connect-fail/test.sh | 26 ------------------- 3 files changed, 74 deletions(-) delete mode 100644 cds-regression-test/test/netconf/kotlin/connect-fail/expected-response.json delete mode 100644 cds-regression-test/test/netconf/kotlin/connect-fail/request-payload.json delete mode 100755 cds-regression-test/test/netconf/kotlin/connect-fail/test.sh (limited to 'cds-regression-test/test/netconf/kotlin/connect-fail') diff --git a/cds-regression-test/test/netconf/kotlin/connect-fail/expected-response.json b/cds-regression-test/test/netconf/kotlin/connect-fail/expected-response.json deleted file mode 100644 index 9334b50..0000000 --- a/cds-regression-test/test/netconf/kotlin/connect-fail/expected-response.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "commonHeader": { - "timestamp": "2020-02-04T14:16:32.798Z", - "originatorId": "System", - "requestId": "regression-test-netconf-kotlin-connect-fail", - "subRequestId": "1", - "flags": null - }, - "actionIdentifiers": { - "blueprintName": "RT-netconf", - "blueprintVersion": "1.0.0", - "actionName": "netconf-kotlin", - "mode": "sync" - }, - "status": { - "code": 500, - "eventType": "EVENT_COMPONENT_FAILURE", - "timestamp": "2020-02-04T14:16:32.824Z", - "errorMessage": "org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor.api.NetconfException: 127.0.0.1:17830: Failed to establish SSH session", - "message": "failure" - }, - "payload": { - "netconf-kotlin-response": { - "response-data": { - "deploySuccess": false - } - } - } -} diff --git a/cds-regression-test/test/netconf/kotlin/connect-fail/request-payload.json b/cds-regression-test/test/netconf/kotlin/connect-fail/request-payload.json deleted file mode 100644 index 8cac64a..0000000 --- a/cds-regression-test/test/netconf/kotlin/connect-fail/request-payload.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "actionIdentifiers": { - "mode": "sync", - "blueprintName": "RT-netconf", - "blueprintVersion": "1.0.0", - "actionName": "netconf-kotlin" - }, - "payload": { - "netconf-kotlin-request": { - "netconf-host": "127.0.0.1", - "netconf-timeout": 5 - } - }, - "commonHeader": { - "subRequestId": "1", - "requestId": "regression-test-netconf-kotlin-connect-fail", - "originatorId": "System" - } -} diff --git a/cds-regression-test/test/netconf/kotlin/connect-fail/test.sh b/cds-regression-test/test/netconf/kotlin/connect-fail/test.sh deleted file mode 100755 index d30e5ab..0000000 --- a/cds-regression-test/test/netconf/kotlin/connect-fail/test.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -CBA_NAME="netconf" -LANG="kotlin" -TEST_NAME="connect-fail" -TEST_NUMBER=$RANDOM - -mkdir -p "$RESPONSES_DIRECTORY/$CBA_NAME/$LANG/$TEST_NAME/$TEST_NUMBER/" -RESPONSE_HEADERS_FILE="$RESPONSES_DIRECTORY/$CBA_NAME/$LANG/$TEST_NAME/$TEST_NUMBER/response-headers" -RESPONSE_PAYLOAD_FILE="$RESPONSES_DIRECTORY/$CBA_NAME/$LANG/$TEST_NAME/$TEST_NUMBER/response-payload" - -REQUEST_PAYLOAD_FILE="$TEST_DIRECTORY/$CBA_NAME/$LANG/$TEST_NAME/request-payload.json" -EXPECTED_PAYLOAD_FILE="$TEST_DIRECTORY/$CBA_NAME/$LANG/$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 500' -assert_status_code 500 $RESPONSE_HEADERS_FILE - -echo 'Assert connect fail payload' -assert_cds_response_equals $EXPECTED_PAYLOAD_FILE $RESPONSE_PAYLOAD_FILE -- cgit 1.2.3-korg