diff options
Diffstat (limited to 'cds-regression-test/test/remote-ansible/success')
3 files changed, 0 insertions, 81 deletions
diff --git a/cds-regression-test/test/remote-ansible/success/expected-response.json b/cds-regression-test/test/remote-ansible/success/expected-response.json deleted file mode 100644 index 9dce094..0000000 --- a/cds-regression-test/test/remote-ansible/success/expected-response.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "correlationUUID": null, - "commonHeader": { - "timestamp": "2020-06-03T16:20:03.527Z", - "originatorId": "System", - "requestId": "remote-ansible-success", - "subRequestId": "remote-ansible-success-1", - "flags": null - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-ansible", - "blueprintVersion": "1.0.0", - "actionName": "execute-remote-ansible-success", - "mode": "sync" - }, - "status": { - "code": 200, - "eventType": "EVENT_COMPONENT_EXECUTED", - "timestamp": "2020-06-03T16:20:18.859Z", - "errorMessage": null, - "message": "success" - }, - "payload": { - "execute-remote-ansible-success-response": { - "ansible-command-status": "successful", - "ansible-command-logs": "Output for Job 456 :\n PLAY [Hello World Sample] ****************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Hello Message] *********************************************************** ok: [localhost] => { \"msg\": \"Hello World!\" } PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=0\n" - } - } -} diff --git a/cds-regression-test/test/remote-ansible/success/request-payload.json b/cds-regression-test/test/remote-ansible/success/request-payload.json deleted file mode 100644 index 3718c4d..0000000 --- a/cds-regression-test/test/remote-ansible/success/request-payload.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "commonHeader": { - "originatorId": "System", - "requestId": "remote-ansible-success", - "subRequestId": "remote-ansible-success-1" - }, - "actionIdentifiers": { - "blueprintName": "RT-remote-ansible", - "blueprintVersion": "1.0.0", - "actionName": "execute-remote-ansible-success", - "mode": "sync" - }, - "payload": { - "execute-remote-ansible-success-request": { - "endpoint-selector": "awx", - "job-template-name": "hello_world_job_template", - "inventory": "Demo Inventory", - "limit": "123", - "tags": "some-tag", - "skip-tags": "some-skip-tag", - "extra-vars": { - "site_id": "3 - Belmont", - "tor_group": "vEPC" - } - } - } -} diff --git a/cds-regression-test/test/remote-ansible/success/test.sh b/cds-regression-test/test/remote-ansible/success/test.sh deleted file mode 100644 index eab16ca..0000000 --- a/cds-regression-test/test/remote-ansible/success/test.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -CBA_NAME="remote-ansible" -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_versioned 200 $RESPONSE_HEADERS_FILE $RESPONSE_PAYLOAD_FILE - -echo 'Assert payload' -assert_cds_response_equals $EXPECTED_PAYLOAD_FILE $RESPONSE_PAYLOAD_FILE |