summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2020-12-04 21:44:23 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-04 21:44:23 +0000
commitbfffa2d982cc506979aaa0b96b6bb352c8dda9a7 (patch)
tree1093505679ce13406d66b9ccc5fd78884923ea37 /cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
parent81b196b4c766c7dec927405da1a831cd437c5466 (diff)
parentd3cdace51db473c93540229da3a0fd061120957c (diff)
Merge "cds-bash script package"
Diffstat (limited to 'cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json')
-rw-r--r--cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json144
1 files changed, 144 insertions, 0 deletions
diff --git a/cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json b/cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
new file mode 100644
index 0000000..8484374
--- /dev/null
+++ b/cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
@@ -0,0 +1,144 @@
+{
+ "httpRequest": {
+ "method": "POST",
+ "path": "/remote-ansible/success/api/v2/job_templates/123/launch/"
+ },
+ "httpResponse": {
+ "body": {
+ "job": "456",
+ "ignored_fields": {},
+ "id": "456",
+ "type": "job",
+ "url": "/api/v2/jobs/456/",
+ "related": {
+ "created_by": "/api/v2/users/1/",
+ "modified_by": "/api/v2/users/1/",
+ "labels": "/api/v2/jobs/456/labels/",
+ "inventory": "/api/v2/inventories/1/",
+ "project": "/api/v2/projects/8/",
+ "extra_credentials": "/api/v2/jobs/456/extra_credentials/",
+ "credentials": "/api/v2/jobs/456/credentials/",
+ "unified_job_template": "/api/v2/job_templates/123/",
+ "stdout": "/api/v2/jobs/456/stdout/",
+ "job_events": "/api/v2/jobs/456/job_events/",
+ "job_host_summaries": "/api/v2/jobs/456/job_host_summaries/",
+ "activity_stream": "/api/v2/jobs/456/activity_stream/",
+ "notifications": "/api/v2/jobs/456/notifications/",
+ "job_template": "/api/v2/job_templates/123/",
+ "cancel": "/api/v2/jobs/456/cancel/",
+ "create_schedule": "/api/v2/jobs/456/create_schedule/",
+ "relaunch": "/api/v2/jobs/456/relaunch/"
+ },
+ "summary_fields": {
+ "inventory": {
+ "id": 1,
+ "name": "Demo Inventory",
+ "description": "",
+ "has_active_failures": false,
+ "total_hosts": 1,
+ "hosts_with_active_failures": 0,
+ "total_groups": 0,
+ "groups_with_active_failures": 0,
+ "has_inventory_sources": false,
+ "total_inventory_sources": 0,
+ "inventory_sources_with_failures": 0,
+ "organization_id": 1,
+ "kind": ""
+ },
+ "project": {
+ "id": 8,
+ "name": "cds_playbooks",
+ "description": "CDS - cds_playbooks Project",
+ "status": "ok",
+ "scm_type": ""
+ },
+ "job_template": {
+ "id": "123",
+ "name": "hello_world_job_template",
+ "description": "hello_world Runner Job Template"
+ },
+ "unified_job_template": {
+ "id": "123",
+ "name": "hello_world_job_template",
+ "description": "hello_world Runner Job Template",
+ "unified_job_type": "job"
+ },
+ "created_by": {
+ "id": 1,
+ "username": "admin",
+ "first_name": "",
+ "last_name": ""
+ },
+ "modified_by": {
+ "id": 1,
+ "username": "admin",
+ "first_name": "",
+ "last_name": ""
+ },
+ "user_capabilities": {
+ "delete": true,
+ "start": true
+ },
+ "labels": {
+ "count": 0,
+ "results": []
+ },
+ "extra_credentials": [],
+ "credentials": []
+ },
+ "created": "2019-06-12T11:21:26.891986Z",
+ "modified": "2019-06-12T11:21:27.016410Z",
+ "name": "hello_world_job_template",
+ "description": "hello_world Runner Job Template",
+ "job_type": "run",
+ "inventory": 1,
+ "project": 8,
+ "playbook": "hello_world.yml",
+ "forks": 0,
+ "limit": "",
+ "verbosity": 0,
+ "extra_vars": "{\"tor_group\": \"vEPC\", \"site_id\": \"3 - Belmont\"}",
+ "job_tags": "",
+ "force_handlers": false,
+ "skip_tags": "",
+ "start_at_task": "",
+ "timeout": 0,
+ "use_fact_cache": false,
+ "unified_job_template": "123",
+ "launch_type": "manual",
+ "status": "pending",
+ "failed": false,
+ "started": null,
+ "finished": null,
+ "elapsed": 0,
+ "job_args": "",
+ "job_cwd": "",
+ "job_env": {},
+ "job_explanation": "",
+ "execution_node": "",
+ "controller_node": "",
+ "result_traceback": "",
+ "event_processing_finished": false,
+ "job_template": "123",
+ "passwords_needed_to_start": [],
+ "ask_diff_mode_on_launch": false,
+ "ask_variables_on_launch": true,
+ "ask_limit_on_launch": true,
+ "ask_tags_on_launch": true,
+ "ask_skip_tags_on_launch": true,
+ "ask_job_type_on_launch": false,
+ "ask_verbosity_on_launch": false,
+ "ask_inventory_on_launch": true,
+ "ask_credential_on_launch": true,
+ "allow_simultaneous": false,
+ "artifacts": {},
+ "scm_revision": "",
+ "instance_group": null,
+ "diff_mode": false,
+ "job_slice_number": 0,
+ "job_slice_count": 1,
+ "credential": null,
+ "vault_credential": null
+ }
+ }
+}