Project

General

Profile

Revision f370cc85

Added by Thomas McKay almost 6 years ago

fixes #16501 - subnets import not setting proxies

Changed the vcr recording by adding --reload-cache to all the hammer commands. This hopefully will avoid the intermittent failures due to fetching the v2.json.

View differences:

test/fixtures/vcr_cassettes/resources/settings_import/update_settings_continue.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: get
5
    uri: http://admin:changeme@katello:3000/api/status
4
    method: put
5
    uri: http://admin:changeme@katello:3000/api/settings/99
6 6
    body:
7
      encoding: US-ASCII
8
      string: ''
7
      encoding: UTF-8
8
      string: '{"setting":{"value":"60000"}}'
9 9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12 10
      Accept:
13
      - '*/*'
11
      - application/json;version=2
12
      Accept-Encoding:
13
      - gzip, deflate
14
      Content-Type:
15
      - application/json
16
      Content-Length:
17
      - '29'
14 18
      User-Agent:
15 19
      - Ruby
16 20
  response:
......
33 37
      Apipie-Checksum:
34 38
      - e98945ba1db6bdbb4c25ce4988912344
35 39
      Etag:
36
      - W/"f536fd8685b76bb26a943d472593c93e"
40
      - W/"076d4507efa74eb8790faa1c97e1c713"
37 41
      Cache-Control:
38 42
      - max-age=0, private, must-revalidate
39 43
      Set-Cookie:
40
      - _session_id=fe8e544a6960d4e9414c6c6f9485039d; path=/; HttpOnly
44
      - _session_id=2db127278d1d58e8edacf000b8807c04; path=/; HttpOnly
45
      - request_method=PUT; path=/
41 46
      X-Request-Id:
42
      - 382dfe53-746c-4d59-a1ad-6f23d903362b
47
      - 9f7e6bbd-61d7-45d7-9bb6-73875ebb50d1
43 48
      X-Runtime:
44
      - '0.219354'
49
      - '0.322533'
45 50
      Transfer-Encoding:
46 51
      - chunked
47 52
    body:
48 53
      encoding: UTF-8
49
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
50
    http_version:
51
  recorded_at: Tue, 23 Aug 2016 12:27:08 GMT
54
      string: '{"value":60000,"description":"Log out idle users after a certain number
55
        of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-08-10
56
        12:38:11 UTC","updated_at":"2016-08-10 13:34:48 UTC","id":99,"name":"idle_timeout"}'
57
    http_version: 
58
  recorded_at: Tue, 23 Aug 2016 12:27:09 GMT
52 59
- request:
53 60
    method: get
54
    uri: http://admin:changeme@katello:3000/api/v2/plugins
61
    uri: https://admin:changeme@katello.example.com:50191/api/status
55 62
    body:
56 63
      encoding: US-ASCII
57 64
      string: ''
......
59 66
      Accept-Encoding:
60 67
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61 68
      Accept:
62
      - '*/*'
69
      - "*/*"
63 70
      User-Agent:
64 71
      - Ruby
65 72
  response:
......
67 74
      code: 200
68 75
      message: OK
69 76
    headers:
77
      Date:
78
      - Fri, 09 Sep 2016 20:03:31 GMT
79
      Server:
80
      - Apache/2.4.6 (CentOS)
70 81
      X-Frame-Options:
71 82
      - SAMEORIGIN
72 83
      X-Xss-Protection:
......
74 85
      X-Content-Type-Options:
75 86
      - nosniff
76 87
      Foreman-Version:
77
      - 1.13.0-develop
88
      - 1.14.0-develop
78 89
      Foreman-Api-Version:
79 90
      - '2'
80 91
      Content-Type:
81 92
      - application/json; charset=utf-8
82 93
      Apipie-Checksum:
83
      - e98945ba1db6bdbb4c25ce4988912344
94
      - 9544abef9cf8343005f07ed8c9f1f8e7
84 95
      Etag:
85
      - W/"5fdeea8a610f7805000b37060cecd4be"
96
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
86 97
      Cache-Control:
87 98
      - max-age=0, private, must-revalidate
99
      X-Request-Id:
100
      - ca083cfa-80e1-4718-9d98-b4b4fc2593a5
101
      X-Runtime:
102
      - '0.218150'
103
      Via:
104
      - 1.1 katello.example.com:50191
105
      Vary:
106
      - Accept-Encoding
107
      Content-Length:
108
      - '81'
88 109
      Set-Cookie:
89
      - _session_id=751cd08fdddca7c9e57a7fe911851ab7; path=/; HttpOnly
110
      - _session_id=fdf26a1e0ae85327c25a29e01103e3c9; path=/; HttpOnly
111
    body:
112
      encoding: UTF-8
113
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
114
    http_version: 
