Project

General

Profile

Download (76.9 KB) Statistics
| Branch: | Tag: | Revision:

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_content_hosts / setup.yml @ 4a6b2238

1
---
2
http_interactions:
3
- request:
4
    method: get
5
    uri: https://admin:changeme@satlap.example.com/api/status
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
      Accept:
13
      - "*/*"
14
      User-Agent:
15
      - Ruby
16
      Host:
17
      - satlap.example.com
18
  response:
19
    status:
20
      code: 200
21
      message: OK
22
    headers:
23
      Date:
24
      - Mon, 19 Dec 2016 16:43:40 GMT
25
      Server:
26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
27
      X-Frame-Options:
28
      - SAMEORIGIN
29
      X-Xss-Protection:
30
      - 1; mode=block
31
      X-Content-Type-Options:
32
      - nosniff
33
      Foreman-Version:
34
      - 1.11.0.61
35
      Foreman-Api-Version:
36
      - '2'
37
      Apipie-Checksum:
38
      - 9793fd9909c89b81479655ed560c4340
39
      Cache-Control:
40
      - max-age=0, private, must-revalidate
41
      X-Request-Id:
42
      - c6ee99d7-d41b-4f0c-ad97-5edca50a8d89
43
      X-Runtime:
44
      - '0.046290'
45
      X-Powered-By:
46
      - Phusion Passenger 4.0.18
47
      Set-Cookie:
48
      - _session_id=fe00f774fac39e9e9f0f532e1a44ed03; path=/; secure; HttpOnly
49
      Etag:
50
      - '"6ec0375dc2b106a955e67a8139b7d9c5"'
51
      Status:
52
      - 200 OK
53
      Content-Length:
54
      - '66'
55
      Content-Type:
56
      - application/json; charset=utf-8
57
    body:
58
      encoding: UTF-8
59
      string: '{"result":"ok","status":200,"version":"1.11.0.61","api_version":2}'
60
    http_version: 
61
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
62
- request:
63
    method: get
64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
65
    body:
66
      encoding: US-ASCII
67
      string: ''
68
    headers:
69
      Accept-Encoding:
70
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
      Accept:
72
      - "*/*"
73
      User-Agent:
74
      - Ruby
75
      Host:
76
      - satlap.example.com
77
  response:
78
    status:
79
      code: 200
80
      message: OK
81
    headers:
82
      Date:
83
      - Mon, 19 Dec 2016 16:43:40 GMT
84
      Server:
85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
86
      X-Frame-Options:
87
      - SAMEORIGIN
88
      X-Xss-Protection:
89
      - 1; mode=block
90
      X-Content-Type-Options:
91
      - nosniff
92
      Foreman-Version:
93
      - 1.11.0.61
94
      Foreman-Api-Version:
95
      - '2'
96
      Apipie-Checksum:
97
      - 9793fd9909c89b81479655ed560c4340
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - e80b6010-d010-4b10-bbcb-574a3b5fb3cd
102
      X-Runtime:
103
      - '0.038995'
104
      X-Powered-By:
105
      - Phusion Passenger 4.0.18
106
      Set-Cookie:
107
      - _session_id=ed507e8887992e74ca07dcfeba09a1c6; path=/; secure; HttpOnly
108
      Etag:
109
      - '"973c5d3fa1e5326b7762aec3d6a31dde-gzip"'
110
      Status:
111
      - 200 OK
112
      Vary:
113
      - Accept-Encoding
114
      Content-Length:
115
      - '1339'
116
      Content-Type:
117
      - application/json; charset=utf-8
118
    body:
119
      encoding: ASCII-8BIT
120
      string: !binary |-
121
        ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
122
        MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
123
        dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
124
        ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
125
        b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
126
        dGlvbiI6IlRoZSBnb2FsIG9mIHRoaXMgcGx1Z2luIGlzIHRvIHVuaWZ5IHRo
127
        ZSB3YXkgb2Ygc2hvd2luZyB0YXNrIHN0YXR1c2VzIGFjcm9zcyB0aGUgRm9y
128
        ZW1hbiBpbnN0YW5jZS5cbkl0IGRlZmluZXMgVGFzayBtb2RlbCBmb3Iga2Vl
129
        cGluZyB0aGUgaW5mb3JtYXRpb24gYWJvdXQgdGhlIHRhc2tzIGFuZCBMb2Nr
130
        IGZvciBhc3NpZ25pbmcgdGhlIHRhc2tzXG50byByZXNvdXJjZXMuIFRoZSBs
131
        b2NraW5nIGFsbG93cyBkZWFsaW5nIHdpdGggcHJldmVudGluZyBtdWx0aXBs
132
        ZSBjb2xsaWRpbmcgdGFza3MgdG8gYmUgcnVuIG9uIHRoZVxuc2FtZSByZXNv
133
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
134
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
135
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
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==
195
    http_version: 
196
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
197
- request:
198
    method: get
199
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
200
    body:
201
      encoding: US-ASCII
202
      string: ''
203
    headers:
204
      Accept:
205
      - application/json;version=2
206
      Accept-Encoding:
207
      - gzip, deflate
208
      User-Agent:
209
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
210
      Content-Type:
211
      - application/json
212
      Accept-Language:
213
      - en
214
      Host:
215
      - satlap.example.com
216
  response:
217
    status:
218
      code: 200
219
      message: OK
220
    headers:
221
      Date:
222
      - Mon, 19 Dec 2016 16:43:40 GMT
223
      Server:
224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
225
      X-Frame-Options:
226
      - SAMEORIGIN
227
      X-Xss-Protection:
228
      - 1; mode=block
229
      X-Content-Type-Options:
230
      - nosniff
231
      Foreman-Version:
232
      - 1.11.0.61
233
      Foreman-Api-Version:
234
      - '2'
235
      Apipie-Checksum:
236
      - 9793fd9909c89b81479655ed560c4340
237
      Cache-Control:
238
      - max-age=0, private, must-revalidate
239
      X-Request-Id:
240
      - 6903197a-7506-4653-b8a5-42e4d24d3e78
241
      X-Runtime:
242
      - '0.042738'
243
      X-Powered-By:
244
      - Phusion Passenger 4.0.18
245
      Set-Cookie:
246
      - _session_id=c461d23373339c691d0d7d44f9af1aad; path=/; secure; HttpOnly
247
      Etag:
248
      - '"f1bc20326d93260c86807cfd4749cd80-gzip"'
249
      Status:
250
      - 200 OK
251
      Vary:
