Project

General

Profile

Revision 4a6b2238

Added by Thomas McKay about 6 years ago

fixes #17735 - export content-hosts count greater than page size

vcr - full re-record

View differences:

test/fixtures/vcr_cassettes/setup/setup_content_hosts/setup.yml
1 1
---
2 2
http_interactions:
3 3
- request:
4
    method: put
5
    uri: https://admin:changeme@satlap.example.com/api/hosts/4
6
    body:
7
      encoding: UTF-8
8
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
9
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
10
    headers:
11
      Accept:
12
      - application/json;version=2
13
      Accept-Encoding:
14
      - gzip, deflate
15
      User-Agent:
16
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
17
      Content-Type:
18
      - application/json
19
      Accept-Language:
20
      - en
21
      Content-Length:
22
      - '271'
23
      Host:
24
      - satlap.example.com
25
  response:
26
    status:
27
      code: 200
28
      message: OK
29
    headers:
30
      Date:
31
      - Tue, 13 Dec 2016 14:48:27 GMT
32
      Server:
33
      - Apache/2.4.6 (Red Hat Enterprise Linux)
34
      X-Frame-Options:
35
      - SAMEORIGIN
36
      X-Xss-Protection:
37
      - 1; mode=block
38
      X-Content-Type-Options:
39
      - nosniff
40
      Foreman-Version:
41
      - 1.11.0.54
42
      Foreman-Api-Version:
43
      - '2'
44
      Apipie-Checksum:
45
      - e1df2e8d43e22495b02a53b48e3b5298
46
      Cache-Control:
47
      - max-age=0, private, must-revalidate
48
      X-Request-Id:
49
      - 85d1a239-13a1-4e0c-bfce-3663217ffbed
50
      X-Runtime:
51
      - '0.606735'
52
      X-Powered-By:
53
      - Phusion Passenger 4.0.18
54
      Set-Cookie:
55
      - _session_id=80e60bbaf807b47d6bd0865651aacb1e; path=/; secure; HttpOnly
56
      - request_method=PUT; path=/
57
      Etag:
58
      - '"213863c8545b4acac07c3898c6249b59-gzip"'
59
      Status:
60
      - 200 OK
61
      Vary:
62
      - Accept-Encoding
63
      Content-Length:
64
      - '3814'
65
      Content-Type:
66
      - application/json; charset=utf-8
67
    body:
68
      encoding: ASCII-8BIT
69
      string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13
70
        10:58:55 UTC","updated_at":"2016-12-13 14:48:27 UTC","last_compile":"2016-12-13
71
        10:58:57 UTC","global_status":2,"global_status_label":"Error","organization_id":8,"organization_name":"Test
72
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
73
        not calculate errata status, ensure host is registered and katello-agent is
74
        installed","subscription_status":2,"subscription_status_label":"Unentitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default
75
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
76
        Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13
77
        10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
78
        10:58:56 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