115
  recorded_at: Fri, 09 Sep 2016 20:03:32 GMT
116
- request:
117
    method: get
118
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
119
    body:
120
      encoding: US-ASCII
121
      string: ''
122
    headers:
123
      Accept-Encoding:
124
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
125
      Accept:
126
      - "*/*"
127
      User-Agent:
128
      - Ruby
129
  response:
130
    status:
131
      code: 200
132
      message: OK
133
    headers:
134
      Date:
135
      - Fri, 09 Sep 2016 20:03:32 GMT
136
      Server:
137
      - Apache/2.4.6 (CentOS)
138
      X-Frame-Options:
139
      - SAMEORIGIN
140
      X-Xss-Protection:
141
      - 1; mode=block
142
      X-Content-Type-Options:
143
      - nosniff
144
      Foreman-Version:
145
      - 1.14.0-develop
146
      Foreman-Api-Version:
147
      - '2'
148
      Content-Type:
149
      - application/json; charset=utf-8
150
      Apipie-Checksum:
151
      - 9544abef9cf8343005f07ed8c9f1f8e7
152
      Etag:
153
      - W/"c547959b2afaff0cf0a8d731005e9365-gzip"
154
      Cache-Control:
155
      - max-age=0, private, must-revalidate
90 156
      X-Request-Id:
91
      - e084840e-5972-4d4a-8d86-04b3034325b2
157
      - 0846426a-0f16-4f7c-8516-5a23c95d6502
92 158
      X-Runtime:
93
      - '0.224010'
94
      Transfer-Encoding:
95
      - chunked
159
      - '0.180131'
160
      Via:
161
      - 1.1 katello.example.com:50191
162
      Vary:
163
      - Accept-Encoding
164
      Content-Length:
165
      - '566'
166
      Set-Cookie:
167
      - _session_id=594dea456656bd0d54082896b20e74d7; path=/; HttpOnly
96 168
    body:
97 169
      encoding: ASCII-8BIT
98 170
      string: !binary |-
99
        ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
171
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
100 172
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
101 173
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
102 174
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
......
111 183
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
112 184
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
113 185
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
114
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMCJ9LHsiaWQiOiJmb3JlbWFu
186
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
115 187
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
116 188
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
117 189
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
118 190
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
119 191
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
120
        ZCI6ImZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsIm5hbWUiOiJmb3JlbWFu
121
        X3JlbW90ZV9leGVjdXRpb24iLCJhdXRob3IiOiJGb3JlbWFuIFJlbW90ZSBF
122
        eGVjdXRpb24gdGVhbSIsImRlc2NyaXB0aW9uIjoiQSBwbHVnaW4gYnJpbmdp
123
        bmcgcmVtb3RlIGV4ZWN1dGlvbiB0byB0aGUgRm9yZW1hbiwgY29tcGxldGlu
124
        ZyB0aGUgY29uZmlnIG1hbmFnZW1lbnQgZnVuY3Rpb25hbGl0eSB3aXRoIHJl
125
        bW90ZSBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkuIiwidXJsIjoiaHR0cHM6
126
        Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9yZW1hbl9yZW1vdGVfZXhlY3V0
127
        aW9uIiwidmVyc2lvbiI6IjEuMC4wIn0seyJpZCI6ImthdGVsbG8iLCJuYW1l
128
        Ijoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIsImRlc2NyaXB0aW9uIjoiQ29u
129
        dGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFnZW1lbnQgcGx1Z2luIGZvciBG
130
        b3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5rYXRlbGxvLm9yZyIsInZlcnNp
131
        b24iOiIzLjIuMCJ9XQp9Cg==
132
    http_version:
133
  recorded_at: Tue, 23 Aug 2016 12:27:08 GMT
192
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
193
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
194
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
195
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
196
    http_version: 
197
  recorded_at: Fri, 09 Sep 2016 20:03:32 GMT
134 198
- request:
135 199
    method: get
136
    uri: http://admin:changeme@katello:3000/api/settings?search=name=%22badsetting%22
200
    uri: https://admin:changeme@katello.example.com:50191/api/settings?search=name=%22badsetting%22
137 201
    body:
138 202
      encoding: US-ASCII
139 203
      string: ''
......
142 206
      - application/json;version=2
143 207
      Accept-Encoding:
144 208
      - gzip, deflate
209
      User-Agent:
210
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
145 211
      Content-Type:
146 212
      - application/json
147
      User-Agent:
148
      - Ruby
213
      Host:
214
      - katello.example.com:50191
149 215
  response:
150 216
    status:
151 217
      code: 200
152 218
      message: OK
153 219
    headers:
220
      Date:
221
      - Fri, 09 Sep 2016 20:03:32 GMT
222
      Server:
223
      - Apache/2.4.6 (CentOS)
154 224
      X-Frame-Options:
155 225
      - SAMEORIGIN
156 226
      X-Xss-Protection:
......
158 228
      X-Content-Type-Options:
159 229
      - nosniff
160 230
      Foreman-Version:
161
      - 1.13.0-develop
231
      - 1.14.0-develop
162 232
      Foreman-Api-Version:
163 233
      - '2'
164 234
      Content-Type:
165 235
      - application/json; charset=utf-8
166 236
      Apipie-Checksum:
167
      - e98945ba1db6bdbb4c25ce4988912344
237
      - 9544abef9cf8343005f07ed8c9f1f8e7
168 238
      Etag:
169
      - W/"d4c516d8c44e3fc286dd84616988bd22"
239
      - W/"9cf326b5132c13814d1b9e58e5145928-gzip"
170 240
      Cache-Control:
171 241
      - max-age=0, private, must-revalidate
172
      Set-Cookie:
173
      - _session_id=b099cb53a190d8eeb8145a91bd76a1e5; path=/; HttpOnly
174 242
      X-Request-Id:
175
      - 89dce3ed-ef29-4b22-a4ce-1a51ebb3e8c1
243
      - b9fba7a8-ab09-4a1f-95dd-57304bbd4461
176 244
      X-Runtime:
177
      - '0.241582'
178
      Transfer-Encoding:
179
      - chunked
245
      - '0.220234'
246
      Via:
247
      - 1.1 katello.example.com:50191
248
      Vary:
249
      - Accept-Encoding
250
      Content-Length:
251
      - '170'
252
      Set-Cookie:
253
      - _session_id=b8994796b4fe1bace7d0cd6b33503ce7; path=/; HttpOnly
180 254
    body:
181
      encoding: UTF-8
255
      encoding: ASCII-8BIT
182 256
      string: |
183 257
        {
184
          "total": 106,
258
          "total": 101,
185 259
          "subtotal": 0,
186 260
          "page": 1,
187 261
          "per_page": 20,
......
192 266
          },
193 267
          "results": []
194 268
        }
195
    http_version:
196
  recorded_at: Tue, 23 Aug 2016 12:27:08 GMT
269
    http_version: 
270
  recorded_at: Fri, 09 Sep 2016 20:03:33 GMT
197 271
- request:
198 272
    method: get
199
    uri: http://admin:changeme@katello:3000/api/settings?search=name=%22idle_timeout%22
273
    uri: https://admin:changeme@katello.example.com:50191/api/settings?search=name=%22idle_timeout%22
200 274
    body:
201 275
      encoding: US-ASCII
202 276
      string: ''
......
205 279
      - application/json;version=2
206 280
      Accept-Encoding:
207 281
      - gzip, deflate
282
      User-Agent:
283
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
208 284
      Content-Type:
209 285
      - application/json
210
      User-Agent:
211
      - Ruby
286
      Host:
287
      - katello.example.com:50191
212 288
  response:
213 289
    status:
214 290
      code: 200
215 291
      message: OK
216 292
    headers:
293
      Date:
294
      - Fri, 09 Sep 2016 20:03:32 GMT
295
      Server:
296
      - Apache/2.4.6 (CentOS)
217 297
      X-Frame-Options:
218 298
      - SAMEORIGIN
219 299
      X-Xss-Protection:
......
221 301
      X-Content-Type-Options:
222 302
      - nosniff
223 303
      Foreman-Version:
224
      - 1.13.0-develop
304
      - 1.14.0-develop
225 305
      Foreman-Api-Version:
226 306
      - '2'
227 307
      Content-Type:
228 308
      - application/json; charset=utf-8
229 309
      Apipie-Checksum:
230
      - e98945ba1db6bdbb4c25ce4988912344
310
      - 9544abef9cf8343005f07ed8c9f1f8e7
231 311
      Etag:
232
      - W/"36e0831745e01f3460c82a79d66680fb"
312
      - W/"63f186b15a72e07220b8ff2f9fac5b9b-gzip"
233 313
      Cache-Control:
234 314
      - max-age=0, private, must-revalidate
235
      Set-Cookie:
236
      - _session_id=808587226a38c5127d61e77e36a05692; path=/; HttpOnly
237 315
      X-Request-Id:
238
      - 7820d6c0-a37e-4fdd-a2c1-ba16669133e0
316
      - b93e8380-08e9-4da0-8548-dda550c394c3
239 317
      X-Runtime:
240
      - '0.303437'
241
      Transfer-Encoding:
242
      - chunked
318
      - '1.236567'
319
      Via:
320
      - 1.1 katello.example.com:50191
321
      Vary:
322
      - Accept-Encoding
323
      Content-Length:
324
      - '430'