252
      - Accept-Encoding
253
      Content-Length:
254
      - '388'
255
      Content-Type:
256
      - application/json; charset=utf-8
257
    body:
258
      encoding: ASCII-8BIT
259
      string: |
260
        {
261
          "total": 2,
262
          "subtotal": 1,
263
          "page": 1,
264
          "per_page": 999999,
265
          "search": "name=\"Test Corporation\"",
266
          "sort": {
267
            "by": null,
268
            "order": null
269
          },
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"}]
271
        }
272
    http_version: 
273
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
274
- request:
275
    method: get
276
    uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?per_page=1
277
    body:
278
      encoding: US-ASCII
279
      string: ''
280
    headers:
281
      Accept:
282
      - application/json;version=2
283
      Accept-Encoding:
284
      - gzip, deflate
285
      User-Agent:
286
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
287
      Content-Type:
288
      - application/json
289
      Accept-Language:
290
      - en
291
      Host:
292
      - satlap.example.com
293
  response:
294
    status:
295
      code: 200
296
      message: OK
297
    headers:
298
      Date:
299
      - Mon, 19 Dec 2016 16:43:40 GMT
300
      Server:
301
      - Apache/2.4.6 (Red Hat Enterprise Linux)
302
      X-Frame-Options:
303
      - SAMEORIGIN
304
      X-Xss-Protection:
305
      - 1; mode=block
306
      X-Content-Type-Options:
307
      - nosniff
308
      Foreman-Version:
309
      - 1.11.0.61
310
      Foreman-Api-Version:
311
      - '2'
312
      Apipie-Checksum:
313
      - 9793fd9909c89b81479655ed560c4340
314
      Cache-Control:
315
      - max-age=0, private, must-revalidate
316
      X-Request-Id:
317
      - 500483f7-8067-4557-b938-7d7a026d55ff
318
      X-Runtime:
319
      - '0.133179'
320
      X-Powered-By:
321
      - Phusion Passenger 4.0.18
322
      Set-Cookie:
323
      - _session_id=65d79cdb9f637832dc62932383241675; path=/; secure; HttpOnly
324
      Etag:
325
      - '"f1bf6dcc61c898dc2abeaacae2d953fb-gzip"'
326
      Status:
327
      - 200 OK
328
      Vary:
329
      - Accept-Encoding
330
      Content-Length:
331
      - '2293'
332
      Content-Type:
333
      - application/json; charset=utf-8
334
    body:
335
      encoding: ASCII-8BIT
336
      string: |
337
        {
338
          "total": 2,
339
          "subtotal": 2,
340
          "page": 1,
341
          "per_page": 1,
342
          "search": null,
343
          "sort": {
344
            "by": null,
345
            "order": null
346
          },
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}]
348
        }
349
    http_version: 
350
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
351
- request:
352
    method: get
353
    uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?page=1&per_page=20
354
    body:
355
      encoding: US-ASCII
356
      string: ''
357
    headers:
358
      Accept:
359
      - application/json;version=2
360
      Accept-Encoding:
361
      - gzip, deflate
362
      User-Agent:
363
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
364
      Content-Type:
365
      - application/json
366
      Accept-Language:
367
      - en
368
      Host:
369
      - satlap.example.com
370
  response:
371
    status:
372
      code: 200
373
      message: OK
374
    headers:
375
      Date:
376
      - Mon, 19 Dec 2016 16:43:41 GMT
377
      Server:
378
      - Apache/2.4.6 (Red Hat Enterprise Linux)
379
      X-Frame-Options:
380
      - SAMEORIGIN
381
      X-Xss-Protection:
382
      - 1; mode=block
383
      X-Content-Type-Options:
384
      - nosniff
385
      Foreman-Version:
386
      - 1.11.0.61
387
      Foreman-Api-Version:
388
      - '2'
389
      Apipie-Checksum:
390
      - 9793fd9909c89b81479655ed560c4340
391
      Cache-Control:
392
      - max-age=0, private, must-revalidate
393
      X-Request-Id:
394
      - 76c4a698-a14d-4007-86dd-971b7edf2e0a
395
      X-Runtime:
396
      - '0.200137'
397
      X-Powered-By:
398
      - Phusion Passenger 4.0.18
399
      Set-Cookie:
400
      - _session_id=fb35e3467d83f5bc81f52519999779d0; path=/; secure; HttpOnly
401
      Etag:
402
      - '"4d4e198a572ca690d4308092fac86672-gzip"'
403
      Status:
404
      - 200 OK
405
      Vary:
406
      - Accept-Encoding
407
      Content-Length:
408
      - '4426'
409
      Content-Type:
410
      - application/json; charset=utf-8
411
    body:
412
      encoding: ASCII-8BIT
413
      string: |
414
        {
415
          "total": 2,
416
          "subtotal": 2,
417
          "page": 1,
418
          "per_page": 20,
419
          "search": null,
420
          "sort": {
421
            "by": null,
422
            "order": null
423
          },
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}]
425
        }
426
    http_version: 
427
  recorded_at: Mon, 19 Dec 2016 16:43:24 GMT
428
- request:
429
    method: get
430
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/environments?per_page=999999
431
    body:
432
      encoding: US-ASCII
433
      string: ''
434
    headers:
435
      Accept:
436
      - application/json;version=2
437
      Accept-Encoding:
438
      - gzip, deflate
439
      User-Agent:
440
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
441
      Content-Type:
442
      - application/json
443
      Accept-Language:
444
      - en
445
      Host:
446
      - satlap.example.com
447
  response:
448
    status:
449
      code: 200
450
      message: OK
451
    headers:
452
      Date:
453
      - Mon, 19 Dec 2016 16:43:41 GMT
454
      Server:
455
      - Apache/2.4.6 (Red Hat Enterprise Linux)
456
      X-Frame-Options:
457
      - SAMEORIGIN
458
      X-Xss-Protection:
459
      - 1; mode=block
460
      X-Content-Type-Options:
461
      - nosniff
462
      Foreman-Version:
463
      - 1.11.0.61
464
      Foreman-Api-Version:
465
      - '2'
466
      Apipie-Checksum:
467
      - 9793fd9909c89b81479655ed560c4340
468
      Cache-Control:
469
      - max-age=0, private, must-revalidate
470
      X-Request-Id:
471
      - e48dbc2c-aeba-4ba0-91ef-20f47c1a99e8
472
      X-Runtime:
473
      - '0.115835'
474
      X-Powered-By:
475
      - Phusion Passenger 4.0.18
476
      Set-Cookie:
477
      - _session_id=32004863e9789c0edbd9d5a94fe6c328; path=/; secure; HttpOnly
478
      Etag:
479
      - '"e887f85e97779657bd7cf336d1f5761c-gzip"'
480
      Status:
481
      - 200 OK
482
      Vary:
483
      - Accept-Encoding
484
      Content-Length:
485
      - '3019'
486
      Content-Type:
487
      - application/json; charset=utf-8
488
    body:
489
      encoding: ASCII-8BIT
490
      string: '{"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test,
491
        manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
492
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":5,"name":"Production","label":"Production","description":"Production,
493
        manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
494
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test
495
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
496
        UTC","updated_at":"2016-12-13 10:58:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":2,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":3,"name":"Development","label":"Development","description":"Development,
497
        automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
498
        10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive,
499
        no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
500
        10:59:05 UTC","updated_at":"2016-12-13 10:59:05 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
501

    
502
'
503
    http_version: 
504
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
505
- request:
506
    method: get
507
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/content_views?per_page=999999
508
    body:
509
      encoding: US-ASCII
510
      string: ''
511
    headers:
512
      Accept:
513
      - application/json;version=2
514
      Accept-Encoding:
515
      - gzip, deflate
516
      User-Agent:
517
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
518
      Content-Type:
519
      - application/json
520
      Accept-Language:
521
      - en
522
      Host:
523
      - satlap.example.com
524
  response:
525
    status:
526
      code: 200
527
      message: OK
528
    headers:
529
      Date:
530
      - Mon, 19 Dec 2016 16:43:41 GMT
531
      Server:
532
      - Apache/2.4.6 (Red Hat Enterprise Linux)
533
      X-Frame-Options:
534
      - SAMEORIGIN
535
      X-Xss-Protection:
536
      - 1; mode=block
537
      X-Content-Type-Options:
538
      - nosniff
539
      Foreman-Version:
540
      - 1.11.0.61
541
      Foreman-Api-Version:
542
      - '2'
543
      Apipie-Checksum:
544
      - 9793fd9909c89b81479655ed560c4340
545
      Cache-Control:
546
      - max-age=0, private, must-revalidate
547
      X-Request-Id:
548
      - 0b5b68fb-6933-4201-a105-dc847528ebce
549
      X-Runtime:
550
      - '0.060650'
551
      X-Powered-By:
552
      - Phusion Passenger 4.0.18
553
      Set-Cookie:
554
      - _session_id=634baee287c73361cb0d85d1d7cdf7bd; path=/; secure; HttpOnly
555
      Etag:
556
      - '"24d3d45f9a0cda80146879509dfd209e-gzip"'
557
      Status:
558
      - 200 OK
559
      Vary:
560
      - Accept-Encoding
561
      Content-Length:
562
      - '1804'
563
      Content-Type:
564
      - application/json; charset=utf-8
565
    body:
566
      encoding: ASCII-8BIT
567
      string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
568
        Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
569
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:58
570
        UTC","updated_at":"2016-12-13 10:58:59 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-13
571
        10:58:59 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-13
572
        10:58:59 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":2,"name":"Default
573
        Organization View","label":"e1fa1d00-5399-4ce9-9219-1b9433e76baa","description":null,"organization":{"name":"Test
574
        Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
575
        UTC","updated_at":"2016-12-13 10:58:26 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":2,"version":"1.0","published":"2016-12-13
576
        10:58:26 UTC","environment_ids":[2]}],"components":[],"activation_keys":[{"id":2,"name":"testakey"},{"id":3,"name":"testakeyitemized"}],"last_published":"2016-12-13
577
        10:58:26 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
578

    
579
'
580
    http_version: 
581
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
582
- request:
583
    method: put
584
    uri: https://admin:changeme@satlap.example.com/api/hosts/4
585
    body:
586
      encoding: UTF-8
587
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
588
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
589
    headers:
590
      Accept:
591
      - application/json;version=2
592
      Accept-Encoding:
593
      - gzip, deflate
594
      User-Agent:
595
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
596
      Content-Type:
597
      - application/json
598
      Accept-Language:
599
      - en
600
      Content-Length:
601
      - '271'
602
      Host:
603
      - satlap.example.com
604
  response:
605
    status:
606
      code: 200
607
      message: OK
608
    headers:
609
      Date:
610
      - Mon, 19 Dec 2016 16:43:41 GMT
611
      Server:
612
      - Apache/2.4.6 (Red Hat Enterprise Linux)
613
      X-Frame-Options:
614
      - SAMEORIGIN
615
      X-Xss-Protection:
616
      - 1; mode=block
617
      X-Content-Type-Options:
618
      - nosniff
619
      Foreman-Version:
620
      - 1.11.0.61
621
      Foreman-Api-Version:
622
      - '2'
623
      Apipie-Checksum:
624
      - 9793fd9909c89b81479655ed560c4340
625
      Cache-Control:
626
      - max-age=0, private, must-revalidate
627
      X-Request-Id:
628
      - 8676a6f4-93b0-4b01-a039-c24b18ec0e9a
629
      X-Runtime:
630
      - '0.642272'
631
      X-Powered-By:
632
      - Phusion Passenger 4.0.18
633
      Set-Cookie:
634
      - _session_id=b9819625460dc76ffec8023a957ad34b; path=/; secure; HttpOnly
635
      - request_method=PUT; path=/
636
      Etag:
637
      - '"22cb49e5f87ab20efe4d6d281842906f-gzip"'
638
      Status:
639
      - 200 OK
640
      Vary:
641
      - Accept-Encoding
642
      Content-Length:
643
      - '3820'
644
      Content-Type:
645
      - application/json; charset=utf-8
646
    body:
647
      encoding: ASCII-8BIT
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
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
651
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
652
        not calculate errata status, ensure host is registered and katello-agent is
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
654
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
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
656
        10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
657
        10:58:56 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
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}}'
660
    http_version: 
661
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
662
- request:
663
    method: get
664
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/05f67758-243c-440b-9349-776aafb933e1
665
    body:
666
      encoding: US-ASCII
667
      string: ''
668
    headers:
669
      Accept-Encoding:
670
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
671
      Accept:
672
      - "*/*"
673
      User-Agent:
674
      - Ruby
675
  response:
676
    status:
677
      code: 200
678
      message: OK
679
    headers:
680
      Date:
681
      - Mon, 19 Dec 2016 16:43:42 GMT
682
      Server:
683
      - Apache/2.4.6 (Red Hat Enterprise Linux)
684
      X-Frame-Options:
685
      - SAMEORIGIN
686
      X-Xss-Protection:
687
      - 1; mode=block
688
      X-Content-Type-Options:
689
      - nosniff
690
      Foreman-Version:
691
      - 1.11.0.61
692
      Foreman-Api-Version:
693
      - '2'
694
      X-Candlepin-Version:
695
      - katello/3.0.0.90
696
      Cache-Control:
697
      - max-age=0, private, must-revalidate
698
      X-Request-Id:
699
      - a6830bce-7a9d-47d7-8409-be1e0f9acfd8
700
      X-Runtime:
701
      - '0.112821'
702
      X-Powered-By:
703
      - Phusion Passenger 4.0.18
704
      Set-Cookie:
705
      - _session_id=f896d160b7fe59894aef0c8ef63e702f; path=/; secure; HttpOnly
706
      Etag:
707
      - '"8700ca189f651594fa0225fc17555e4e-gzip"'
708
      Status:
709
      - 200 OK
710
      Vary:
711
      - Accept-Encoding
712
      Content-Length:
713
      - '3253'
714
      Content-Type:
715
      - application/json; charset=utf-8
716
    body:
717
      encoding: ASCII-8BIT
718
      string: '{"id":"4028f99158f378890158f7d5d6bd03f1","uuid":"05f67758-243c-440b-9349-776aafb933e1","name":"testvm","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
719
        RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAgqcqgrlGRsDvLQ9wL5URZjQDMYmDNBssTIiSWcy9FmuACZdN\nNEWdao7cE6aV9BY07G5qKKIqTDb8br6mCngwY+JxUK/qGWoefStgtlzUAfnQRsuj\nIL/1qo/+TjE0n0KD6SOUO4MF0ytHq3xpe1wNryGbrT0+UJKSITwysHa3G6V12Lbu\n6Nd/ZSlMWPKnyGyj6ubNS97bjsWQ9FA2YLWNnr04HfjBJvCJTX7N+hg8bwqG/vfs\nW0+S5ZCMqGCEKPmwXtkSx/z9uHATi8D5oVIZtHExwYyiA1HHpIXW42H+DHM0k2HU\nlTdEWmYeaH/aRhgVQYa1XvvvRfmtH+/LO9ovfQIDAQABAoIBAE6bUOJRokyTa9NK\nhI68OzmodXtqZrwE1UQ+rv7ERcelaeVbWKHoeGtSBGr2QSYX7kOJsuk7mAM+2eWv\nYqrN4R9XcCHBlTExPaLFZGyT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nA1UEBxMHUmFsZWlnaDEQMA4GA1UEChMHS2F0ZWxsbzEUMBIGA1UECxMLU29tZU9y\nZ1VuaXQxHjAcBgNVBAMTFXNhdC1yaGVsNy5leGFtcGxlLmNvbYIJAIfmEqSmk/wi\nMB0GA1UdDgQWBBRknqXtnXZdbaVsItbr1ztHYv0vsTATBgNVHSUEDDAKBggrBgEF\nBQcDAjAUBgNVHREEDTALhglDTj10ZXN0dm0wDQYJKoZIhvcNAQEFBQADggEBAFsE\nT6E/yfJB3EYo+sa4gPUyNHeYxQvlo4HI51XbtWR8a+rexPH08M2Y5Y5UjgQHij1b\nEUBhTSyC2x33FDySauB497cZyT6cqJMDzoufwZruEfxmv4qXzbwpDHzotQR45MrD\nzAU6zzPpx+l7rwAoRaX+qjqU/Uih9Mgcy4MrHxIEDbPNihLW55GdYZbW9qurntrC\nordhPDBp4EdFDAXzNiq4KVsmNDOKwNvphVelM1h+UniAJFIKJS9/zJVZmO4hq3pJ\ngiUapQJ3HZjBxSBSzQQbPy/6OqJcbIgCZDofaUjl6N/i4XbbP8gjgLhWmaaO9a2E\nurv4LQ5RwoZF637fpgU=\n-----END
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
722
        Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"4028f99158f378890158f7d5665f03ed","key":"testcorp","displayName":"Test
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
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"}'
726
    http_version: 
727
  recorded_at: Mon, 19 Dec 2016 16:43:25 GMT
728
- request:
729
    method: put
730
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/05f67758-243c-440b-9349-776aafb933e1
731
    body:
732
      encoding: UTF-8
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}}'
734
    headers:
735
      Content-Type:
736
      - application/json
737
      Accept-Encoding:
738
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
739
      Accept:
740
      - "*/*"
741
      User-Agent:
742
      - Ruby
743
  response:
744
    status:
745
      code: 500
746
      message: Internal Server Error
747
    headers:
748
      Date:
749
      - Mon, 19 Dec 2016 16:43:42 GMT
750
      Server:
751
      - Apache/2.4.6 (Red Hat Enterprise Linux)
752
      X-Frame-Options:
753
      - SAMEORIGIN
754
      X-Xss-Protection:
755
      - 1; mode=block
756
      X-Content-Type-Options:
757
      - nosniff
758
      Foreman-Version:
759
      - 1.11.0.61
760
      Foreman-Api-Version:
761
      - '2'
762
      X-Candlepin-Version:
763
      - katello/3.0.0.90
764
      Cache-Control:
765
      - no-cache
766
      X-Request-Id:
767
      - 3dce710c-119d-476a-b1ff-bdbfbdafda49
768
      X-Runtime:
769
      - '0.174972'
770
      X-Powered-By:
771
      - Phusion Passenger 4.0.18
772
      Set-Cookie:
773
      - _session_id=b23a03315ca5f2a49c1bbc09076229f3; path=/; secure; HttpOnly
774
      - request_method=PUT; path=/
775
      Status:
776
      - 500 Internal Server Error
777
      Connection:
778
      - close
779
      Transfer-Encoding:
780
      - chunked
781
      Content-Type:
782
      - application/json; charset=utf-8
783
    body:
784
      encoding: UTF-8
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"]}'
791
    http_version: 
792
  recorded_at: Mon, 19 Dec 2016 16:43:26 GMT
793
- request:
794
    method: get
795
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions?full_results=true
796
    body:
797
      encoding: US-ASCII
798
      string: ''
799
    headers:
800
      Accept:
801
      - application/json;version=2
802
      Accept-Encoding:
803
      - gzip, deflate
804
      User-Agent:
805
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
806
      Content-Type:
807
      - application/json
808
      Accept-Language:
809
      - en
810
      Host:
811
      - satlap.example.com
812
  response:
813
    status:
814
      code: 200
815
      message: OK
816
    headers:
817
      Date:
818
      - Mon, 19 Dec 2016 16:43:42 GMT
819
      Server:
820
      - Apache/2.4.6 (Red Hat Enterprise Linux)
821
      X-Frame-Options:
822
      - SAMEORIGIN
823
      X-Xss-Protection:
824
      - 1; mode=block
825
      X-Content-Type-Options:
826
      - nosniff
827
      Foreman-Version:
828
      - 1.11.0.61
829
      Foreman-Api-Version:
830
      - '2'
831
      Apipie-Checksum:
832
      - 9793fd9909c89b81479655ed560c4340
833
      Cache-Control:
834
      - max-age=0, private, must-revalidate
835
      X-Request-Id:
836
      - 82bddc32-a2dc-425a-840e-7f62626a2b6f
837
      X-Runtime:
838
      - '0.324065'
839
      X-Powered-By:
840
      - Phusion Passenger 4.0.18
841
      Set-Cookie:
842
      - _session_id=152de6fc76fd2e7ce196e832910294c1; path=/; secure; HttpOnly
843
      Etag:
844
      - '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
845
      Status:
846
      - 200 OK
847
      Vary:
848
      - Accept-Encoding
849
      Content-Length:
850
      - '770'
851
      Content-Type:
852
      - application/json; charset=utf-8
853
    body:
854
      encoding: ASCII-8BIT
855
      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
856
        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
857
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
858

    
859
'
860
    http_version: 
861
  recorded_at: Mon, 19 Dec 2016 16:43:26 GMT
862
- request:
863
    method: put
864
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/remove_subscriptions
865
    body:
866
      encoding: UTF-8
867
      string: '{"subscriptions":[{"id":37,"quantity":1}]}'
868
    headers:
869
      Accept:
870
      - application/json;version=2
871
      Accept-Encoding:
872
      - gzip, deflate
873
      User-Agent:
874
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
875
      Content-Type:
876
      - application/json
877
      Accept-Language:
878
      - en
879
      Content-Length:
880
      - '42'
881
      Host:
882
      - satlap.example.com
883
  response:
884
    status:
885
      code: 200
886
      message: OK
887
    headers:
888
      Date:
889
      - Mon, 19 Dec 2016 16:43:42 GMT
890
      Server:
891
      - Apache/2.4.6 (Red Hat Enterprise Linux)
892
      X-Frame-Options:
893
      - SAMEORIGIN
894
      X-Xss-Protection:
895
      - 1; mode=block
896
      X-Content-Type-Options:
897
      - nosniff
898
      Foreman-Version:
899
      - 1.11.0.61
900
      Foreman-Api-Version:
901
      - '2'
902
      Apipie-Checksum:
903
      - 9793fd9909c89b81479655ed560c4340
904
      Cache-Control:
905
      - max-age=0, private, must-revalidate
906
      X-Request-Id:
907
      - d6b4f2ab-1896-4a25-bced-00b87619aae2
908
      X-Runtime:
909
      - '1.093655'
910
      X-Powered-By:
911
      - Phusion Passenger 4.0.18
912
      Set-Cookie:
913
      - _session_id=6bbefb08ae617f9f7a4d36d3b7cf037c; path=/; secure; HttpOnly
914
      - request_method=PUT; path=/
915
      Etag:
916
      - '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
917
      Status:
918
      - 200 OK
919
      Vary:
920
      - Accept-Encoding
921
      Content-Length:
922
      - '770'
923
      Content-Type:
924
      - application/json; charset=utf-8
925
    body:
926
      encoding: ASCII-8BIT
927
      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
928
        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
929
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
930

    
931
'
932
    http_version: 
933
  recorded_at: Mon, 19 Dec 2016 16:43:27 GMT
934
- request:
935
    method: get
936
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
937
    body:
938
      encoding: US-ASCII
939
      string: ''
940
    headers:
941
      Accept:
942
      - application/json;version=2
943
      Accept-Encoding:
944
      - gzip, deflate
945
      User-Agent:
946
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
947
      Content-Type:
948
      - application/json
949
      Accept-Language:
950
      - en
951
      Host:
952
      - satlap.example.com
953
  response:
954
    status:
955
      code: 200
956
      message: OK
957
    headers:
958
      Date:
959
      - Mon, 19 Dec 2016 16:43:43 GMT
960
      Server:
961
      - Apache/2.4.6 (Red Hat Enterprise Linux)
962
      X-Frame-Options:
963
      - SAMEORIGIN
964
      X-Xss-Protection:
965
      - 1; mode=block
966
      X-Content-Type-Options:
967
      - nosniff
968
      Foreman-Version:
969
      - 1.11.0.61
970
      Foreman-Api-Version:
971
      - '2'
972
      Apipie-Checksum:
973
      - 9793fd9909c89b81479655ed560c4340
974
      Cache-Control:
975
      - max-age=0, private, must-revalidate
976
      X-Request-Id:
977
      - 14fbe943-d05e-424c-8349-1fb4948310a0
978
      X-Runtime:
979
      - '0.578924'
980
      X-Powered-By:
981
      - Phusion Passenger 4.0.18
982
      Set-Cookie:
983
      - _session_id=c82f682c7ddd8b684c5dd4b46f048b13; path=/; secure; HttpOnly
984
      Etag:
985
      - '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
986
      Status:
987
      - 200 OK
988
      Vary:
989
      - Accept-Encoding
990
      Content-Length:
991
      - '1972'
992
      Content-Type:
993
      - application/json; charset=utf-8
994
    body:
995
      encoding: ASCII-8BIT
996
      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
997
        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
998
        Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
999
        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
1000
        Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
1001
        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
1002
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
1003

    
1004
'
1005
    http_version: 
1006
  recorded_at: Mon, 19 Dec 2016 16:43:28 GMT
1007
- request:
1008
    method: put
1009
    uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/add_subscriptions
1010
    body:
1011
      encoding: UTF-8
1012
      string: '{"subscriptions":[{"id":37,"quantity":0}]}'
1013
    headers:
1014
      Accept:
1015
      - application/json;version=2
1016
      Accept-Encoding:
1017
      - gzip, deflate
1018
      User-Agent:
1019
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1020
      Content-Type:
1021
      - application/json
1022
      Accept-Language:
1023
      - en