79
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}]},"content_host_id":4,"parameters":[],"interfaces":[{"id":4,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
80
        Corporation/testvm","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T10:58:57+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
81
    http_version: 
82
  recorded_at: Tue, 13 Dec 2016 14:48:26 GMT
83
- request:
84
    method: get
85
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions
86
    body:
87
      encoding: US-ASCII
88
      string: ''
89
    headers:
90
      Accept:
91
      - application/json;version=2
92
      Accept-Encoding:
93
      - gzip, deflate
94
      User-Agent:
95
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
96
      Content-Type:
97
      - application/json
98
      Accept-Language:
99
      - en
100
      Host:
101
      - satlap.example.com
102
  response:
103
    status:
104
      code: 200
105
      message: OK
106
    headers:
107
      Date:
108
      - Tue, 13 Dec 2016 14:48:28 GMT
109
      Server:
110
      - Apache/2.4.6 (Red Hat Enterprise Linux)
111
      X-Frame-Options:
112
      - SAMEORIGIN
113
      X-Xss-Protection:
114
      - 1; mode=block
115
      X-Content-Type-Options:
116
      - nosniff
117
      Foreman-Version:
118
      - 1.11.0.54
119
      Foreman-Api-Version:
120
      - '2'
121
      Apipie-Checksum:
122
      - e1df2e8d43e22495b02a53b48e3b5298
123
      Cache-Control:
124
      - max-age=0, private, must-revalidate
125
      X-Request-Id:
126
      - 1b8e1dfa-54c0-40f3-b613-c004d37c78fb
127
      X-Runtime:
128
      - '0.260198'
129
      X-Powered-By:
130
      - Phusion Passenger 4.0.18
131
      Set-Cookie:
132
      - _session_id=a9c812854ded3f812a77769115d36186; path=/; secure; HttpOnly
133
      Etag:
134
      - '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
135
      Status:
136
      - 200 OK
137
      Vary:
138
      - Accept-Encoding
139
      Content-Length:
140
      - '770'
141
      Content-Type:
142
      - application/json; charset=utf-8
143
    body:
144
      encoding: ASCII-8BIT
145
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
146
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
147
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
148

  
149
'
150
    http_version: 
151
  recorded_at: Tue, 13 Dec 2016 14:48:26 GMT
152
- request:
153
    method: put
154
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/remove_subscriptions
155
    body:
156
      encoding: UTF-8
157
      string: '{"subscriptions":[{"id":37,"quantity":1}]}'
158
    headers:
159
      Accept:
160
      - application/json;version=2
161
      Accept-Encoding:
162
      - gzip, deflate
163
      User-Agent:
164
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
165
      Content-Type:
166
      - application/json
167
      Accept-Language:
168
      - en
169
      Content-Length:
170
      - '42'
171
      Host:
172
      - satlap.example.com
173
  response:
174
    status:
175
      code: 200
176
      message: OK
177
    headers:
178
      Date:
179
      - Tue, 13 Dec 2016 14:48:28 GMT
180
      Server:
181
      - Apache/2.4.6 (Red Hat Enterprise Linux)
182
      X-Frame-Options:
183
      - SAMEORIGIN
184
      X-Xss-Protection:
185
      - 1; mode=block
186
      X-Content-Type-Options:
187
      - nosniff
188
      Foreman-Version:
189
      - 1.11.0.54
190
      Foreman-Api-Version:
191
      - '2'
192
      Apipie-Checksum:
193
      - e1df2e8d43e22495b02a53b48e3b5298
194
      Cache-Control:
195
      - max-age=0, private, must-revalidate
196
      X-Request-Id:
197
      - fd3688c7-cf91-459a-8e81-047befd46d49
198
      X-Runtime:
199
      - '0.933296'
200
      X-Powered-By:
201
      - Phusion Passenger 4.0.18
202
      Set-Cookie:
203
      - _session_id=868e90253c53c6ede4b6ba5991ec0f11; path=/; secure; HttpOnly
204
      - request_method=PUT; path=/
205
      Etag:
206
      - '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
207
      Status:
208
      - 200 OK
209
      Vary:
210
      - Accept-Encoding
211
      Content-Length:
212
      - '770'
213
      Content-Type:
214
      - application/json; charset=utf-8
215
    body:
216
      encoding: ASCII-8BIT
217
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
218
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
219
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
220

  
221
'
222
    http_version: 
223
  recorded_at: Tue, 13 Dec 2016 14:48:27 GMT
224
- request:
225
    method: put
226
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/add_subscriptions
227
    body:
228
      encoding: UTF-8
229
      string: '{"subscriptions":[{"id":37,"quantity":0}]}'
230
    headers:
231
      Accept:
232
      - application/json;version=2
233
      Accept-Encoding:
234
      - gzip, deflate
235
      User-Agent:
236
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
237
      Content-Type:
238
      - application/json
239
      Accept-Language:
240
      - en
241
      Content-Length:
242
      - '42'
243
      Host:
244
      - satlap.example.com
245
  response:
246
    status:
247
      code: 200
248
      message: OK
249
    headers:
250
      Date:
251
      - Tue, 13 Dec 2016 14:48:30 GMT
252
      Server:
253
      - Apache/2.4.6 (Red Hat Enterprise Linux)
254
      X-Frame-Options:
255
      - SAMEORIGIN
256
      X-Xss-Protection:
257
      - 1; mode=block
258
      X-Content-Type-Options:
259
      - nosniff
260
      Foreman-Version:
261
      - 1.11.0.54
262
      Foreman-Api-Version:
263
      - '2'
264
      Apipie-Checksum:
265
      - e1df2e8d43e22495b02a53b48e3b5298
266
      Cache-Control:
267
      - max-age=0, private, must-revalidate
268
      X-Request-Id:
269
      - e34a834a-71d9-4b5e-9d3a-e54adde4b0ea
270
      X-Runtime:
271
      - '0.942634'
272
      X-Powered-By:
273
      - Phusion Passenger 4.0.18
274
      Set-Cookie:
275
      - _session_id=fc320fb6c34979331762e574900fe00a; path=/; secure; HttpOnly
276
      - request_method=PUT; path=/
277
      Etag:
278
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
279
      Status:
280
      - 200 OK
281
      Vary:
282
      - Accept-Encoding
283
      Content-Length:
284
      - '119'
285
      Content-Type:
286
      - application/json; charset=utf-8
287
    body:
288
      encoding: ASCII-8BIT
289
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
290

  
291
'
292
    http_version: 
293
  recorded_at: Tue, 13 Dec 2016 14:48:28 GMT
294
- request:
295
    method: get
296
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
297
    body:
298
      encoding: US-ASCII
299
      string: ''
300
    headers:
301
      Accept:
302
      - application/json;version=2
303
      Accept-Encoding:
304
      - gzip, deflate
305
      User-Agent:
306
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
307
      Content-Type:
308
      - application/json
309
      Accept-Language:
310
      - en
311
      Host:
312
      - satlap.example.com
313
  response:
314
    status:
315
      code: 200
316
      message: OK
317
    headers:
318
      Date:
319
      - Tue, 13 Dec 2016 14:48:33 GMT
320
      Server:
321
      - Apache/2.4.6 (Red Hat Enterprise Linux)
322
      X-Frame-Options:
323
      - SAMEORIGIN
324
      X-Xss-Protection:
325
      - 1; mode=block
326
      X-Content-Type-Options:
327
      - nosniff
328
      Foreman-Version:
329
      - 1.11.0.54
330
      Foreman-Api-Version:
331
      - '2'
332
      Apipie-Checksum:
333
      - e1df2e8d43e22495b02a53b48e3b5298
334
      Cache-Control:
335
      - max-age=0, private, must-revalidate
336
      X-Request-Id:
337
      - 055dc747-c5b1-4b46-9a3e-cfe34938211c
338
      X-Runtime:
339
      - '0.514123'
340
      X-Powered-By:
341
      - Phusion Passenger 4.0.18
342
      Set-Cookie:
343
      - _session_id=4ec6f0aa2c28e0fb3c76a6b9b273a61c; path=/; secure; HttpOnly
344
      Etag:
345
      - '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
346
      Status:
347
      - 200 OK
348
      Vary:
349
      - Accept-Encoding
350
      Content-Length:
351
      - '1972'
352
      Content-Type:
353
      - application/json; charset=utf-8
354
    body:
355
      encoding: ASCII-8BIT
356
      string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
357
        Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
358
        Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
359
        Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
360
        Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
361
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
362
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
363

  
364
'
365
    http_version: 
366
  recorded_at: Tue, 13 Dec 2016 14:48:31 GMT
367
- request:
368
    method: put
369
    uri: https://admin:changeme@satlap.example.com/api/hosts/5
370
    body:
371
      encoding: UTF-8
372
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
373
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
374
    headers:
375
      Accept:
376
      - application/json;version=2
377
      Accept-Encoding:
378
      - gzip, deflate
379
      User-Agent:
380
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
381
      Content-Type:
382
      - application/json
383
      Accept-Language:
384
      - en
385
      Content-Length:
386
      - '271'
387
      Host:
388
      - satlap.example.com
389
  response:
390
    status:
391
      code: 200
392
      message: OK
393
    headers:
394
      Date:
395
      - Tue, 13 Dec 2016 14:48:34 GMT
396
      Server:
397
      - Apache/2.4.6 (Red Hat Enterprise Linux)
398
      X-Frame-Options:
399
      - SAMEORIGIN
400
      X-Xss-Protection:
401
      - 1; mode=block
402
      X-Content-Type-Options:
403
      - nosniff
404
      Foreman-Version:
405
      - 1.11.0.54
406
      Foreman-Api-Version:
407
      - '2'
408
      Apipie-Checksum:
409
      - e1df2e8d43e22495b02a53b48e3b5298
410
      Cache-Control:
411
      - max-age=0, private, must-revalidate
412
      X-Request-Id:
413
      - a4bddce6-8806-4536-8d98-4803d5f09ca6
414
      X-Runtime:
415
      - '0.674309'
416
      X-Powered-By:
417
      - Phusion Passenger 4.0.18
418
      Set-Cookie:
419
      - _session_id=eaf7397d5a536ac7bf92d3534b5b9bf8; path=/; secure; HttpOnly
420
      - request_method=PUT; path=/
421
      Etag:
422
      - '"ad5c0377fc0b2c053648e4100b6ef71c-gzip"'
423
      Status:
424
      - 200 OK
425
      Vary:
426
      - Accept-Encoding
427
      Content-Length:
428
      - '3850'
429
      Content-Type:
430
      - application/json; charset=utf-8
431
    body:
432
      encoding: ASCII-8BIT
433
      string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13
434
        11:01:00 UTC","updated_at":"2016-12-13 11:49:06 UTC","last_compile":"2016-12-13
435
        11:01:02 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
436
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
437
        not calculate errata status, ensure host is registered and katello-agent is
438
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default
439
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
440
        Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13
441
        11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
442
        11:01:01 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7ccd506f2","productId":"69","productName":"Red
443
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:01:04.853+0000","updated":"2016-12-13T11:01:04.853+0000"}]},"content_host_id":5,"parameters":[],"interfaces":[{"id":5,"name":"testphysical","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"8","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
444
        Corporation/testphysical","system::certificate_version":"3.2","network::hostname":"testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T11:01:02+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
445
    http_version: 
446
  recorded_at: Tue, 13 Dec 2016 14:48:33 GMT
447
- request:
448
    method: get
449
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions
450
    body:
451
      encoding: US-ASCII
452
      string: ''
453
    headers:
454
      Accept:
455
      - application/json;version=2
456
      Accept-Encoding:
457
      - gzip, deflate
458
      User-Agent:
459
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
460
      Content-Type:
461
      - application/json
462
      Accept-Language:
463
      - en
464
      Host:
465
      - satlap.example.com
466
  response:
467
    status:
468
      code: 200
469
      message: OK
470
    headers:
471
      Date:
472
      - Tue, 13 Dec 2016 14:48:35 GMT
473
      Server:
474
      - Apache/2.4.6 (Red Hat Enterprise Linux)
475
      X-Frame-Options:
476
      - SAMEORIGIN
477
      X-Xss-Protection:
478
      - 1; mode=block
479
      X-Content-Type-Options:
480
      - nosniff
481
      Foreman-Version:
482
      - 1.11.0.54
483
      Foreman-Api-Version:
484
      - '2'
485
      Apipie-Checksum:
486
      - e1df2e8d43e22495b02a53b48e3b5298
487
      Cache-Control:
488
      - max-age=0, private, must-revalidate
489
      X-Request-Id:
490
      - 4abce132-8fc6-4574-a1ac-57ca5c086148
491
      X-Runtime:
492
      - '0.260778'
493
      X-Powered-By:
494
      - Phusion Passenger 4.0.18
495
      Set-Cookie:
496
      - _session_id=e26afe982c02c09f47172d4b530b3e2d; path=/; secure; HttpOnly
497
      Etag:
498
      - '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
499
      Status:
500
      - 200 OK
501
      Vary:
502
      - Accept-Encoding
503
      Content-Length:
504
      - '770'
505
      Content-Type:
506
      - application/json; charset=utf-8
507
    body:
508
      encoding: ASCII-8BIT
509
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
510
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
511
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
512

  
513
'
514
    http_version: 
515
  recorded_at: Tue, 13 Dec 2016 14:48:33 GMT
516
- request:
517
    method: put
518
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/remove_subscriptions
519
    body:
520
      encoding: UTF-8
521
      string: '{"subscriptions":[{"id":37,"quantity":1}]}'
522
    headers:
523
      Accept:
524
      - application/json;version=2
525
      Accept-Encoding:
526
      - gzip, deflate
527
      User-Agent:
528
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
529
      Content-Type:
530
      - application/json
531
      Accept-Language:
532
      - en
533
      Content-Length:
534
      - '42'
535
      Host:
536
      - satlap.example.com
537
  response:
538
    status:
539
      code: 200
540
      message: OK
541
    headers:
542
      Date:
543
      - Tue, 13 Dec 2016 14:48:35 GMT
544
      Server:
545
      - Apache/2.4.6 (Red Hat Enterprise Linux)
546
      X-Frame-Options:
547
      - SAMEORIGIN
548
      X-Xss-Protection:
549
      - 1; mode=block
550
      X-Content-Type-Options:
551
      - nosniff
552
      Foreman-Version:
553
      - 1.11.0.54
554
      Foreman-Api-Version:
555
      - '2'
556
      Apipie-Checksum:
557
      - e1df2e8d43e22495b02a53b48e3b5298
558
      Cache-Control:
559
      - max-age=0, private, must-revalidate
560
      X-Request-Id:
561
      - 253b250d-9421-4afb-b7c6-b20deb35824b
562
      X-Runtime:
563
      - '1.038903'
564
      X-Powered-By:
565
      - Phusion Passenger 4.0.18
566
      Set-Cookie:
567
      - _session_id=dc7510f4bdb9a7f9844cb942da72e5f0; path=/; secure; HttpOnly
568
      - request_method=PUT; path=/
569
      Etag:
570
      - '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
571
      Status:
572
      - 200 OK
573
      Vary:
574
      - Accept-Encoding
575
      Content-Length:
576
      - '770'
577
      Content-Type:
578
      - application/json; charset=utf-8
579
    body:
580
      encoding: ASCII-8BIT
581
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
582
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
583
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
584

  
585
'
586
    http_version: 
587
  recorded_at: Tue, 13 Dec 2016 14:48:34 GMT
588
- request:
589
    method: get
590
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
591
    body:
592
      encoding: US-ASCII
593
      string: ''
594
    headers:
595
      Accept:
596
      - application/json;version=2
597
      Accept-Encoding:
598
      - gzip, deflate
599
      User-Agent:
600
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
601
      Content-Type:
602
      - application/json
603
      Accept-Language:
604
      - en
605
      Host:
606
      - satlap.example.com
607
  response:
608
    status:
609
      code: 200
610
      message: OK
611
    headers:
612
      Date:
613
      - Tue, 13 Dec 2016 14:48:36 GMT
614
      Server:
615
      - Apache/2.4.6 (Red Hat Enterprise Linux)
616
      X-Frame-Options:
617
      - SAMEORIGIN
618
      X-Xss-Protection:
619
      - 1; mode=block
620
      X-Content-Type-Options:
621
      - nosniff
622
      Foreman-Version:
623
      - 1.11.0.54
624
      Foreman-Api-Version:
625
      - '2'
626
      Apipie-Checksum:
627
      - e1df2e8d43e22495b02a53b48e3b5298
628
      Cache-Control:
629
      - max-age=0, private, must-revalidate
630
      X-Request-Id:
631
      - 2e9789d0-5d69-4eb4-b2db-c18159b0a683
632
      X-Runtime:
633
      - '0.578956'
634
      X-Powered-By:
635
      - Phusion Passenger 4.0.18
636
      Set-Cookie:
637
      - _session_id=e43e468bb05ac9ea9ab31cdb984276c2; path=/; secure; HttpOnly
638
      Etag:
639
      - '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
640
      Status:
641
      - 200 OK
642
      Vary:
643
      - Accept-Encoding
644
      Content-Length:
645
      - '1972'
646
      Content-Type:
647
      - application/json; charset=utf-8
648
    body:
649
      encoding: ASCII-8BIT
650
      string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
651
        Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
652
        Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
653
        Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
654
        Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
655
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
656
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
657

  
658
'
659
    http_version: 
660
  recorded_at: Tue, 13 Dec 2016 14:48:34 GMT
661
- request:
662
    method: put
663
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/add_subscriptions
664
    body:
665
      encoding: UTF-8
666
      string: '{"subscriptions":[{"id":37,"quantity":0}]}'
667
    headers:
668
      Accept:
669
      - application/json;version=2
670
      Accept-Encoding:
671
      - gzip, deflate
672
      User-Agent:
673
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
674
      Content-Type:
675
      - application/json
676
      Accept-Language:
677
      - en
678
      Content-Length:
679
      - '42'
680
      Host:
681
      - satlap.example.com
682
  response:
683
    status:
684
      code: 200
685
      message: OK
686
    headers:
687
      Date:
688
      - Tue, 13 Dec 2016 14:48:37 GMT
689
      Server:
690
      - Apache/2.4.6 (Red Hat Enterprise Linux)
691
      X-Frame-Options:
692
      - SAMEORIGIN
693
      X-Xss-Protection:
694
      - 1; mode=block
695
      X-Content-Type-Options:
696
      - nosniff
697
      Foreman-Version:
698
      - 1.11.0.54
699
      Foreman-Api-Version:
700
      - '2'
701
      Apipie-Checksum:
702
      - e1df2e8d43e22495b02a53b48e3b5298
703
      Cache-Control:
704
      - max-age=0, private, must-revalidate
705
      X-Request-Id:
706
      - 7e122fc9-0482-4b20-8d6a-cffa0a75a2d7
707
      X-Runtime:
708
      - '0.892579'
709
      X-Powered-By:
710
      - Phusion Passenger 4.0.18
711
      Set-Cookie:
712
      - _session_id=b7b69504b1fc1080909c3061d6ba3a4f; path=/; secure; HttpOnly
713
      - request_method=PUT; path=/
714
      Etag:
715
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
716
      Status:
717
      - 200 OK
718
      Vary:
719
      - Accept-Encoding
720
      Content-Length:
721
      - '119'
722
      Content-Type:
723
      - application/json; charset=utf-8
724
    body:
725
      encoding: ASCII-8BIT
726
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
727

  
728
'
729
    http_version: 
730
  recorded_at: Tue, 13 Dec 2016 14:48:35 GMT
731
- request:
732 4
    method: get
733 5
    uri: https://admin:changeme@satlap.example.com/api/status
734 6
    body:
......
749 21
      message: OK
750 22
    headers:
751 23
      Date:
752
      - Wed, 14 Dec 2016 13:43:30 GMT
24
      - Mon, 19 Dec 2016 16:43:40 GMT
753 25
      Server:
754 26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
755 27
      X-Frame-Options:
......
759 31
      X-Content-Type-Options:
760 32
      - nosniff
761 33
      Foreman-Version:
762
      - 1.11.0.54
34
      - 1.11.0.61
763 35
      Foreman-Api-Version:
764 36
      - '2'
765 37
      Apipie-Checksum:
766
      - e1df2e8d43e22495b02a53b48e3b5298
38
      - 9793fd9909c89b81479655ed560c4340
767 39
      Cache-Control:
768 40
      - max-age=0, private, must-revalidate
769 41
      X-Request-Id:
770
      - e14a8a19-50f4-4cfa-a024-3b28622e2f59
42
      - c6ee99d7-d41b-4f0c-ad97-5edca50a8d89
771 43
      X-Runtime:
772
      - '0.042621'
44
      - '0.046290'
773 45
      X-Powered-By:
774 46
      - Phusion Passenger 4.0.18
775 47
      Set-Cookie:
776
      - _session_id=0511be409f553d59486781d3192ae0d2; path=/; secure; HttpOnly
48
      - _session_id=fe00f774fac39e9e9f0f532e1a44ed03; path=/; secure; HttpOnly
777 49
      Etag:
778
      - '"8e3341d0a4cc328651f7391aed11fef8"'
50
      - '"6ec0375dc2b106a955e67a8139b7d9c5"'
779 51
      Status:
780 52
      - 200 OK
781 53
      Content-Length:
......
784 56
      - application/json; charset=utf-8
785 57
    body:
786 58
      encoding: UTF-8
787
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
59
      string: '{"result":"ok","status":200,"version":"1.11.0.61","api_version":2}'
788 60
    http_version: 
789
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
61
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
790 62
- request:
791 63
    method: get
792 64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
......
808 80
      message: OK
809 81
    headers:
810 82
      Date:
811
      - Wed, 14 Dec 2016 13:43:30 GMT
83
      - Mon, 19 Dec 2016 16:43:40 GMT
812 84
      Server:
813 85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
814 86
      X-Frame-Options:
......
818 90
      X-Content-Type-Options:
819 91
      - nosniff
820 92
      Foreman-Version:
821
      - 1.11.0.54
93
      - 1.11.0.61
822 94
      Foreman-Api-Version:
823 95
      - '2'
824 96
      Apipie-Checksum:
825
      - e1df2e8d43e22495b02a53b48e3b5298
97
      - 9793fd9909c89b81479655ed560c4340
826 98
      Cache-Control:
827 99
      - max-age=0, private, must-revalidate
828 100
      X-Request-Id:
829
      - b6d68041-8276-456e-9440-1a4487353502
101
      - e80b6010-d010-4b10-bbcb-574a3b5fb3cd
830 102
      X-Runtime:
831
      - '0.030543'
103
      - '0.038995'
832 104
      X-Powered-By:
833 105
      - Phusion Passenger 4.0.18
834 106
      Set-Cookie:
835
      - _session_id=fd1dfb27cd90d6d6901cdd9ca26c4815; path=/; secure; HttpOnly
107
      - _session_id=ed507e8887992e74ca07dcfeba09a1c6; path=/; secure; HttpOnly
836 108
      Etag:
837
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
109
      - '"973c5d3fa1e5326b7762aec3d6a31dde-gzip"'
838 110
      Status:
839 111
      - 200 OK
840 112
      Vary:
841 113
      - Accept-Encoding
842 114
      Content-Length:
843
      - '1338'
115
      - '1339'
844 116
      Content-Type:
845 117
      - application/json; charset=utf-8
846 118
    body:
......
861 133
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
862 134
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
863 135
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
864
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
865
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
866
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
867
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
868
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
869
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
870
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
871
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
872
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
873
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
874
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
875
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
876
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
877
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
878
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
879
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
880
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
881
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
882
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
883
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
884
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
885
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
886
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
887
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
888
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
889
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
890
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
891
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
892
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
893
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
894
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
895
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
896
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
897
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
898
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
899
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
900
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
901
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
902
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
903
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
904
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
905
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
906
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
907
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
908
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
909
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
910
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
911
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
912
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
913
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
914
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
915
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
916
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
917
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
918
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
919
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
920
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
921
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
922
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
136
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC4xMSJ9LHsiaWQiOiJm
137
        b3JlbWFuX2Jvb3RkaXNrIiwibmFtZSI6ImZvcmVtYW5fYm9vdGRpc2siLCJh
138
        dXRob3IiOiJEb21pbmljIENsZWFsIiwiZGVzY3JpcHRpb24iOiJQbHVnaW4g
139
        Zm9yIEZvcmVtYW4gdGhhdCBjcmVhdGVzIGlQWEUtYmFzZWQgYm9vdCBkaXNr
140
        cyB0byBwcm92aXNpb24gaG9zdHMgd2l0aG91dCB0aGUgbmVlZCBmb3IgUFhF
141
        IGluZnJhc3RydWN0dXJlLiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
142
        ZWZvcmVtYW4vZm9yZW1hbl9ib290ZGlzayIsInZlcnNpb24iOiI2LjEuMC4z
143
        In0seyJpZCI6ImZvcmVtYW5fZGlzY292ZXJ5IiwibmFtZSI6ImZvcmVtYW5f
144
        ZGlzY292ZXJ5IiwiYXV0aG9yIjoiQW1vcyBCZW5hcmksQnJ5YW4gS2Vhcm5l
145
        eSxDaGFpcm1hblR1YmVBbXAsRGFuaWVsIExvYmF0byBHYXJjw61hLERvbWlu
146
        aWMgQ2xlYWwsRXJpYyBELiBIZWxtcyxGcmFuayBXYWxsLEdyZWcgU3V0Y2xp
147
        ZmZlLEltcmkgWnZpayxKb3NlcGggTWl0Y2hlbGwgTWFnZW4sTHVrYXMgWmFw
148
        bGV0YWwsTHVrw6HFoSBaYXBsZXRhbCxNYXJlayBIdWxhbixNYXJ0aW4gQmHE
149
        jW92c2vDvSxNYXR0IEphcnZpcyxNaWNoYWVsIE1vbGwsTmljayxPaGFkIExl
150
        dnksT3JpIFJhYmluLFBldHIgQ2hhbHVwYSxQaGlyaW5jZSBQaGlsaXAsU2N1
151
        YmFmbG95ZCxTaGxvbWkgWmFkb2ssU3RlcGhlbiBCZW5qYW1pbixZYW5uIEPD
152
        qXphcmQiLCJkZXNjcmlwdGlvbiI6Ik1hYVMgRGlzY292ZXJ5IFBsdWdpbiBl
153
        bmdpbmUgZm9yIEZvcmVtYW4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90
154
        aGVmb3JlbWFuL2ZvcmVtYW5fZGlzY292ZXJ5IiwidmVyc2lvbiI6IjUuMC4w
155
        LjkifSx7ImlkIjoiZm9yZW1hbl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9k
156
        b2NrZXIiLCJhdXRob3IiOiJEYW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIs
157
        ImRlc2NyaXB0aW9uIjoiUHJvdmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNv
158
        bnRhaW5lcnMgYW5kIGltYWdlcyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0
159
        cDovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZl
160
        cnNpb24iOiIyLjAuMS4xMSJ9LHsiaWQiOiJmb3JlbWFuX2hvb2tzIiwibmFt
161
        ZSI6ImZvcmVtYW5faG9va3MiLCJhdXRob3IiOiJEb21pbmljIENsZWFsIiwi
162
        ZGVzY3JpcHRpb24iOiJQbHVnaW4gZW5naW5lIGZvciBGb3JlbWFuIHRoYXQg
163
        ZW5hYmxlcyBydW5uaW5nIGN1c3RvbSBob29rIHNjcmlwdHMgb24gRm9yZW1h
164
        biBldmVudHMiLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVmb3JlbWFu
165
        L2ZvcmVtYW5faG9va3MiLCJ2ZXJzaW9uIjoiMC4zLjExIn0seyJpZCI6ImZv
166
        cmVtYW5fb3BlbnNjYXAiLCJuYW1lIjoiZm9yZW1hbl9vcGVuc2NhcCIsImF1
167
        dGhvciI6IsWgaW1vbiBMdWthxaHDrWssU2hsb21pIFphZG9rLE1hcmVrIEh1
168
        bGFuLE9uZHJlaiBQcmF6YWsiLCJkZXNjcmlwdGlvbiI6IkZvcmVtYW4gcGx1
169
        Zy1pbiBmb3IgbWFuYWdpbmcgc2VjdXJpdHkgY29tcGxpYW5jZSByZXBvcnRz
170
        IiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL09wZW5TQ0FQL2ZvcmVtYW5f
171
        b3BlbnNjYXAiLCJ2ZXJzaW9uIjoiMC41LjMuMTgifSx7ImlkIjoiZm9yZW1h
172
        bl9yZW1vdGVfZXhlY3V0aW9uIiwibmFtZSI6ImZvcmVtYW5fcmVtb3RlX2V4
173
        ZWN1dGlvbiIsImF1dGhvciI6IkZvcmVtYW4gUmVtb3RlIEV4ZWN1dGlvbiB0
174
        ZWFtIiwiZGVzY3JpcHRpb24iOiJBIHBsdWdpbiBicmluZ2luZyByZW1vdGUg
175
        ZXhlY3V0aW9uIHRvIHRoZSBGb3JlbWFuLCBjb21wbGV0aW5nIHRoZSBjb25m
176
        aWcgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5IHdpdGggcmVtb3RlIG1hbmFn
177
        ZW1lbnQgZnVuY3Rpb25hbGl0eS4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5j
178
        b20vdGhlZm9yZW1hbi9mb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJ2ZXJz
179
        aW9uIjoiMC4zLjAuMTIifSx7ImlkIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxp
180
        dGUiLCJuYW1lIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxpdGUiLCJhdXRob3Ii
181
        OiJBbG9uIEdvbGRib2ltLCBTaGltb24gU3RlaW4iLCJkZXNjcmlwdGlvbiI6
182
        IlRoaXMgaXMgYSBwbHVnaW4gdGhhdCBlbmFibGVzIGJ1aWxkaW5nIGEgdGhl
183
        bWUgZm9yIEZvcmVtYW4uIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL2Fs
184
        b25nb2xkYm9pbS9mb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsInZlcnNpb24i
185
        OiIwLjEuMzYifSx7ImlkIjoia2F0ZWxsbyIsIm5hbWUiOiJrYXRlbGxvIiwi
186
        YXV0aG9yIjoiTi9BIiwiZGVzY3JpcHRpb24iOiJDb250ZW50IGFuZCBTdWJz
187
        Y3JpcHRpb24gTWFuYWdlbWVudCBwbHVnaW4gZm9yIEZvcmVtYW4iLCJ1cmwi
188
        OiJodHRwOi8vd3d3LmthdGVsbG8ub3JnIiwidmVyc2lvbiI6IjMuMC4wLjkw
189
        In0seyJpZCI6InJlZGhhdF9hY2Nlc3MiLCJuYW1lIjoicmVkaGF0X2FjY2Vz
190
        cyIsImF1dGhvciI6IkxpbmRhbmkgUGhpcmkiLCJkZXNjcmlwdGlvbiI6IlRo
191
        aXMgcGx1Z2luIGFkZHMgUmVkIEhhdCBBY2Nlc3Mga25vd2xlZGdlIGJhc2Ug
192
        c2VhcmNoLCBjYXNlIG1hbmFnZW1lbnQgYW5kIGRpYWdub3N0aWNzIHRvIEZv
193
        cmVtYW4iLCJ1cmwiOiJodHRwOi8vd3d3LmxwaGlyaS5yZWRoYXQuY29tIiwi
194
        dmVyc2lvbiI6IjEuMC4xMyJ9XQp9Cg==
923 195
    http_version: 
924
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
196
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
925 197
- request:
926 198
    method: get
927 199
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
......
947 219
      message: OK
948 220
    headers:
949 221
      Date:
950
      - Wed, 14 Dec 2016 13:43:30 GMT
222
      - Mon, 19 Dec 2016 16:43:40 GMT
951 223
      Server:
952 224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
953 225
      X-Frame-Options:
......
957 229
      X-Content-Type-Options:
958 230
      - nosniff
959 231
      Foreman-Version:
960
      - 1.11.0.54
232
      - 1.11.0.61
961 233
      Foreman-Api-Version:
962 234
      - '2'
963 235
      Apipie-Checksum:
964
      - e1df2e8d43e22495b02a53b48e3b5298
236
      - 9793fd9909c89b81479655ed560c4340
965 237
      Cache-Control:
966 238
      - max-age=0, private, must-revalidate
967 239
      X-Request-Id:
968
      - 44e5477e-0c07-4de5-b810-53295bca23f0
240
      - 6903197a-7506-4653-b8a5-42e4d24d3e78
969 241
      X-Runtime:
970
      - '0.034099'
242
      - '0.042738'
971 243
      X-Powered-By:
972 244
      - Phusion Passenger 4.0.18
973 245
      Set-Cookie:
974
      - _session_id=5e46208c0fcf981a86aefe1eb94012f2; path=/; secure; HttpOnly
246
      - _session_id=c461d23373339c691d0d7d44f9af1aad; path=/; secure; HttpOnly
975 247
      Etag:
976
      - '"ff50897889039cbed3f241cb58454ada-gzip"'
248
      - '"f1bc20326d93260c86807cfd4749cd80-gzip"'
977 249
      Status:
978 250
      - 200 OK
979 251
      Vary:
......
995 267
            "by": null,
996 268
            "order": null
997 269
          },
998
          "results": [{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-14 13:43:13 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
270
          "results": [{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-19 16:42:44 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
999 271
        }
1000 272
    http_version: 
1001
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
273
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
1002 274
- request:
1003 275
    method: get
1004 276
    uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?per_page=1
......
1024 296
      message: OK
1025 297
    headers:
1026 298
      Date:
1027
      - Wed, 14 Dec 2016 13:43:30 GMT
299
      - Mon, 19 Dec 2016 16:43:40 GMT
1028 300
      Server:
1029 301
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1030 302
      X-Frame-Options:
......
1034 306
      X-Content-Type-Options:
1035 307
      - nosniff
1036 308
      Foreman-Version:
1037
      - 1.11.0.54
309
      - 1.11.0.61
1038 310
      Foreman-Api-Version:
1039 311
      - '2'
1040 312
      Apipie-Checksum:
1041
      - e1df2e8d43e22495b02a53b48e3b5298
313
      - 9793fd9909c89b81479655ed560c4340
1042 314
      Cache-Control:
1043 315
      - max-age=0, private, must-revalidate
1044 316
      X-Request-Id:
1045
      - 232a6df7-3dc1-4f35-89e6-94f3aa5a6784
317
      - 500483f7-8067-4557-b938-7d7a026d55ff
1046 318
      X-Runtime:
1047
      - '0.097747'
319
      - '0.133179'
1048 320
      X-Powered-By:
1049 321
      - Phusion Passenger 4.0.18
1050 322
      Set-Cookie:
1051
      - _session_id=9bc98e958b7ed6c0e7232dafd0faac75; path=/; secure; HttpOnly
323
      - _session_id=65d79cdb9f637832dc62932383241675; path=/; secure; HttpOnly
1052 324
      Etag:
1053
      - '"f3d33e86975152a292e426607aebfce4-gzip"'
325
      - '"f1bf6dcc61c898dc2abeaacae2d953fb-gzip"'
1054 326
      Status:
1055 327
      - 200 OK
1056 328
      Vary:
......
1072 344
            "by": null,
1073 345
            "order": null
1074 346
          },
1075
          "results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-14 13:43:10 UTC","last_compile":"2016-12-14 13:43:05 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5}]
347
          "results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-19 16:39:54 UTC","last_compile":"2016-12-19 16:39:50 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5}]
1076 348
        }
1077 349
    http_version: 
1078
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
350
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
1079 351
- request:
1080 352
    method: get
1081 353
    uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?page=1&per_page=20
......
1101 373
      message: OK
1102 374
    headers:
1103 375
      Date:
1104
      - Wed, 14 Dec 2016 13:43:31 GMT
376
      - Mon, 19 Dec 2016 16:43:41 GMT
1105 377
      Server:
1106 378
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1107 379
      X-Frame-Options:
......
1111 383
      X-Content-Type-Options:
1112 384
      - nosniff
1113 385
      Foreman-Version:
1114
      - 1.11.0.54
386
      - 1.11.0.61
1115 387
      Foreman-Api-Version:
1116 388
      - '2'
1117 389
      Apipie-Checksum:
1118
      - e1df2e8d43e22495b02a53b48e3b5298
390
      - 9793fd9909c89b81479655ed560c4340
1119 391
      Cache-Control:
1120 392
      - max-age=0, private, must-revalidate
1121 393
      X-Request-Id:
1122
      - 52c857d8-92aa-4196-860d-1ce611ec51e9
394
      - 76c4a698-a14d-4007-86dd-971b7edf2e0a
1123 395
      X-Runtime:
1124
      - '0.141201'
396
      - '0.200137'
1125 397
      X-Powered-By:
1126 398
      - Phusion Passenger 4.0.18
1127 399
      Set-Cookie:
1128
      - _session_id=b3da21c41ea5f4a2ac092da87f144487; path=/; secure; HttpOnly
400
      - _session_id=fb35e3467d83f5bc81f52519999779d0; path=/; secure; HttpOnly
1129 401
      Etag:
1130
      - '"65d0edc234425f5dde3d76f8bc08463b-gzip"'
402
      - '"4d4e198a572ca690d4308092fac86672-gzip"'
1131 403
      Status:
1132 404
      - 200 OK
1133 405
      Vary:
......
1149 421
            "by": null,
1150 422
            "order": null
1151 423
          },
1152
          "results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-14 13:43:10 UTC","last_compile":"2016-12-14 13:43:05 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5},{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13 10:58:55 UTC","updated_at":"2016-12-14 13:43:05 UTC","last_compile":"2016-12-14 13:43:00 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13 10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 10:58:56 UTC"},"content_host_id":4}]
