summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
diff options
context:
space:
mode:
authorSantoshB <santosh.bayas@amdocs.com>2020-10-15 14:57:57 +0530
committermrichomme <morgan.richomme@orange.com>2020-11-12 14:52:33 +0100
commitd3cdace51db473c93540229da3a0fd061120957c (patch)
treed2d4f1031c7d577d51fe27b6daf1a1e80cdb409d /cds-regression-test/test/remote-ansible/mock-payloads/post_job-template-launch.json
parent8e75c091c8f2079b8ae59ae544fbd19bbef3f963 (diff)
cds-bash script package
Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB <santosh.bayas@amdocs.com> Signed-off-by: mrichomme <morgan.richomme@orange.com>
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
+ }
+ }
+}