1024
      Content-Length:
1025
      - '42'
1026
      Host:
1027
      - satlap.example.com
1028
  response:
1029
    status:
1030
      code: 200
1031
      message: OK
1032
    headers:
1033
      Date:
1034
      - Mon, 19 Dec 2016 16:43:44 GMT
1035
      Server:
1036
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1037
      X-Frame-Options:
1038
      - SAMEORIGIN
1039
      X-Xss-Protection:
1040
      - 1; mode=block
1041
      X-Content-Type-Options:
1042
      - nosniff
1043
      Foreman-Version:
1044
      - 1.11.0.61
1045
      Foreman-Api-Version:
1046
      - '2'
1047
      Apipie-Checksum:
1048
      - 9793fd9909c89b81479655ed560c4340
1049
      Cache-Control:
1050
      - max-age=0, private, must-revalidate
1051
      X-Request-Id:
1052
      - 9c6dade2-6018-4a5f-a469-430d6bbf6968
1053
      X-Runtime:
1054
      - '1.030453'
1055
      X-Powered-By:
1056
      - Phusion Passenger 4.0.18
1057
      Set-Cookie:
1058
      - _session_id=5e46ed74c92f4832f8ba2ed95cbd1b7e; path=/; secure; HttpOnly
1059
      - request_method=PUT; path=/
1060
      Etag:
1061
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
1062
      Status:
1063
      - 200 OK
1064
      Vary:
1065
      - Accept-Encoding
1066
      Content-Length:
1067
      - '119'
1068
      Content-Type:
1069
      - application/json; charset=utf-8
1070
    body:
1071
      encoding: ASCII-8BIT
1072
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
1073

    
1074
'
1075
    http_version: 
1076
  recorded_at: Mon, 19 Dec 2016 16:43:29 GMT
1077
- request:
1078
    method: put
1079
    uri: https://admin:changeme@satlap.example.com/api/hosts/5
1080
    body:
1081
      encoding: UTF-8
1082
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
1083
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
1084
    headers:
1085
      Accept:
1086
      - application/json;version=2
1087
      Accept-Encoding:
1088
      - gzip, deflate
1089
      User-Agent:
1090
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1091
      Content-Type:
1092
      - application/json
1093
      Accept-Language:
1094
      - en
1095
      Content-Length:
1096
      - '271'
1097
      Host:
1098
      - satlap.example.com
1099
  response:
1100
    status:
1101
      code: 200
1102
      message: OK
1103
    headers:
1104
      Date:
1105
      - Mon, 19 Dec 2016 16:43:45 GMT
1106
      Server:
1107
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1108
      X-Frame-Options:
1109
      - SAMEORIGIN
1110
      X-Xss-Protection:
1111
      - 1; mode=block
1112
      X-Content-Type-Options:
1113
      - nosniff
1114
      Foreman-Version:
1115
      - 1.11.0.61
1116
      Foreman-Api-Version:
1117
      - '2'
1118
      Apipie-Checksum:
1119
      - 9793fd9909c89b81479655ed560c4340
1120
      Cache-Control:
1121
      - max-age=0, private, must-revalidate
1122
      X-Request-Id:
1123
      - 3a827449-628b-4dae-87ba-22a2b7a42db9
1124
      X-Runtime:
1125
      - '0.711425'
1126
      X-Powered-By:
1127
      - Phusion Passenger 4.0.18
1128
      Set-Cookie:
1129
      - _session_id=668211d933216a2ef55c0c0863b5b16c; path=/; secure; HttpOnly
1130
      - request_method=PUT; path=/
1131
      Etag:
1132
      - '"df7929b8a6ba0368435441b0e7a2b605-gzip"'
1133
      Status:
1134
      - 200 OK
1135
      Vary:
1136
      - Accept-Encoding
1137
      Content-Length:
1138
      - '3850'
1139
      Content-Type:
1140
      - application/json; charset=utf-8
1141
    body:
1142
      encoding: ASCII-8BIT
1143
      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
1144
        11:01:00 UTC","updated_at":"2016-12-19 16:39:54 UTC","last_compile":"2016-12-19
1145
        16:39:50 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
1146
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
1147
        not calculate errata status, ensure host is registered and katello-agent is
1148
        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
1149
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
1150
        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
1151
        11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
1152
        11:01:01 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7ccd506f2","productId":"69","productName":"Red
1153
        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
1154
        Corporation/testphysical","system::certificate_version":"3.2","network::hostname":"testphysical","cpu::cpu(s)":"1","_timestamp":"2016-12-19T16:39:50+00:00","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}}'
1155
    http_version: 
1156
  recorded_at: Mon, 19 Dec 2016 16:43:29 GMT
1157
- request:
1158
    method: get
1159
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/a39750b1-252f-41d2-8f8d-646ecd711e02
1160
    body:
1161
      encoding: US-ASCII
1162
      string: ''
1163
    headers:
1164
      Accept-Encoding:
1165
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1166
      Accept:
1167
      - "*/*"
1168
      User-Agent:
1169
      - Ruby
1170
  response:
1171
    status:
1172
      code: 200
1173
      message: OK
1174
    headers:
1175
      Date:
1176
      - Mon, 19 Dec 2016 16:43:46 GMT
1177
      Server:
1178
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1179
      X-Frame-Options:
1180
      - SAMEORIGIN
1181
      X-Xss-Protection:
1182
      - 1; mode=block
1183
      X-Content-Type-Options:
1184
      - nosniff
1185
      Foreman-Version:
1186
      - 1.11.0.61
1187
      Foreman-Api-Version:
1188
      - '2'
1189
      X-Candlepin-Version:
1190
      - katello/3.0.0.90
1191
      Cache-Control:
1192
      - max-age=0, private, must-revalidate
1193
      X-Request-Id:
1194
      - b9cedd47-39ec-4cb1-bcb3-87829c9b453f
1195
      X-Runtime:
1196
      - '0.098540'
1197
      X-Powered-By:
1198
      - Phusion Passenger 4.0.18
1199
      Set-Cookie:
1200
      - _session_id=fad85721a9a1c9738a4afdf1a6f6630e; path=/; secure; HttpOnly
1201
      Etag:
1202
      - '"956bb81875ec6fea530b3b5b1057e538-gzip"'
1203
      Status:
1204
      - 200 OK
1205
      Vary:
1206
      - Accept-Encoding
1207
      Content-Length:
1208
      - '3274'
1209
      Content-Type:
1210
      - application/json; charset=utf-8