424
          "results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-19 16:39:54 UTC","last_compile":"2016-12-19 16:39:50 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5},{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13 10:58:55 UTC","updated_at":"2016-12-19 16:39:49 UTC","last_compile":"2016-12-19 16:39:45 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13 10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 10:58:56 UTC"},"content_host_id":4}]
1153 425
        }
1154 426
    http_version: 
1155
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
427
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
1156 428
- request:
1157 429
    method: get
1158 430
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/environments?per_page=999999
......
1178 450
      message: OK
1179 451
    headers:
1180 452
      Date:
1181
      - Wed, 14 Dec 2016 13:43:31 GMT
453
      - Mon, 19 Dec 2016 16:43:41 GMT
1182 454
      Server:
1183 455
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1184 456
      X-Frame-Options:
......
1188 460
      X-Content-Type-Options:
1189 461
      - nosniff
1190 462
      Foreman-Version:
1191
      - 1.11.0.54
463
      - 1.11.0.61
1192 464
      Foreman-Api-Version:
1193 465
      - '2'
1194 466
      Apipie-Checksum:
1195
      - e1df2e8d43e22495b02a53b48e3b5298
467
      - 9793fd9909c89b81479655ed560c4340
1196 468
      Cache-Control:
1197 469
      - max-age=0, private, must-revalidate
