File: test_batch.test_batch_job_schedules.yaml

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (314 lines) | stat: -rw-r--r-- 16,141 bytes parent folder | download
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
interactions:
- request:
    body: '{"schedule": {"recurrenceInterval": "P1D", "startWindow": "PT1H"}, "jobSpecification":
      {"poolInfo": {"poolId": "pool_id"}, "onAllTasksComplete": "terminatejob", "constraints":
      {"maxTaskRetryCount": 2}}, "id": "batch_schedule_fe140e2a"}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['235']
      Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:09 GMT']
    method: POST
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:10 GMT']
      etag: ['0x8D609FE4AE9EC6F']
      last-modified: ['Fri, 24 Aug 2018 20:15:10 GMT']
      location: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a']
      request-id: [80d789a7-4665-42be-b8bd-8e34809db19b]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 201, message: Created}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:10 GMT']
    method: GET
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules?api-version=2018-08-01.7.0
  response:
    body: {string: "{\r\n  \"odata.metadata\":\"https://batchfe140e2a.eastus.batch.azure.com/$metadata#jobschedules\",\"value\":[\r\n
        \   {\r\n      \"id\":\"batch_schedule_fe140e2a\",\"url\":\"https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a\",\"eTag\":\"0x8D609FE4AE9EC6F\",\"lastModified\":\"2018-08-24T20:15:10.2691439Z\",\"creationTime\":\"2018-08-24T20:15:10.2691439Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-24T20:15:10.2691439Z\",\"schedule\":{\r\n
        \       \"startWindow\":\"PT1H\",\"recurrenceInterval\":\"P1D\"\r\n      },\"jobSpecification\":{\r\n
        \       \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n
        \         \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":2\r\n
        \       },\"poolInfo\":{\r\n          \"poolId\":\"pool_id\"\r\n        }\r\n
        \     },\"executionInfo\":{\r\n        \"nextRunTime\":\"2018-08-25T20:15:10.2691439Z\",\"recentJob\":{\r\n
        \         \"url\":\"https://batchfe140e2a.eastus.batch.azure.com/jobs/batch_schedule_fe140e2a:job-1\",\"id\":\"batch_schedule_fe140e2a:job-1\"\r\n
        \       }\r\n      }\r\n    }\r\n  ]\r\n}"}
    headers:
      content-type: [application/json;odata=minimalmetadata]
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:11 GMT']
      request-id: [3d80513e-8182-4674-94d5-66d904e8dabd]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:11 GMT']
    method: GET
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a?api-version=2018-08-01.7.0
  response:
    body: {string: "{\r\n  \"odata.metadata\":\"https://batchfe140e2a.eastus.batch.azure.com/$metadata#jobschedules/@Element\",\"id\":\"batch_schedule_fe140e2a\",\"url\":\"https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a\",\"eTag\":\"0x8D609FE4AE9EC6F\",\"lastModified\":\"2018-08-24T20:15:10.2691439Z\",\"creationTime\":\"2018-08-24T20:15:10.2691439Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-24T20:15:10.2691439Z\",\"schedule\":{\r\n
        \   \"startWindow\":\"PT1H\",\"recurrenceInterval\":\"P1D\"\r\n  },\"jobSpecification\":{\r\n
        \   \"priority\":0,\"usesTaskDependencies\":false,\"onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\",\"constraints\":{\r\n
        \     \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":2\r\n
        \   },\"poolInfo\":{\r\n      \"poolId\":\"pool_id\"\r\n    }\r\n  },\"executionInfo\":{\r\n
        \   \"nextRunTime\":\"2018-08-25T20:15:10.2691439Z\",\"recentJob\":{\r\n      \"url\":\"https://batchfe140e2a.eastus.batch.azure.com/jobs/batch_schedule_fe140e2a:job-1\",\"id\":\"batch_schedule_fe140e2a:job-1\"\r\n
        \   }\r\n  }\r\n}"}
    headers:
      content-type: [application/json;odata=minimalmetadata]
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:12 GMT']
      etag: ['0x8D609FE4AE9EC6F']
      last-modified: ['Fri, 24 Aug 2018 20:15:10 GMT']
      request-id: [d129308e-918e-484d-a394-bf273ae8c1c7]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:12 GMT']
    method: HEAD
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:13 GMT']
      etag: ['0x8D609FE4AE9EC6F']
      last-modified: ['Fri, 24 Aug 2018 20:15:10 GMT']
      request-id: [9d84da2e-c219-4e14-9822-4ed2b901ae33]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:13 GMT']
    method: GET
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/jobs?api-version=2018-08-01.7.0
  response:
    body: {string: "{\r\n  \"odata.metadata\":\"https://batchfe140e2a.eastus.batch.azure.com/$metadata#jobs\",\"value\":[\r\n
        \   {\r\n      \"id\":\"batch_schedule_fe140e2a:job-1\",\"url\":\"https://batchfe140e2a.eastus.batch.azure.com/jobs/batch_schedule_fe140e2a:job-1\",\"eTag\":\"0x8D609FE4B058F9C\",\"lastModified\":\"2018-08-24T20:15:10.4502684Z\",\"creationTime\":\"2018-08-24T20:15:10.3481453Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-24T20:15:10.4502684Z\",\"priority\":0,\"usesTaskDependencies\":false,\"constraints\":{\r\n
        \       \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":2\r\n
        \     },\"poolInfo\":{\r\n        \"poolId\":\"pool_id\"\r\n      },\"executionInfo\":{\r\n
        \       \"startTime\":\"2018-08-24T20:15:10.4502684Z\",\"poolId\":\"pool_id\"\r\n
        \     },\"onAllTasksComplete\":\"terminatejob\",\"onTaskFailure\":\"noaction\"\r\n
        \   }\r\n  ]\r\n}"}
    headers:
      content-type: [application/json;odata=minimalmetadata]
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:13 GMT']
      request-id: [727e2de4-0732-482d-b8eb-c7f533666e69]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:14 GMT']
    method: POST
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/disable?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      content-length: ['0']
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/disable']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:14 GMT']
      etag: ['0x8D609FE4DE22B24']
      last-modified: ['Fri, 24 Aug 2018 20:15:15 GMT']
      request-id: [9b39e901-facc-4ec3-bbaf-56d8d582de8d]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      x-content-type-options: [nosniff]
    status: {code: 204, message: No Content}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:15 GMT']
    method: POST
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/enable?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      content-length: ['0']
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/enable']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:16 GMT']
      etag: ['0x8D609FE4E77AA58']
      last-modified: ['Fri, 24 Aug 2018 20:15:16 GMT']
      request-id: [463eed24-8a43-4f87-9a81-4f8543d3a733]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      x-content-type-options: [nosniff]
    status: {code: 204, message: No Content}