1211
    body:
1212
      encoding: ASCII-8BIT
1213
      string: '{"id":"4028f99158f378890158f7d7be2906e8","uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","name":"testphysical","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
1214
        RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAmQIDIwXhNkK4WuKus1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1216
        CERTIFICATE-----\n","id":"4028f99158f378890158f7d7c00906eb","serial":{"id":8414957482624731083,"revoked":false,"collected":false,"expiration":"2032-12-13T11:01:01.099+0000","serial":8414957482624731083,"created":"2016-12-13T11:01:01.100+0000","updated":"2016-12-13T11:01:01.100+0000"},"created":"2016-12-13T11:01:01.577+0000","updated":"2016-12-13T11:01:01.577+0000"},"type":{"id":"1000","label":"system","manifest":false},"owner":{"id":"4028f99158f378890158f7d5665f03ed","key":"testcorp","displayName":"Test
1217
        Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"4028f99158f378890158f7d5665f03ed","key":"testcorp","displayName":"Test
1218
        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
1219
        Corporation/testphysical","network.hostname":"testphysical","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-19T16:39:50+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"8","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"4028f99158f378890158f7d7ccd506f2","productId":"69","productName":"Red
1220
        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"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/a39750b1-252f-41d2-8f8d-646ecd711e02","created":"2016-12-13T11:01:01.097+0000","updated":"2016-12-19T16:43:46.095+0000"}'
1221
    http_version: 
1222
  recorded_at: Mon, 19 Dec 2016 16:43:30 GMT
1223
- request:
1224
    method: put
1225
    uri: https://admin:changeme@satlap.example.com/rhsm/consumers/a39750b1-252f-41d2-8f8d-646ecd711e02
1226
    body:
1227
      encoding: UTF-8
1228
      string: '{"facts":{"virt.uuid":"Test Corporation/testphysical","network.hostname":"testphysical","distribution.version":"7Server","distribution.name":"RHEL","system.certificate_version":"3.2","_timestamp":"2016-12-19T16:39:50+00:00","uname.machine":"x86_64","memory.memtotal":"4GB","cpu.cpu_socket(s)":"8","cpu.cpu(s)":"1","cpu.core(s)_per_socket":"1","virt.is_guest":true}}'
1229
    headers:
1230
      Content-Type:
1231
      - application/json
1232
      Accept-Encoding:
1233
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1234
      Accept:
1235
      - "*/*"
1236
      User-Agent:
1237
      - Ruby
1238
  response:
1239
    status:
1240
      code: 200
1241
      message: OK
1242
    headers:
1243
      Date:
1244
      - Mon, 19 Dec 2016 16:43:46 GMT
1245
      Server:
1246
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1247
      X-Frame-Options:
1248
      - SAMEORIGIN
1249
      X-Xss-Protection:
1250
      - 1; mode=block
1251
      X-Content-Type-Options:
1252
      - nosniff
1253
      Foreman-Version:
1254
      - 1.11.0.61
1255
      Foreman-Api-Version:
1256
      - '2'
1257
      X-Candlepin-Version:
1258
      - katello/3.0.0.90
1259
      Cache-Control:
1260
      - max-age=0, private, must-revalidate
1261
      X-Request-Id:
1262
      - 44432bea-75ea-4950-b506-ec607efb973b
1263
      X-Runtime:
1264
      - '1.394394'
1265
      X-Powered-By:
1266
      - Phusion Passenger 4.0.18
1267
      Set-Cookie:
1268
      - _session_id=f42578004474750d70758b867148d8ce; path=/; secure; HttpOnly
1269
      - request_method=PUT; path=/
1270
      Etag:
1271
      - '"a507d5fae91dfb858fa3f652df472381"'
1272
      Status:
1273
      - 200 OK
1274
      Content-Length:
1275
      - '41'
1276
      Content-Type:
1277
      - application/json; charset=utf-8
1278
    body:
1279
      encoding: UTF-8
1280
      string: '{"content":"Facts successfully updated."}'
1281
    http_version: 
1282
  recorded_at: Mon, 19 Dec 2016 16:43:31 GMT
1283
- request:
1284
    method: get
1285
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions?full_results=true
1286
    body:
1287
      encoding: US-ASCII
1288
      string: ''
1289
    headers:
1290
      Accept:
1291
      - application/json;version=2
1292
      Accept-Encoding:
1293
      - gzip, deflate
1294
      User-Agent:
1295
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1296
      Content-Type:
1297
      - application/json
1298
      Accept-Language:
1299
      - en
1300
      Host:
1301
      - satlap.example.com
1302
  response:
1303
    status:
1304
      code: 200
1305
      message: OK
1306
    headers:
1307
      Date:
1308
      - Mon, 19 Dec 2016 16:43:47 GMT
1309
      Server:
1310
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1311
      X-Frame-Options:
1312
      - SAMEORIGIN
1313
      X-Xss-Protection:
1314
      - 1; mode=block
1315
      X-Content-Type-Options:
1316
      - nosniff
1317
      Foreman-Version:
1318
      - 1.11.0.61
1319
      Foreman-Api-Version:
1320
      - '2'
1321
      Apipie-Checksum:
1322
      - 9793fd9909c89b81479655ed560c4340
1323
      Cache-Control:
1324
      - max-age=0, private, must-revalidate
1325
      X-Request-Id:
1326
      - a7b4ecff-27eb-47b9-82d6-ed101fd02591
1327
      X-Runtime:
1328
      - '0.283110'
1329
      X-Powered-By:
1330
      - Phusion Passenger 4.0.18
1331
      Set-Cookie:
1332
      - _session_id=66649b89cad261e24cd5719850e52d3f; path=/; secure; HttpOnly
1333
      Etag:
1334
      - '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
1335
      Status:
1336
      - 200 OK
1337
      Vary:
1338
      - Accept-Encoding
1339
      Content-Length:
1340
      - '770'
1341
      Content-Type:
1342
      - application/json; charset=utf-8
1343
    body:
1344
      encoding: ASCII-8BIT
1345
      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
1346
        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
1347
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
1348

    
1349
'
1350
    http_version: 
1351
  recorded_at: Mon, 19 Dec 2016 16:43:31 GMT
1352
- request:
1353
    method: put
1354
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/remove_subscriptions
1355
    body:
1356
      encoding: UTF-8
1357
      string: '{"subscriptions":[{"id":37,"quantity":1}]}'
1358
    headers:
1359
      Accept:
1360
      - application/json;version=2