1198 470
      X-Request-Id:
1199
      - 1f8648f0-f2b0-4112-88b6-79afb01039f6
471
      - e48dbc2c-aeba-4ba0-91ef-20f47c1a99e8
1200 472
      X-Runtime:
1201
      - '0.082908'
473
      - '0.115835'
1202 474
      X-Powered-By:
1203 475
      - Phusion Passenger 4.0.18
1204 476
      Set-Cookie:
1205
      - _session_id=570684392bf5b4474ba1e88e29e8bfe5; path=/; secure; HttpOnly
477
      - _session_id=32004863e9789c0edbd9d5a94fe6c328; path=/; secure; HttpOnly
1206 478
      Etag:
1207 479
      - '"e887f85e97779657bd7cf336d1f5761c-gzip"'
1208 480
      Status:
......
1229 501

  
1230 502
'
1231 503
    http_version: 
1232
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
504
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
1233 505
- request:
1234 506
    method: get
1235 507
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/content_views?per_page=999999
......
1255 527
      message: OK
1256 528
    headers:
1257 529
      Date:
1258
      - Wed, 14 Dec 2016 13:43:31 GMT
530
      - Mon, 19 Dec 2016 16:43:41 GMT
1259 531
      Server:
1260 532
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1261 533
      X-Frame-Options:
......
1265 537
      X-Content-Type-Options:
1266 538
      - nosniff
1267 539
      Foreman-Version:
1268
      - 1.11.0.54
540
      - 1.11.0.61
1269 541
      Foreman-Api-Version:
1270 542
      - '2'
1271 543
      Apipie-Checksum:
1272
      - e1df2e8d43e22495b02a53b48e3b5298
544
      - 9793fd9909c89b81479655ed560c4340
1273 545
      Cache-Control:
1274 546
      - max-age=0, private, must-revalidate
1275 547
      X-Request-Id:
1276
      - 55d9dbd1-a551-45f2-a4c3-11f669ac10b6
548
      - 0b5b68fb-6933-4201-a105-dc847528ebce
1277 549
      X-Runtime:
1278
      - '0.047952'
550
      - '0.060650'
1279 551
      X-Powered-By:
1280 552
      - Phusion Passenger 4.0.18
1281 553
      Set-Cookie:
1282
      - _session_id=7f66f6063e230cc043a75ab083bfebb9; path=/; secure; HttpOnly
554
      - _session_id=634baee287c73361cb0d85d1d7cdf7bd; path=/; secure; HttpOnly
1283 555
      Etag:
1284 556
      - '"24d3d45f9a0cda80146879509dfd209e-gzip"'