- request:
    body: '{"schedule": {"recurrenceInterval": "PT10H"}, "jobSpecification": {"poolInfo":
      {"poolId": "pool_id"}}}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['102']
      Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:16 GMT']
    method: PUT
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:16 GMT']
      etag: ['0x8D609FE4F11FF16']
      last-modified: ['Fri, 24 Aug 2018 20:15:17 GMT']
      request-id: [7f7fc05a-23c6-4fc0-8342-abe0228ab8c4]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: '{"schedule": {"recurrenceInterval": "PT5H"}}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['44']
      Content-Type: [application/json; odata=minimalmetadata; charset=utf-8]
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:17 GMT']
    method: PATCH
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:18 GMT']
      etag: ['0x8D609FE4FB6072C']
      last-modified: ['Fri, 24 Aug 2018 20:15:18 GMT']
      request-id: [ca12195e-c970-4865-a13c-d0a625e517b4]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 200, message: OK}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:18 GMT']
    method: POST
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/terminate?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceid: ['https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a/terminate']
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:18 GMT']
      etag: ['0x8D609FE503C4974']
      last-modified: ['Fri, 24 Aug 2018 20:15:19 GMT']
      request-id: [a01d364c-0d15-4b9d-944a-42313cc73867]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 202, message: Accepted}
- request:
    body: null
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['0']
      User-Agent: [python/3.5.4 (Windows-2008ServerR2-6.1.7601-SP1) requests/2.19.1
          msrest/0.5.4 msrest_azure/0.4.34 azure-batch/5.0.0 Azure-SDK-For-Python]
      accept-language: [en-US]
      ocp-date: ['Fri, 24 Aug 2018 20:15:19 GMT']
    method: DELETE
    uri: https://batchfe140e2a.eastus.batch.azure.com/jobschedules/batch_schedule_fe140e2a?api-version=2018-08-01.7.0
  response:
    body: {string: ''}
    headers:
      dataserviceversion: ['3.0']
      date: ['Fri, 24 Aug 2018 20:15:19 GMT']
      request-id: [910a578b-f2c7-41d0-afe0-b93b8e3e1a5a]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
    status: {code: 202, message: Accepted}
version: 1