1361
      Accept-Encoding:
1362
      - gzip, deflate
1363
      User-Agent:
1364
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1365
      Content-Type:
1366
      - application/json
1367
      Accept-Language:
1368
      - en
1369
      Content-Length:
1370
      - '42'
1371
      Host:
1372
      - satlap.example.com
1373
  response:
1374
    status:
1375
      code: 200
1376
      message: OK
1377
    headers:
1378
      Date:
1379
      - Mon, 19 Dec 2016 16:43:48 GMT
1380
      Server:
1381
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1382
      X-Frame-Options:
1383
      - SAMEORIGIN
1384
      X-Xss-Protection:
1385
      - 1; mode=block
1386
      X-Content-Type-Options:
1387
      - nosniff
1388
      Foreman-Version:
1389
      - 1.11.0.61
1390
      Foreman-Api-Version:
1391
      - '2'
1392
      Apipie-Checksum:
1393
      - 9793fd9909c89b81479655ed560c4340
1394
      Cache-Control:
1395
      - max-age=0, private, must-revalidate
1396
      X-Request-Id:
1397
      - 69f7a5dd-501b-4a56-843a-872cb90fdca8
1398
      X-Runtime:
1399
      - '1.032248'
1400
      X-Powered-By:
1401
      - Phusion Passenger 4.0.18
1402
      Set-Cookie:
1403
      - _session_id=2c9f00c56ba65d4f9394f4d1096af6ba; path=/; secure; HttpOnly
1404
      - request_method=PUT; path=/
1405
      Etag:
1406
      - '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
1407
      Status:
1408
      - 200 OK
1409
      Vary:
1410
      - Accept-Encoding
1411
      Content-Length:
1412
      - '770'
1413
      Content-Type:
1414
      - application/json; charset=utf-8
1415
    body:
1416
      encoding: ASCII-8BIT
1417
      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
1418
        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
1419
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
1420

    
1421
'
1422
    http_version: 
1423
  recorded_at: Mon, 19 Dec 2016 16:43:32 GMT
1424
- request:
1425
    method: get
1426
    uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
1427
    body:
1428
      encoding: US-ASCII
1429
      string: ''
1430
    headers:
1431
      Accept:
1432
      - application/json;version=2
1433
      Accept-Encoding:
1434
      - gzip, deflate
1435
      User-Agent:
1436
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1437
      Content-Type:
1438
      - application/json
1439
      Accept-Language:
1440
      - en
1441
      Host:
1442
      - satlap.example.com
1443
  response:
1444
    status:
1445
      code: 200
1446
      message: OK
1447
    headers:
1448
      Date:
1449
      - Mon, 19 Dec 2016 16:43:49 GMT
1450
      Server:
1451
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1452
      X-Frame-Options:
1453
      - SAMEORIGIN
1454
      X-Xss-Protection:
1455
      - 1; mode=block
1456
      X-Content-Type-Options:
1457
      - nosniff
1458
      Foreman-Version:
1459
      - 1.11.0.61
1460
      Foreman-Api-Version:
1461
      - '2'
1462
      Apipie-Checksum:
1463
      - 9793fd9909c89b81479655ed560c4340
1464
      Cache-Control:
1465
      - max-age=0, private, must-revalidate
1466
      X-Request-Id:
1467
      - 8bff46d7-f51d-4033-9938-7a5546bd97ba
1468
      X-Runtime:
1469
      - '0.607334'
1470
      X-Powered-By:
1471
      - Phusion Passenger 4.0.18
1472
      Set-Cookie:
1473
      - _session_id=6c43db5d300366ba45016425e81bb528; path=/; secure; HttpOnly
1474
      Etag:
1475
      - '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
1476
      Status:
1477
      - 200 OK
1478
      Vary:
1479
      - Accept-Encoding
1480
      Content-Length:
1481
      - '1972'
1482
      Content-Type:
1483
      - application/json; charset=utf-8
1484
    body:
1485
      encoding: ASCII-8BIT
1486
      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
1487
        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
1488
        Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
1489
        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
1490
        Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
1491
        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
1492
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
1493

    
1494
'
1495
    http_version: 
1496
  recorded_at: Mon, 19 Dec 2016 16:43:33 GMT
1497
- request:
1498
    method: put
1499
    uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/add_subscriptions
1500
    body:
1501
      encoding: UTF-8
1502
      string: '{"subscriptions":[{"id":37,"quantity":0}]}'
1503
    headers:
1504
      Accept:
1505
      - application/json;version=2
1506
      Accept-Encoding:
1507
      - gzip, deflate
1508
      User-Agent:
1509
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1510
      Content-Type:
1511
      - application/json
1512
      Accept-Language:
1513
      - en
1514
      Content-Length:
1515
      - '42'
1516
      Host:
1517
      - satlap.example.com
1518
  response:
1519
    status:
1520
      code: 200
1521
      message: OK
1522
    headers:
1523
      Date:
1524
      - Mon, 19 Dec 2016 16:43:49 GMT
1525
      Server:
1526
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1527
      X-Frame-Options:
1528
      - SAMEORIGIN
1529
      X-Xss-Protection:
1530
      - 1; mode=block
1531
      X-Content-Type-Options:
1532
      - nosniff
1533
      Foreman-Version:
1534
      - 1.11.0.61
1535
      Foreman-Api-Version:
1536
      - '2'
1537
      Apipie-Checksum:
1538
      - 9793fd9909c89b81479655ed560c4340
1539
      Cache-Control:
1540
      - max-age=0, private, must-revalidate
1541
      X-Request-Id:
1542
      - fc1a20ae-cbcf-4a6a-a911-6adcd9d9b3ed
1543
      X-Runtime:
1544
      - '1.114543'
1545
      X-Powered-By:
1546
      - Phusion Passenger 4.0.18
1547
      Set-Cookie:
1548
      - _session_id=0a038f1b2b6d1cf5e2c6e18d20e6a483; path=/; secure; HttpOnly
1549
      - request_method=PUT; path=/
1550
      Etag:
1551
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
1552
      Status:
1553
      - 200 OK
1554
      Vary:
1555
      - Accept-Encoding
1556
      Content-Length:
1557
      - '119'
1558
      Content-Type:
1559
      - application/json; charset=utf-8
1560
    body:
1561
      encoding: ASCII-8BIT
1562
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
1563

    
1564
'
1565
    http_version: 
1566
  recorded_at: Mon, 19 Dec 2016 16:43:34 GMT
1567
recorded_with: VCR 3.0.3