1285 557
      Status:
......
1306 578

  
1307 579
'
1308 580
    http_version: 
1309
  recorded_at: Wed, 14 Dec 2016 13:43:26 GMT
581
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
1310 582
- request:
1311 583
    method: put
1312 584
    uri: https://admin:changeme@satlap.example.com/api/hosts/4
......
1335 607
      message: OK
1336 608
    headers:
1337 609
      Date:
1338
      - Wed, 14 Dec 2016 13:43:31 GMT
610
      - Mon, 19 Dec 2016 16:43:41 GMT
1339 611
      Server:
1340 612
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1341 613
      X-Frame-Options:
......
1345 617
      X-Content-Type-Options:
1346 618
      - nosniff
1347 619
      Foreman-Version:
1348
      - 1.11.0.54
620
      - 1.11.0.61
1349 621
      Foreman-Api-Version:
1350 622
      - '2'
1351 623
      Apipie-Checksum:
1352
      - e1df2e8d43e22495b02a53b48e3b5298
624
      - 9793fd9909c89b81479655ed560c4340
1353 625
      Cache-Control:
1354 626
      - max-age=0, private, must-revalidate
1355 627
      X-Request-Id:
1356
      - 0cc414a1-768a-447c-bcdb-a00d33870fea
628
      - 8676a6f4-93b0-4b01-a039-c24b18ec0e9a
