summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/test/test/remote-ansible/mock-payloads/post_job-template-launch.json
blob: 8484374c7236594e40b97f54e0c7a902227f0e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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
    }
  }
}