325
      Set-Cookie:
326
      - _session_id=458fa61a5d6339ca36328a2b15e77f5a; path=/; HttpOnly
243 327
    body:
244
      encoding: UTF-8
328
      encoding: ASCII-8BIT
245 329
      string: |
246 330
        {
247
          "total": 106,
331
          "total": 101,
248 332
          "subtotal": 1,
249 333
          "page": 1,
250 334
          "per_page": 20,
......
253 337
            "by": null,
254 338
            "order": null
255 339
          },
256
          "results": [{"value":60000,"description":"Log out idle users after a certain number of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-08-10 12:38:11 UTC","updated_at":"2016-08-10 13:34:48 UTC","id":99,"name":"idle_timeout"}]
340
          "results": [{"value":60000,"description":"Log out idle users after a certain number of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-09-02 14:00:52 UTC","updated_at":"2016-09-02 14:58:40 UTC","id":78,"name":"idle_timeout"}]
257 341
        }
258
    http_version:
259
  recorded_at: Tue, 23 Aug 2016 12:27:08 GMT
342
    http_version: 
343
  recorded_at: Fri, 09 Sep 2016 20:03:34 GMT
260 344
- request:
261 345
    method: put
262
    uri: http://admin:changeme@katello:3000/api/settings/99
346
    uri: https://admin:changeme@katello.example.com:50191/api/settings/78
263 347
    body:
264 348
      encoding: UTF-8
265 349
      string: '{"setting":{"value":"60000"}}'
......
268 352
      - application/json;version=2
269 353
      Accept-Encoding:
270 354
      - gzip, deflate
355
      User-Agent:
356
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
271 357
      Content-Type:
272 358
      - application/json
273 359
      Content-Length:
274 360
      - '29'
275
      User-Agent:
276
      - Ruby
361
      Host:
362
      - katello.example.com:50191
277 363
  response:
278 364
    status:
279 365
      code: 200
280 366
      message: OK
281 367
    headers:
368
      Date:
369
      - Fri, 09 Sep 2016 20:03:33 GMT
370
      Server:
371
      - Apache/2.4.6 (CentOS)
282 372
      X-Frame-Options:
283 373
      - SAMEORIGIN
284 374
      X-Xss-Protection:
......
286 376
      X-Content-Type-Options:
287 377
      - nosniff
288 378
      Foreman-Version:
289
      - 1.13.0-develop
379
      - 1.14.0-develop
290 380
      Foreman-Api-Version:
291 381
      - '2'
292 382
      Content-Type:
293 383
      - application/json; charset=utf-8
294 384
      Apipie-Checksum:
295
      - e98945ba1db6bdbb4c25ce4988912344
385
      - 9544abef9cf8343005f07ed8c9f1f8e7
296 386
      Etag:
297
      - W/"076d4507efa74eb8790faa1c97e1c713"
387
      - W/"e21f68d81962ac9e253c7f1abb1dfab4-gzip"
298 388
      Cache-Control:
299 389
      - max-age=0, private, must-revalidate
300
      Set-Cookie:
301
      - _session_id=2db127278d1d58e8edacf000b8807c04; path=/; HttpOnly
302
      - request_method=PUT; path=/
303 390
      X-Request-Id:
304
      - 9f7e6bbd-61d7-45d7-9bb6-73875ebb50d1
391
      - 6f388d28-22ee-4061-9c26-aca79d5a74ac
305 392
      X-Runtime:
306
      - '0.322533'
307
      Transfer-Encoding:
308
      - chunked
393
      - '0.282920'
394
      Via:
395
      - 1.1 katello.example.com:50191
396
      Vary:
397
      - Accept-Encoding
398
      Content-Length:
399
      - '258'
400
      Set-Cookie:
401
      - _session_id=b6e8bc54a65e21d870af83d65fd5ac0b; path=/; HttpOnly
402
      - request_method=PUT; path=/
309 403
    body:
310
      encoding: UTF-8
404
      encoding: ASCII-8BIT
311 405
      string: '{"value":60000,"description":"Log out idle users after a certain number
312
        of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-08-10
313
        12:38:11 UTC","updated_at":"2016-08-10 13:34:48 UTC","id":99,"name":"idle_timeout"}'
314
    http_version:
315
  recorded_at: Tue, 23 Aug 2016 12:27:09 GMT
406
        of minutes","category":"Setting::Auth","settings_type":"integer","default":60,"created_at":"2016-09-02
407
        14:00:52 UTC","updated_at":"2016-09-02 14:58:40 UTC","id":78,"name":"idle_timeout"}'
408
    http_version: 
409
  recorded_at: Fri, 09 Sep 2016 20:03:34 GMT
316 410
recorded_with: VCR 3.0.3

Also available in: Unified diff