1357 629
      X-Runtime:
1358
      - '0.639003'
630
      - '0.642272'
1359 631
      X-Powered-By:
1360 632
      - Phusion Passenger 4.0.18
1361 633
      Set-Cookie:
1362
      - _session_id=cb97587193072ba959b12c82d72864a9; path=/; secure; HttpOnly
634
      - _session_id=b9819625460dc76ffec8023a957ad34b; path=/; secure; HttpOnly
1363 635
      - request_method=PUT; path=/
1364 636
      Etag:
1365
      - '"915b402dca976758a8fe46a27f5726b1-gzip"'
637
      - '"22cb49e5f87ab20efe4d6d281842906f-gzip"'
1366 638
      Status:
1367 639
      - 200 OK
1368 640
      Vary:
......
1374 646
    body:
1375 647
      encoding: ASCII-8BIT
1376 648
      string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13
1377
        10:58:55 UTC","updated_at":"2016-12-14 13:43:05 UTC","last_compile":"2016-12-14
1378
        13:43:00 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
649
        10:58:55 UTC","updated_at":"2016-12-19 16:39:49 UTC","last_compile":"2016-12-19
650
        16:39:45 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
1379 651
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
1380 652
        not calculate errata status, ensure host is registered and katello-agent is
1381 653
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default
......
1383 655
        Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13
1384 656
        10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
1385 657
        10:58:56 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
1386
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}]},"content_host_id":4,"parameters":[],"interfaces":[{"id":4,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"_timestamp":"2016-12-14T13:43:00+00:00","system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
1387
        Corporation/testvm","cpu::cpu(s)":"1","virt":null,"network":null,"distribution":null,"system":null,"uname":null,"cpu":null,"memory":null},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
658
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}]},"content_host_id":4,"parameters":[],"interfaces":[{"id":4,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"virt":null,"system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
659
        Corporation/testvm","cpu::cpu(s)":"1","network":null,"distribution":null,"system":null,"uname":null,"cpu":null,"memory":null,"_timestamp":"2016-12-19T16:39:45+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
1388 660
    http_version: 
1389
  recorded_at: Wed, 14 Dec 2016 13:43:27 GMT
661
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
1390 662
- request:
1391 663
    method: get
1392 664
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/05f67758-243c-440b-9349-776aafb933e1
......
1406 678
      message: OK
1407 679
    headers:
1408 680
      Date:
1409
      - Wed, 14 Dec 2016 13:43:32 GMT
681
      - Mon, 19 Dec 2016 16:43:42 GMT
1410 682
      Server:
1411 683
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1412 684
      X-Frame-Options:
......
1416 688
      X-Content-Type-Options:
1417 689
      - nosniff
1418 690
      Foreman-Version:
1419
      - 1.11.0.54
691
      - 1.11.0.61
1420 692
      Foreman-Api-Version:
1421 693
      - '2'
1422 694
      X-Candlepin-Version:
1423
      - katello/3.0.0.82
695
      - katello/3.0.0.90
1424 696
      Cache-Control:
1425 697
      - max-age=0, private, must-revalidate
1426 698
      X-Request-Id:
1427
      - 34e09209-02c7-4b5e-be5f-0474d2557372
699
      - a6830bce-7a9d-47d7-8409-be1e0f9acfd8
1428 700
      X-Runtime:
1429
      - '0.090473'
701
      - '0.112821'
1430 702
      X-Powered-By:
1431 703
      - Phusion Passenger 4.0.18
1432 704
      Set-Cookie:
1433
      - _session_id=a3dec7f7a2809996c9b93522f4d8aa69; path=/; secure; HttpOnly
705
      - _session_id=f896d160b7fe59894aef0c8ef63e702f; path=/; secure; HttpOnly
1434 706
      Etag:
1435
      - '"9c7b076977dec01d8f2aa5d6f78b1800-gzip"'
707
      - '"8700ca189f651594fa0225fc17555e4e-gzip"'
1436 708
      Status:
1437 709
      - 200 OK
1438 710
      Vary:
1439 711
      - Accept-Encoding
1440 712
      Content-Length:
1441
      - '3254'
713
      - '3253'
1442 714
      Content-Type:
1443 715
      - application/json; charset=utf-8
1444 716
    body:
......
1449 721
        CERTIFICATE-----\n","id":"4028f99158f378890158f7d5d92903f4","serial":{"id":723718673676652430,"revoked":false,"collected":false,"expiration":"2032-12-13T10:58:56.332+0000","serial":723718673676652430,"created":"2016-12-13T10:58:56.332+0000","updated":"2016-12-13T10:58:56.332+0000"},"created":"2016-12-13T10:58:56.937+0000","updated":"2016-12-13T10:58:56.937+0000"},"type":{"id":"1000","label":"system","manifest":false},"owner":{"id":"4028f99158f378890158f7d5665f03ed","key":"testcorp","displayName":"Test
1450 722
        Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"4028f99158f378890158f7d5665f03ed","key":"testcorp","displayName":"Test
1451 723
        Corporation","href":"/owners/testcorp"},"name":"Library","description":null,"id":"2","environmentContent":[],"created":"2016-12-13T10:58:27.675+0000","updated":"2016-12-13T10:58:27.675+0000"},"entitlementCount":1,"facts":{"virt.uuid":"Test
1452
        Corporation/testvm","network.hostname":"testvm","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-14T13:43:00+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"4","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
1453
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/05f67758-243c-440b-9349-776aafb933e1","created":"2016-12-13T10:58:56.317+0000","updated":"2016-12-14T13:43:31.844+0000"}'
724
        Corporation/testvm","network.hostname":"testvm","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-19T16:39:44+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"4","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
725
        Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/05f67758-243c-440b-9349-776aafb933e1","created":"2016-12-13T10:58:56.317+0000","updated":"2016-12-19T16:39:48.730+0000"}'
1454 726
    http_version: 
1455
  recorded_at: Wed, 14 Dec 2016 13:43:27 GMT
727
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
1456 728
- request:
1457 729
    method: put
1458 730
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/05f67758-243c-440b-9349-776aafb933e1
1459 731
    body:
1460 732
      encoding: UTF-8
1461
      string: '{"facts":{"virt.uuid":"Test Corporation/testvm","network.hostname":"testvm","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-14T13:43:00+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"4","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":true}}'
733
      string: '{"facts":{"virt.uuid":"Test Corporation/testvm","network.hostname":"testvm","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-19T16:39:44+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"4","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":true}}'
1462 734
    headers:
1463 735
      Content-Type:
1464 736
      - application/json
......
1470 742
      - Ruby
1471 743
  response:
1472 744
    status:
1473
      code: 200
1474
      message: OK
745
      code: 500
746
      message: Internal Server Error
1475 747
    headers:
1476 748
      Date:
1477
      - Wed, 14 Dec 2016 13:43:32 GMT
749
      - Mon, 19 Dec 2016 16:43:42 GMT
1478 750
      Server:
1479 751
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1480 752
      X-Frame-Options:
......
1484 756
      X-Content-Type-Options:
1485 757
      - nosniff
1486 758
      Foreman-Version:
1487
      - 1.11.0.54
759
      - 1.11.0.61
1488 760
      Foreman-Api-Version:
1489 761
      - '2'
1490 762
      X-Candlepin-Version:
1491
      - katello/3.0.0.82
763
      - katello/3.0.0.90
1492 764
      Cache-Control:
1493
      - max-age=0, private, must-revalidate
765
      - no-cache
1494 766
      X-Request-Id:
1495
      - 57c30cb9-7f30-4cd7-a16d-51a6f510488f
767
      - 3dce710c-119d-476a-b1ff-bdbfbdafda49
1496 768
      X-Runtime:
1497
      - '0.980887'
769
      - '0.174972'
1498 770
      X-Powered-By:
1499 771
      - Phusion Passenger 4.0.18
1500 772
      Set-Cookie:
1501
      - _session_id=29de3de3a54bd45402857ae2cf731b8b; path=/; secure; HttpOnly
773
      - _session_id=b23a03315ca5f2a49c1bbc09076229f3; path=/; secure; HttpOnly
1502 774
      - request_method=PUT; path=/
1503
      Etag:
1504
      - '"a507d5fae91dfb858fa3f652df472381"'
1505 775
      Status:
1506
      - 200 OK
1507
      Content-Length:
1508
      - '41'
776
      - 500 Internal Server Error
777
      Connection:
778
      - close
779
      Transfer-Encoding:
780
      - chunked
1509 781
      Content-Type:
1510 782
      - application/json; charset=utf-8
1511 783
    body:
1512 784
      encoding: UTF-8
1513
      string: '{"content":"Facts successfully updated."}'
785
      string: '{"displayMessage":"Required lock is already taken by other running
786
        tasks.\nPlease inspect their state, fix their errors and resume them.\n\nRequired
787
        lock: update\nConflicts with tasks:\n- https://sat-rhel7.example.com/foreman_tasks/tasks/54bd079f-5409-426d-8096-3adf30a2e7f7","errors":["Required
788
        lock is already taken by other running tasks.\nPlease inspect their state,
789
        fix their errors and resume them.\n\nRequired lock: update\nConflicts with
790
        tasks:\n- https://sat-rhel7.example.com/foreman_tasks/tasks/54bd079f-5409-426d-8096-3adf30a2e7f7"]}'
1514 791
    http_version: 
1515
  recorded_at: Wed, 14 Dec 2016 13:43:28 GMT
792
  recorded_at: Mon, 19 Dec 2016 16:43:26 GMT
1516 793
- request:
1517 794
    method: get
1518
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions
795
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions?full_results=true
1519 796
    body:
1520 797
      encoding: US-ASCII
1521 798
      string: ''
......
1538 815
      message: OK
1539 816
    headers:
1540 817
      Date:
1541
      - Wed, 14 Dec 2016 13:43:33 GMT
818
      - Mon, 19 Dec 2016 16:43:42 GMT
1542 819
      Server:
1543 820
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1544 821
      X-Frame-Options:
......
1548 825
      X-Content-Type-Options:
1549 826
      - nosniff
1550 827
      Foreman-Version:
1551
      - 1.11.0.54
828
      - 1.11.0.61
1552 829
      Foreman-Api-Version:
1553 830
      - '2'
1554 831
      Apipie-Checksum:
1555
      - e1df2e8d43e22495b02a53b48e3b5298
832
      - 9793fd9909c89b81479655ed560c4340
1556 833
      Cache-Control:
1557 834
      - max-age=0, private, must-revalidate
1558 835
      X-Request-Id:
1559
      - b1816447-2760-4e78-adc9-fc81222edcd6
836
      - 82bddc32-a2dc-425a-840e-7f62626a2b6f
1560 837
      X-Runtime:
1561
      - '0.234077'
838
      - '0.324065'
1562 839
      X-Powered-By:
1563 840
      - Phusion Passenger 4.0.18
1564 841
      Set-Cookie:
1565
      - _session_id=042947a9fce9121a8ff3a73021934d61; path=/; secure; HttpOnly
842
      - _session_id=152de6fc76fd2e7ce196e832910294c1; path=/; secure; HttpOnly
1566 843
      Etag:
1567 844
      - '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
1568 845
      Status:
......
1581 858

  
1582 859
'
1583 860
    http_version: 
1584
  recorded_at: Wed, 14 Dec 2016 13:43:28 GMT
861
  recorded_at: Mon, 19 Dec 2016 16:43:26 GMT
1585 862
- request:
1586 863
    method: put
1587 864
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/remove_subscriptions
......
1609 886
      message: OK
1610 887
    headers:
1611 888
      Date:
1612
      - Wed, 14 Dec 2016 13:43:33 GMT
889
      - Mon, 19 Dec 2016 16:43:42 GMT
1613 890
      Server:
1614 891
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1615 892
      X-Frame-Options:
......
1619 896
      X-Content-Type-Options:
1620 897
      - nosniff
1621 898
      Foreman-Version:
1622
      - 1.11.0.54
899
      - 1.11.0.61
1623 900
      Foreman-Api-Version:
1624 901
      - '2'
1625 902
      Apipie-Checksum:
1626
      - e1df2e8d43e22495b02a53b48e3b5298
903
      - 9793fd9909c89b81479655ed560c4340
1627 904
      Cache-Control:
1628 905
      - max-age=0, private, must-revalidate
1629 906
      X-Request-Id:
1630
      - b022e209-c683-4c1a-b6f2-d771f6d6a2bd
907
      - d6b4f2ab-1896-4a25-bced-00b87619aae2
1631 908
      X-Runtime:
1632
      - '0.984758'
909
      - '1.093655'
1633 910
      X-Powered-By:
1634 911
      - Phusion Passenger 4.0.18
1635 912
      Set-Cookie:
1636
      - _session_id=2aa97a2e860f4c06b6744dd178a399ab; path=/; secure; HttpOnly
913
      - _session_id=6bbefb08ae617f9f7a4d36d3b7cf037c; path=/; secure; HttpOnly
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff