Project

General

Profile

Revision ff467024

Added by Thomas McKay almost 6 years ago

vcr - full re-record

View differences:

test/fixtures/vcr_cassettes/setup/setup_content_hosts/setup.yml
2 2
http_interactions:
3 3
- request:
4 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 5
    uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?per_page=1
277 6
    body:
278 7
      encoding: US-ASCII
......
1564 1293
'
1565 1294
    http_version: 
1566 1295
  recorded_at: Mon, 19 Dec 2016 16:43:34 GMT
1296
- request:
1297
    method: get
1298
    uri: https://admin:changeme@devel.example.com:50083/api/status
1299
    body:
1300
      encoding: US-ASCII
1301
      string: ''
1302
    headers:
1303
      Accept-Encoding:
1304
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1305
      Accept:
1306
      - "*/*"
1307
      User-Agent:
1308
      - Ruby
1309
      Host:
1310
      - devel.example.com:50083
1311
  response:
1312
    status:
1313
      code: 200
1314
      message: OK
1315
    headers:
1316
      Date:
1317
      - Mon, 27 Mar 2017 18:36:35 GMT
1318
      Server:
1319
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1320
      X-Frame-Options:
1321
      - SAMEORIGIN
1322
      X-Xss-Protection:
1323
      - 1; mode=block
1324
      X-Content-Type-Options:
1325
      - nosniff
1326
      Foreman-Version:
1327
      - 1.11.0.54
1328
      Foreman-Api-Version:
1329
      - '2'
1330
      Apipie-Checksum:
1331
      - e1df2e8d43e22495b02a53b48e3b5298
1332
      Cache-Control:
1333
      - max-age=0, private, must-revalidate
1334
      X-Request-Id:
1335
      - 6b588dbb-593e-47a7-97f8-f350f3ee4bda
1336
      X-Runtime:
1337
      - '0.051589'
1338
      X-Powered-By:
1339
      - Phusion Passenger 4.0.18
1340
      Etag:
1341
      - '"8e3341d0a4cc328651f7391aed11fef8"'
1342
      Status:
1343
      - 200 OK
1344
      Content-Length:
1345
      - '66'
1346
      Content-Type:
1347
      - application/json; charset=utf-8
1348
      Set-Cookie:
1349
      - _session_id=952b4130aa49c2124eb9197f64004f61; path=/; secure; HttpOnly
1350
    body:
1351
      encoding: UTF-8
1352
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
1353
    http_version: 
1354
  recorded_at: Mon, 27 Mar 2017 18:36:41 GMT
1355
- request:
1356
    method: get
1357
    uri: https://admin:changeme@devel.example.com:50083/api/v2/plugins
1358
    body:
1359
      encoding: US-ASCII
1360
      string: ''
1361
    headers:
1362
      Accept-Encoding:
1363
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1364
      Accept:
1365
      - "*/*"
1366
      User-Agent:
1367
      - Ruby
1368
      Host:
1369
      - devel.example.com:50083
1370
  response:
1371
    status:
1372
      code: 200
1373
      message: OK
1374
    headers:
1375
      Date:
1376
      - Mon, 27 Mar 2017 18:36:35 GMT
1377
      Server:
1378
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1379
      X-Frame-Options:
1380
      - SAMEORIGIN
1381
      X-Xss-Protection:
1382
      - 1; mode=block
1383
      X-Content-Type-Options:
1384
      - nosniff
1385
      Foreman-Version:
1386
      - 1.11.0.54
1387
      Foreman-Api-Version:
1388
      - '2'
1389
      Apipie-Checksum:
1390
      - e1df2e8d43e22495b02a53b48e3b5298
1391
      Cache-Control:
1392
      - max-age=0, private, must-revalidate
1393
      X-Request-Id:
1394
      - 49652b5f-8d3e-4246-9810-ed1002ab0a0b
1395
      X-Runtime:
1396
      - '0.050198'
1397
      X-Powered-By:
1398
      - Phusion Passenger 4.0.18
1399
      Etag:
1400
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
1401
      Status:
1402
      - 200 OK
1403
      Vary:
1404
      - Accept-Encoding
1405
      Content-Length:
1406
      - '1338'
1407
      Content-Type:
1408
      - application/json; charset=utf-8
1409
      Set-Cookie:
1410
      - _session_id=6c44194cdf56e7405b42c75cfcbc9e5e; path=/; secure; HttpOnly
1411
    body:
1412
      encoding: ASCII-8BIT
1413
      string: !binary |-
1414
        ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
1415
        MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
1416
        dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
1417
        ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
1418
        b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
1419
        dGlvbiI6IlRoZSBnb2FsIG9mIHRoaXMgcGx1Z2luIGlzIHRvIHVuaWZ5IHRo
1420
        ZSB3YXkgb2Ygc2hvd2luZyB0YXNrIHN0YXR1c2VzIGFjcm9zcyB0aGUgRm9y
1421
        ZW1hbiBpbnN0YW5jZS5cbkl0IGRlZmluZXMgVGFzayBtb2RlbCBmb3Iga2Vl
1422
        cGluZyB0aGUgaW5mb3JtYXRpb24gYWJvdXQgdGhlIHRhc2tzIGFuZCBMb2Nr
1423
        IGZvciBhc3NpZ25pbmcgdGhlIHRhc2tzXG50byByZXNvdXJjZXMuIFRoZSBs
1424
        b2NraW5nIGFsbG93cyBkZWFsaW5nIHdpdGggcHJldmVudGluZyBtdWx0aXBs
1425
        ZSBjb2xsaWRpbmcgdGFza3MgdG8gYmUgcnVuIG9uIHRoZVxuc2FtZSByZXNv
1426
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
1427
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
1428
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
1429
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
1430
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
1431
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
1432
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
1433
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
1434
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
1435
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
1436
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
1437
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
1438
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
1439
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
1440
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
1441
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
1442
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
1443
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
1444
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
1445
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
1446
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
1447
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
1448
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
1449
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
1450
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
1451
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
1452
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
1453
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
1454
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
1455
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
1456
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
1457
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
1458
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
1459
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
1460
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
1461
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
1462
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
1463
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
1464
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
1465
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
1466
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
1467
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
1468
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
1469
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
1470
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
1471
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
1472
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
1473
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
1474
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
1475
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
1476
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
1477
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
1478
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
1479
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
1480
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
1481
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
1482
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
1483
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
1484
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
1485
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
1486
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
1487
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
1488
    http_version: 
1489
  recorded_at: Mon, 27 Mar 2017 18:36:41 GMT
1490
- request:
1491
    method: get
1492
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
1493
    body:
1494
      encoding: US-ASCII
1495
      string: ''
1496
    headers:
1497
      Accept:
1498
      - application/json;version=2
1499
      Accept-Encoding:
1500
      - gzip, deflate
1501
      User-Agent:
1502
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1503
      Content-Type:
1504
      - application/json
1505
      Accept-Language:
1506
      - en
1507
      Host:
1508
      - devel.example.com:50083
1509
  response:
1510
    status:
1511
      code: 200
1512
      message: OK
1513
    headers:
1514
      Date:
1515
      - Mon, 27 Mar 2017 18:36:35 GMT
1516
      Server:
1517
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1518
      X-Frame-Options:
1519
      - SAMEORIGIN
1520
      X-Xss-Protection:
1521
      - 1; mode=block
1522
      X-Content-Type-Options:
1523
      - nosniff
1524
      Foreman-Version:
1525
      - 1.11.0.54
1526
      Foreman-Api-Version:
1527
      - '2'
1528
      Apipie-Checksum:
1529
      - e1df2e8d43e22495b02a53b48e3b5298
1530
      Cache-Control:
1531
      - max-age=0, private, must-revalidate
1532
      X-Request-Id:
1533
      - 2daeb4a0-ae26-40f8-b6b2-099a20e3e723
1534
      X-Runtime:
1535
      - '0.060023'
1536
      X-Powered-By:
1537
      - Phusion Passenger 4.0.18
1538
      Etag:
1539
      - '"889d59438c9dbada3bd3c0b258f7a13e-gzip"'
1540
      Status:
1541
      - 200 OK
1542
      Vary:
1543
      - Accept-Encoding
1544
      Content-Length:
1545
      - '388'
1546
      Content-Type:
1547
      - application/json; charset=utf-8
1548
      Set-Cookie:
1549
      - _session_id=a253affaddc12a3273ed9f8eb77765c7; path=/; secure; HttpOnly
1550
    body:
1551
      encoding: ASCII-8BIT
1552
      string: |
1553
        {
1554
          "total": 2,
1555
          "subtotal": 1,
1556
          "page": 1,
1557
          "per_page": 999999,
1558
          "search": "name=\"Test Corporation\"",
1559
          "sort": {
1560
            "by": null,
1561
            "order": null
1562
          },
1563
          "results": [{"label":"testcorp","created_at":"2016-12-01 19:35:26 UTC","updated_at":"2017-03-27 18:36:07 UTC","id":3,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
1564
        }
1565
    http_version: 
1566
  recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
1567
- request:
1568
    method: get
1569
    uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?per_page=1
1570
    body:
1571
      encoding: US-ASCII
1572
      string: ''
1573
    headers:
1574
      Accept:
1575
      - application/json;version=2
1576
      Accept-Encoding:
1577
      - gzip, deflate
1578
      User-Agent:
1579
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1580
      Content-Type:
1581
      - application/json
1582
      Accept-Language:
1583
      - en
1584
      Host:
1585
      - devel.example.com:50083
1586
  response:
1587
    status:
1588
      code: 200
1589
      message: OK
1590
    headers:
1591
      Date:
1592
      - Mon, 27 Mar 2017 18:36:35 GMT
1593
      Server:
1594
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1595
      X-Frame-Options:
1596
      - SAMEORIGIN
1597
      X-Xss-Protection:
1598
      - 1; mode=block
1599
      X-Content-Type-Options:
1600
      - nosniff
1601
      Foreman-Version:
1602
      - 1.11.0.54
1603
      Foreman-Api-Version:
1604
      - '2'
1605
      Apipie-Checksum:
1606
      - e1df2e8d43e22495b02a53b48e3b5298
1607
      Cache-Control:
1608
      - max-age=0, private, must-revalidate
1609
      X-Request-Id:
1610
      - 69122023-1a01-4646-a7e0-c6dea28580da
1611
      X-Runtime:
1612
      - '0.122034'
1613
      X-Powered-By:
1614
      - Phusion Passenger 4.0.18
1615
      Etag:
1616
      - '"aa071a3b0682e7e6e0310fa5e49927ac-gzip"'
1617
      Status:
1618
      - 200 OK
1619
      Vary:
1620
      - Accept-Encoding
1621
      Content-Length:
1622
      - '2293'
1623
      Content-Type:
1624
      - application/json; charset=utf-8
1625
      Set-Cookie:
1626
      - _session_id=f4e266c3d1ec445e7e7d5b6527a5844f; path=/; secure; HttpOnly
1627
    body:
1628
      encoding: ASCII-8BIT
1629
      string: |
1630
        {
1631
          "total": 2,
1632
          "subtotal": 2,
1633
          "page": 1,
1634
          "per_page": 1,
1635
          "search": null,
1636
          "sort": {
1637
            "by": null,
1638
            "order": null
1639
          },
1640
          "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-01 19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"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":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","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":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6}]
1641
        }
1642
    http_version: 
1643
  recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
1644
- request:
1645
    method: get
1646
    uri: https://admin:changeme@devel.example.com:50083/api/organizations/3/hosts?page=1&per_page=20
1647
    body:
1648
      encoding: US-ASCII
1649
      string: ''
1650
    headers:
1651
      Accept:
1652
      - application/json;version=2
1653
      Accept-Encoding:
1654
      - gzip, deflate
1655
      User-Agent:
1656
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1657
      Content-Type:
1658
      - application/json
1659
      Accept-Language:
1660
      - en
1661
      Host:
1662
      - devel.example.com:50083
1663
  response:
1664
    status:
1665
      code: 200
1666
      message: OK
1667
    headers:
1668
      Date:
1669
      - Mon, 27 Mar 2017 18:36:36 GMT
1670
      Server:
1671
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1672
      X-Frame-Options:
1673
      - SAMEORIGIN
1674
      X-Xss-Protection:
1675
      - 1; mode=block
1676
      X-Content-Type-Options:
1677
      - nosniff
1678
      Foreman-Version:
1679
      - 1.11.0.54
1680
      Foreman-Api-Version:
1681
      - '2'
1682
      Apipie-Checksum:
1683
      - e1df2e8d43e22495b02a53b48e3b5298
1684
      Cache-Control:
1685
      - max-age=0, private, must-revalidate
1686
      X-Request-Id:
1687
      - a5e58060-6e40-4caa-8b6a-b55dc38bae4b
1688
      X-Runtime:
1689
      - '0.155206'
1690
      X-Powered-By:
1691
      - Phusion Passenger 4.0.18
1692
      Etag:
1693
      - '"790c22d6d1fcf8c0b08afacb06f8909f-gzip"'
1694
      Status:
1695
      - 200 OK
1696
      Vary:
1697
      - Accept-Encoding
1698
      Content-Length:
1699
      - '4426'
1700
      Content-Type:
1701
      - application/json; charset=utf-8
1702
      Set-Cookie:
1703
      - _session_id=9578f1339c01167f6c6129a91fff314d; path=/; secure; HttpOnly
1704
    body:
1705
      encoding: ASCII-8BIT
1706
      string: |
1707
        {
1708
          "total": 2,
1709
          "subtotal": 2,
1710
          "page": 1,
1711
          "per_page": 20,
1712
          "search": null,
1713
          "sort": {
1714
            "by": null,
1715
            "order": null
1716
          },
1717
          "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-01 19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01 19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"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":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","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":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01 19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:38:28 UTC"},"content_host_id":6},{"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-01 19:37:05 UTC","updated_at":"2017-03-27 18:28:09 UTC","last_compile":"2016-12-01 19:37:06 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"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":6,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","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":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","last_checkin":"2016-12-01 19:37:05 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01 19:37:05 UTC"},"content_host_id":5}]
1718
        }
1719
    http_version: 
1720
  recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
1721
- request:
1722
    method: get
1723
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/environments?per_page=999999
1724
    body:
1725
      encoding: US-ASCII
1726
      string: ''
1727
    headers:
1728
      Accept:
1729
      - application/json;version=2
1730
      Accept-Encoding:
1731
      - gzip, deflate
1732
      User-Agent:
1733
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1734
      Content-Type:
1735
      - application/json
1736
      Accept-Language:
1737
      - en
1738
      Host:
1739
      - devel.example.com:50083
1740
  response:
1741
    status:
1742
      code: 200
1743
      message: OK
1744
    headers:
1745
      Date:
1746
      - Mon, 27 Mar 2017 18:36:36 GMT
1747
      Server:
1748
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1749
      X-Frame-Options:
1750
      - SAMEORIGIN
1751
      X-Xss-Protection:
1752
      - 1; mode=block
1753
      X-Content-Type-Options:
1754
      - nosniff
1755
      Foreman-Version:
1756
      - 1.11.0.54
1757
      Foreman-Api-Version:
1758
      - '2'
1759
      Apipie-Checksum:
1760
      - e1df2e8d43e22495b02a53b48e3b5298
1761
      Cache-Control:
1762
      - max-age=0, private, must-revalidate
1763
      X-Request-Id:
1764
      - 4436fcd9-5023-4cfb-9bed-3c42d2380ae9
1765
      X-Runtime:
1766
      - '0.156618'
1767
      X-Powered-By:
1768
      - Phusion Passenger 4.0.18
1769
      Etag:
1770
      - '"45596627ffb1b49933df35abb855f9e6-gzip"'
1771
      Status:
1772
      - 200 OK
1773
      Vary:
1774
      - Accept-Encoding
1775
      Content-Length:
1776
      - '3019'
1777
      Content-Type:
1778
      - application/json; charset=utf-8
1779
      Set-Cookie:
1780
      - _session_id=316f0e68644dc7e289ae9cd6d4a199ab; path=/; secure; HttpOnly
1781
    body:
1782
      encoding: ASCII-8BIT
1783
      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,
1784
        manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":3},"created_at":"2016-12-01
1785
        19:37:22 UTC","updated_at":"2016-12-01 19:37:22 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,
1786
        manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":3},"created_at":"2016-12-01
1787
        19:37:23 UTC","updated_at":"2016-12-01 19:37:23 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
1788
        Corporation","label":"testcorp","id":3},"created_at":"2016-12-01 19:35:26
1789
        UTC","updated_at":"2016-12-01 19:35: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,
1790
        automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":3},"created_at":"2016-12-01
1791
        19:37:22 UTC","updated_at":"2016-12-01 19:37:22 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,
1792
        no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":3},"created_at":"2016-12-01
1793
        19:37:23 UTC","updated_at":"2016-12-01 19:37:23 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}}]}
1794

  
1795
'
1796
    http_version: 
1797
  recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
1798
- request:
1799
    method: get
1800
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/content_views?per_page=999999
1801
    body:
1802
      encoding: US-ASCII
1803
      string: ''
1804
    headers:
1805
      Accept:
1806
      - application/json;version=2
1807
      Accept-Encoding:
1808
      - gzip, deflate
1809
      User-Agent:
1810
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1811
      Content-Type:
1812
      - application/json
1813
      Accept-Language:
1814
      - en
1815
      Host:
1816
      - devel.example.com:50083
1817
  response:
1818
    status:
1819
      code: 200
1820
      message: OK
1821
    headers:
1822
      Date:
1823
      - Mon, 27 Mar 2017 18:36:36 GMT
1824
      Server:
1825
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1826
      X-Frame-Options:
1827
      - SAMEORIGIN
1828
      X-Xss-Protection:
1829
      - 1; mode=block
1830
      X-Content-Type-Options:
1831
      - nosniff
1832
      Foreman-Version:
1833
      - 1.11.0.54
1834
      Foreman-Api-Version:
1835
      - '2'
1836
      Apipie-Checksum:
1837
      - e1df2e8d43e22495b02a53b48e3b5298
1838
      Cache-Control:
1839
      - max-age=0, private, must-revalidate
1840
      X-Request-Id:
1841
      - 4e49de78-5a77-4bdb-ac8b-e689d4bca645
1842
      X-Runtime:
1843
      - '0.098444'
1844
      X-Powered-By:
1845
      - Phusion Passenger 4.0.18
1846
      Etag:
1847
      - '"1c1265963c6c84f0c08824867548b772-gzip"'
1848
      Status:
1849
      - 200 OK
1850
      Vary:
1851
      - Accept-Encoding
1852
      Content-Length:
1853
      - '1804'
1854
      Content-Type:
1855
      - application/json; charset=utf-8
1856
      Set-Cookie:
1857
      - _session_id=05361998ba67fc8d543bb9a818ba5acf; path=/; secure; HttpOnly
1858
    body:
1859
      encoding: ASCII-8BIT
1860
      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
1861
        Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
1862
        Corporation","label":"testcorp","id":3},"created_at":"2016-12-01 19:37:07
1863
        UTC","updated_at":"2016-12-01 19:37:09 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-01
1864
        19:37:09 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-01
1865
        19:37:09 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
1866
        Organization View","label":"7c1866f5-d7d6-46be-8ff4-0e358070e3cd","description":null,"organization":{"name":"Test
1867
        Corporation","label":"testcorp","id":3},"created_at":"2016-12-01 19:35:27
1868
        UTC","updated_at":"2016-12-01 19:35:27 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":2,"version":"1.0","published":"2016-12-01
1869
        19:35:27 UTC","environment_ids":[2]}],"components":[],"activation_keys":[{"id":4,"name":"testakey"},{"id":5,"name":"testakeyitemized"}],"last_published":"2016-12-01
1870
        19:35:27 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
1871

  
1872
'
1873
    http_version: 
1874
  recorded_at: Mon, 27 Mar 2017 18:36:42 GMT
1875
- request:
1876
    method: put
1877
    uri: https://admin:changeme@devel.example.com:50083/api/hosts/6
1878
    body:
1879
      encoding: UTF-8
1880
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
1881
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null,"autoheal":true}}}'
1882
    headers:
1883
      Accept:
1884
      - application/json;version=2
1885
      Accept-Encoding:
1886
      - gzip, deflate
1887
      User-Agent:
1888
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1889
      Content-Type:
1890
      - application/json
1891
      Accept-Language:
1892
      - en
1893
      Content-Length:
1894
      - '287'
1895
      Host:
1896
      - devel.example.com:50083
1897
  response:
1898
    status:
1899
      code: 200
1900
      message: OK
1901
    headers:
1902
      Date:
1903
      - Mon, 27 Mar 2017 18:36:36 GMT
1904
      Server:
1905
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1906
      X-Frame-Options:
1907
      - SAMEORIGIN
1908
      X-Xss-Protection:
1909
      - 1; mode=block
1910
      X-Content-Type-Options:
1911
      - nosniff
1912
      Foreman-Version:
1913
      - 1.11.0.54
1914
      Foreman-Api-Version:
1915
      - '2'
1916
      Apipie-Checksum:
1917
      - e1df2e8d43e22495b02a53b48e3b5298
1918
      Cache-Control:
1919
      - max-age=0, private, must-revalidate
1920
      X-Request-Id:
1921
      - 2a43c223-7eed-4cc3-9580-e2c3894513e7
1922
      X-Runtime:
1923
      - '0.708308'
1924
      X-Powered-By:
1925
      - Phusion Passenger 4.0.18
1926
      Etag:
1927
      - '"645c7a2212b1806ef5700003b42abd8f-gzip"'
1928
      Status:
1929
      - 200 OK
1930
      Vary:
1931
      - Accept-Encoding
1932
      Content-Length:
1933
      - '3820'
1934
      Content-Type:
1935
      - application/json; charset=utf-8
1936
      Set-Cookie:
1937
      - _session_id=a769fa5a1d340f055f2ae800a8bab226; path=/; secure; HttpOnly
1938
      - request_method=PUT; path=/
1939
    body:
1940
      encoding: ASCII-8BIT
1941
      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-01
1942
        19:37:05 UTC","updated_at":"2017-03-27 18:28:09 UTC","last_compile":"2016-12-01
1943
        19:37:06 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test
1944
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
1945
        not calculate errata status, ensure host is registered and katello-agent is
1946
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":6,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","content_view_id":2,"content_view_name":"Default
1947
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
1948
        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":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","last_checkin":"2016-12-01
1949
        19:37:05 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01
1950
        19:37:05 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff80808158bbd8b50158bbe41f0e03f7","productId":"69","productName":"Red
1951
        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-01T19:37:19.374+0000","updated":"2016-12-01T19:37:19.374+0000"}]},"content_host_id":5,"parameters":[],"interfaces":[{"id":6,"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
1952
        Corporation/testvm","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-01T19:37:06+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}}'
1953
    http_version: 
1954
  recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
1955
- request:
1956
    method: get
1957
    uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc
1958
    body:
1959
      encoding: US-ASCII
1960
      string: ''
1961
    headers:
1962
      Accept-Encoding:
1963
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1964
      Accept:
1965
      - "*/*"
1966
      User-Agent:
1967
      - Ruby
1968
  response:
1969
    status:
1970
      code: 200
1971
      message: OK
1972
    headers:
1973
      Date:
1974
      - Mon, 27 Mar 2017 18:36:37 GMT
1975
      Server:
1976
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1977
      X-Frame-Options:
1978
      - SAMEORIGIN
1979
      X-Xss-Protection:
1980
      - 1; mode=block
1981
      X-Content-Type-Options:
1982
      - nosniff
1983
      Foreman-Version:
1984
      - 1.11.0.54
1985
      Foreman-Api-Version:
1986
      - '2'
1987
      X-Candlepin-Version:
1988
      - katello/3.0.0.82
1989
      Cache-Control:
1990
      - max-age=0, private, must-revalidate
1991
      X-Request-Id:
1992
      - 2cb9da32-4595-4781-9226-110c995cdfd4
1993
      X-Runtime:
1994
      - '0.115915'
1995
      X-Powered-By:
1996
      - Phusion Passenger 4.0.18
1997
      Etag:
1998
      - '"4efe3563b4ad8e5243099dd9878081de-gzip"'
1999
      Status:
2000
      - 200 OK
2001
      Vary:
2002
      - Accept-Encoding
2003
      Content-Length:
2004
      - '3312'
2005
      Content-Type:
2006
      - application/json; charset=utf-8
2007
      Set-Cookie:
2008
      - _session_id=f3c8925eee3a9a9c9fe72ff6ff0af56a; path=/; secure; HttpOnly
2009
    body:
2010
      encoding: ASCII-8BIT
2011
      string: '{"id":"ff80808158bbd8b50158bbe3e86203f1","uuid":"2b996a62-2be7-4cb6-adaa-0933a69cb9bc","name":"testvm","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
2012
        RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAkuWxxLoi8fqnmeWcN1ucQROY6XyJUq1OeJNR8U4rTL3xlqrA\n4rZhc6h1pX4cy/HN/gUQ1tNnyrxiv+Kz+jcLtC9bvDJPp2K4jpKjVy7SXlCPAi7g\n6mzhxASwSRjqPugkK7tDIcD6xvXnWJFK+5FLa93CazAEAQqzpIiXUwdbWwCj2sh0\nI4CKvbBDZZUKhyEf4q7E8oLC16T1BBxTDGLRC2rSXnIniIFRNLClYizDlYgS9FlT\nXo4emQ1bDlDgGyx5CAjQ6Tiy4CS1dq5NqjMTeHRERJ0QNXz15R/zmNPfcci4pyw4\nGCtJTy+aozqUVO3FMFId9a2WXGxlqiyvBNor7wIDAQABAoIBAHcGYmoSoCoNfSv3\nngJE2nDoXigh3mr9Pe35AJZTTkZaSZxZMvz/5ip+vwSfENo3TT+b/y7yENF2n1T3\nbfk6DOOs09nDskLgfMYZDvyfVZlSEO4l6dxI6Q2Y9vXjmDnsgxJkI1sAMLJxoUhk\nQatg6Qm3n8aWG0h00WZpvqNp/J3YxeCLgbE3l6NUrYNJCSTEVXVAL85WHFjHOuNI\niPH4I5Y4KqjWg/bUBSLlBR6xRt2IO2bq7N8OmAoeXlvMf9eG47yLuCShf3qIAUwO\nrm5JdEnnf921EI79RlBmRcHKBfPWQlTRl2HknZQT5xXLU+7woVTwb+dPpxZPlbeZ\nBVLxEbECgYEA0ByMbkJ0TGv0YhV4L3jH7bSL+UmmcBmTTlNWfZlGXmJXq8fJ0oGH\nNMycKMDLh6KTu6zq2pL4fHqLxp1Li3tMGSIhP4pycxajNswS4eUrRVQQBmaviXFM\neYrr3Kem2/WipzfjPxwdVLdP2aCtV0EDu2JX85xi4attzyYJ3ABUnJUCgYEAtLMh\nS3D8AKLW4f9odIQnm2dGar9ExQ+t6vFHg+MWBNkXnsxCqjdF4GauY7ehmHBrDmGd\n/N53PKobrsqx/QdIDoEo6DtQQvzyi8T1VB+MaAxJvMbBCaxRKk1RtWLG3pEtLtZJ\n++iWcpbYSRsRobo7oEblesquiQsEVZeSBNs+QXMCgYB/hi7rVZ9sQO60t9E4zbs9\nRthK/r2VjaZ9ZYXnWugK6Bou8jMS4jpWuVarhlBxoccDRtd27n6D0JgcMcDcDMa5\n0/cpt42gRmvnJTAg6kwUpIlZUs0X3KxvAhi70qPlv2RXMWD4CCNVCStOAS6W/Ajs\nZzvb1KWnAWQ9fmKmRDGU7QKBgQCQgXgs1qwQ7iieDxy/oTfzZUHA+DjMxt80tcOV\nSzM+qUXkbkEZ0p4E+NiZUi7es3hJxfMMV/RPBVKiE+MHEJ2lS9Ek9toW2CY3dEkk\n/x3Pz5PgbanOTImUJMUlI1safkr928zKsZQvC0boH8eX6FDqugemjRPK8I6EzHOv\ngo1k1QKBgEwGcGNxZdQ/GLaU9+GgsYSJhZmDuPlL6g3Yd/FWPSPHRWHvtZR4o9Jx\nzpW3RG/vvx7c+H3V4J2t30qUMyJvl4PDBxyRW6taiaz/qOZ1mgrUfT2laEgOwAsY\nCqOuN+AmJTUPSU/vkwU1UrBKY9qlAypF/99v+xSvU7mjs6xLbjIz\n-----END
2013
        RSA PRIVATE KEY-----\n","cert":"-----BEGIN CERTIFICATE-----\nMIIETzCCAzegAwIBAgIIbWwOMYTADFgwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UE\nBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHEwdSYWxlaWdo\nMRAwDgYDVQQKEwdLYXRlbGxvMRQwEgYDVQQLEwtTb21lT3JnVW5pdDEaMBgGA1UE\nAxMRc2F0NjIuZXhhbXBsZS5jb20wHhcNMTYxMjAxMTkzNzA1WhcNMzIxMjAxMTkz\nNzA1WjAvMS0wKwYDVQQDEyQyYjk5NmE2Mi0yYmU3LTRjYjYtYWRhYS0wOTMzYTY5\nY2I5YmMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCS5bHEuiLx+qeZ\n5Zw3W5xBE5jpfIlSrU54k1HxTitMvfGWqsDitmFzqHWlfhzL8c3+BRDW02fKvGK/\n4rP6Nwu0L1u8Mk+nYriOkqNXLtJeUI8CLuDqbOHEBLBJGOo+6CQru0MhwPrG9edY\nkUr7kUtr3cJrMAQBCrOkiJdTB1tbAKPayHQjgIq9sENllQqHIR/irsTygsLXpPUE\nHFMMYtELatJecieIgVE0sKViLMOViBL0WVNejh6ZDVsOUOAbLHkICNDpOLLgJLV2\nrk2qMxN4dEREnRA1fPXlH/OY099xyLinLDgYK0lPL5qjOpRU7cUwUh31rZZcbGWq\nLK8E2ivvAgMBAAGjggEgMIIBHDARBglghkgBhvhCAQEEBAMCBaAwCwYDVR0PBAQD\nAgSwMIGvBgNVHSMEgacwgaSAFE0a7C+GbR8izagxm3Zq6NJUOCLhoYGApH4wfDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHEwdS\nYWxlaWdoMRAwDgYDVQQKEwdLYXRlbGxvMRQwEgYDVQQLEwtTb21lT3JnVW5pdDEa\nMBgGA1UEAxMRc2F0NjIuZXhhbXBsZS5jb22CCQCOJqql+xfH2TAdBgNVHQ4EFgQU\njqyrKIP2FScbRy8M3fy9mEQ7HuQwEwYDVR0lBAwwCgYIKwYBBQUHAwIwFAYDVR0R\nBA0wC4YJQ049dGVzdHZtMA0GCSqGSIb3DQEBBQUAA4IBAQAW+N4rmGhcM0l+Fv/K\ndHAMjCNyT71omzrv3DPfVmEntMMMOH9yhLw6skJ0hkovUNzyuIOA6Azg7hok6JwO\ngXH/yHfr8roZqSaJSWTcMv3kspKMjyM8Ss0u2u3Vq+RwUvp29lXmwmti1AvcdAn7\n2zz6eDTytfvGzLqAayKZhDXQiQH1/Ruds8hNS/RxG0mCAjyCuyVnzipCUy29jauj\nab+uzhP4lPy3MX3B7Q442mNwU3rI0Jd8JMbb7bkEr5CGT35Rka2j5vNRX5bK+9vb\nerYsGpjlwK0W0Y/QkWhmsKdB7nKg2xO+FBl03/693FjxNJSHB5R4pBJRyQHuDAZ7\nu2Sc\n-----END
2014
        CERTIFICATE-----\n","id":"ff80808158bbd8b50158bbe3e94803f4","serial":{"id":7884692653462260824,"revoked":false,"collected":false,"expiration":"2032-12-01T19:37:05.381+0000","serial":7884692653462260824,"created":"2016-12-01T19:37:05.381+0000","updated":"2016-12-01T19:37:05.381+0000"},"created":"2016-12-01T19:37:05.608+0000","updated":"2016-12-01T19:37:05.608+0000"},"type":{"id":"1000","label":"system","manifest":false},"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
2015
        Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
2016
        Corporation","href":"/owners/testcorp"},"name":"Library","description":null,"id":"2","environmentContent":[{"id":"ff8080815adcc9a9015b110dba7b0e0d","contentId":"1490639748543","enabled":null,"created":"2017-03-27T18:36:04.091+0000","updated":"2017-03-27T18:36:04.091+0000"}],"created":"2016-12-01T19:35:27.852+0000","updated":"2016-12-01T19:35:27.852+0000"},"entitlementCount":1,"facts":{"virt.uuid":"Test
2017
        Corporation/testvm","network.hostname":"testvm","distribution.name":"RHEL","distribution.version":"7Server","system.certificate_version":"3.2","_timestamp":"2016-12-01T19:37:05+00:00","uname.machine":"x86_64","cpu.cpu_socket(s)":"4","memory.memtotal":"4GB","cpu.core(s)_per_socket":"1","cpu.cpu(s)":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"ff80808158bbd8b50158bbe41f0e03f7","productId":"69","productName":"Red
2018
        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-01T19:37:19.374+0000","updated":"2016-12-01T19:37:19.374+0000"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc","created":"2016-12-01T19:37:05.378+0000","updated":"2017-03-27T18:36:37.186+0000"}'
2019
    http_version: 
2020
  recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
2021
- request:
2022
    method: put
2023
    uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/2b996a62-2be7-4cb6-adaa-0933a69cb9bc
2024
    body:
2025
      encoding: UTF-8
2026
      string: '{"facts":{"virt.uuid":"Test Corporation/testvm","network.hostname":"testvm","distribution.name":"RHEL","distribution.version":"7Server","system.certificate_version":"3.2","_timestamp":"2016-12-01T19:37:05+00:00","uname.machine":"x86_64","cpu.cpu_socket(s)":"4","memory.memtotal":"4GB","cpu.core(s)_per_socket":"1","cpu.cpu(s)":"1","virt.is_guest":true}}'
2027
    headers:
2028
      Content-Type:
2029
      - application/json
2030
      Accept-Encoding:
2031
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2032
      Accept:
2033
      - "*/*"
2034
      User-Agent:
2035
      - Ruby
2036
  response:
2037
    status:
2038
      code: 403
2039
      message: Forbidden
2040
    headers:
2041
      Date:
2042
      - Mon, 27 Mar 2017 18:36:37 GMT
2043
      Server:
2044
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2045
      X-Frame-Options:
2046
      - SAMEORIGIN
2047
      X-Xss-Protection:
2048
      - 1; mode=block
2049
      X-Content-Type-Options:
2050
      - nosniff
2051
      Foreman-Version:
2052
      - 1.11.0.54
2053
      Foreman-Api-Version:
2054
      - '2'
2055
      Cache-Control:
2056
      - no-cache
2057
      X-Request-Id:
2058
      - 9641c5ab-f81b-4d17-b6a8-c1ca9d4e9c8b
2059
      X-Runtime:
2060
      - '0.015887'
2061
      X-Powered-By:
2062
      - Phusion Passenger 4.0.18
2063
      Status:
2064
      - 403 Forbidden
2065
      Content-Type:
2066
      - application/json; charset=utf-8
2067
      Set-Cookie:
2068
      - _session_id=9787154fe7b316ce7f3617244f2ff598; path=/; secure; HttpOnly
2069
      - request_method=PUT; path=/
2070
      Transfer-Encoding:
2071
      - chunked
2072
    body:
2073
      encoding: UTF-8
2074
      string: '{"displayMessage":"Access denied","errors":["Access denied"]}'
2075
    http_version: 
2076
  recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
2077
- request:
2078
    method: get
2079
    uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions?full_results=true
2080
    body:
2081
      encoding: US-ASCII
2082
      string: ''
2083
    headers:
2084
      Accept:
2085
      - application/json;version=2
2086
      Accept-Encoding:
2087
      - gzip, deflate
2088
      User-Agent:
2089
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
2090
      Content-Type:
2091
      - application/json
2092
      Accept-Language:
2093
      - en
2094
      Host:
2095
      - devel.example.com:50083
2096
  response:
2097
    status:
2098
      code: 200
2099
      message: OK
2100
    headers:
2101
      Date:
2102
      - Mon, 27 Mar 2017 18:36:37 GMT
2103
      Server:
2104
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2105
      X-Frame-Options:
2106
      - SAMEORIGIN
2107
      X-Xss-Protection:
2108
      - 1; mode=block
2109
      X-Content-Type-Options:
2110
      - nosniff
2111
      Foreman-Version:
2112
      - 1.11.0.54
2113
      Foreman-Api-Version:
2114
      - '2'
2115
      Apipie-Checksum:
2116
      - e1df2e8d43e22495b02a53b48e3b5298
2117
      Cache-Control:
2118
      - max-age=0, private, must-revalidate
2119
      X-Request-Id:
2120
      - f57ef53b-dc74-432b-8ddc-86ef268c6caf
2121
      X-Runtime:
2122
      - '0.238194'
2123
      X-Powered-By:
2124
      - Phusion Passenger 4.0.18
2125
      Etag:
2126
      - '"432a2ddf33f52f81d9755d5ede670c43-gzip"'
2127
      Status:
2128
      - 200 OK
2129
      Vary:
2130
      - Accept-Encoding
2131
      Content-Length:
2132
      - '770'
2133
      Content-Type:
2134
      - application/json; charset=utf-8
2135
      Set-Cookie:
2136
      - _session_id=265d11e7612e6602a1303b92a3dcdf2f; path=/; secure; HttpOnly
2137
    body:
2138
      encoding: ASCII-8BIT
2139
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
2140
        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
2141
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
2142

  
2143
'
2144
    http_version: 
2145
  recorded_at: Mon, 27 Mar 2017 18:36:43 GMT
2146
- request:
2147
    method: put
2148
    uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions/remove_subscriptions
2149
    body:
2150
      encoding: UTF-8
2151
      string: '{"subscriptions":[{"id":19,"quantity":1}]}'
2152
    headers:
2153
      Accept:
2154
      - application/json;version=2
2155
      Accept-Encoding:
2156
      - gzip, deflate
2157
      User-Agent:
2158
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
2159
      Content-Type:
2160
      - application/json
2161
      Accept-Language:
2162
      - en
2163
      Content-Length:
2164
      - '42'
2165
      Host:
2166
      - devel.example.com:50083
2167
  response:
2168
    status:
2169
      code: 200
2170
      message: OK
2171
    headers:
2172
      Date:
2173
      - Mon, 27 Mar 2017 18:36:37 GMT
2174
      Server:
2175
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2176
      X-Frame-Options:
2177
      - SAMEORIGIN
2178
      X-Xss-Protection:
2179
      - 1; mode=block
2180
      X-Content-Type-Options:
2181
      - nosniff
2182
      Foreman-Version:
2183
      - 1.11.0.54
2184
      Foreman-Api-Version:
2185
      - '2'
2186
      Apipie-Checksum:
2187
      - e1df2e8d43e22495b02a53b48e3b5298
2188
      Cache-Control:
2189
      - max-age=0, private, must-revalidate
2190
      X-Request-Id:
2191
      - bf07fc28-7ae2-43ea-9972-1aae4df85a89
2192
      X-Runtime:
2193
      - '1.034431'
2194
      X-Powered-By:
2195
      - Phusion Passenger 4.0.18
2196
      Etag:
2197
      - '"720194006e41895278a533fbe0ce2628-gzip"'
2198
      Status:
2199
      - 200 OK
2200
      Vary:
2201
      - Accept-Encoding
2202
      Content-Length:
2203
      - '770'
2204
      Content-Type:
2205
      - application/json; charset=utf-8
2206
      Set-Cookie:
2207
      - _session_id=79f14dea7a8e85773c5ff56f1dbf4b5c; path=/; secure; HttpOnly
2208
      - request_method=PUT; path=/
2209
    body:
2210
      encoding: ASCII-8BIT
2211
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
2212
        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
2213
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
2214

  
2215
'
2216
    http_version: 
2217
  recorded_at: Mon, 27 Mar 2017 18:36:44 GMT
2218
- request:
2219
    method: get
2220
    uri: https://admin:changeme@devel.example.com:50083/katello/api/organizations/3/subscriptions?full_results=true
2221
    body:
2222
      encoding: US-ASCII
2223
      string: ''
2224
    headers:
2225
      Accept:
2226
      - application/json;version=2
2227
      Accept-Encoding:
2228
      - gzip, deflate
2229
      User-Agent:
2230
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
2231
      Content-Type:
2232
      - application/json
2233
      Accept-Language:
2234
      - en
2235
      Host:
2236
      - devel.example.com:50083
2237
  response:
2238
    status:
2239
      code: 200
2240
      message: OK
2241
    headers:
2242
      Date:
2243
      - Mon, 27 Mar 2017 18:36:38 GMT
2244
      Server:
2245
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2246
      X-Frame-Options:
2247
      - SAMEORIGIN
2248
      X-Xss-Protection:
2249
      - 1; mode=block
2250
      X-Content-Type-Options:
2251
      - nosniff
2252
      Foreman-Version:
2253
      - 1.11.0.54
2254
      Foreman-Api-Version:
2255
      - '2'
2256
      Apipie-Checksum:
2257
      - e1df2e8d43e22495b02a53b48e3b5298
2258
      Cache-Control:
2259
      - max-age=0, private, must-revalidate
2260
      X-Request-Id:
2261
      - 049ca970-dbc1-4ab0-b70c-03bb387fe7e9
2262
      X-Runtime:
2263
      - '0.662522'
2264
      X-Powered-By:
2265
      - Phusion Passenger 4.0.18
2266
      Etag:
2267
      - '"e1ffeb35e3e2d3cd6c34d126d038cecb-gzip"'
2268
      Status:
2269
      - 200 OK
2270
      Vary:
2271
      - Accept-Encoding
2272
      Content-Length:
2273
      - '1972'
2274
      Content-Type:
2275
      - application/json; charset=utf-8
2276
      Set-Cookie:
2277
      - _session_id=bb82f2e4cae86e706a66c6e6614d1cdb; path=/; secure; HttpOnly
2278
    body:
2279
      encoding: ASCII-8BIT
2280
      string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808158bbd8b50158bbe4a4a204a3","subscription_id":13,"name":"Red
2281
        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
2282
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false},{"id":20,"cp_id":"ff80808158bbd8b50158bbe4a4cb04c6","subscription_id":14,"name":"Red
2283
        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
2284
        Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":22,"cp_id":"ff80808158bbd8b50158bbe4a5020524","subscription_id":15,"name":"Red
2285
        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
2286
        Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false}]}
2287

  
2288
'
2289
    http_version: 
2290
  recorded_at: Mon, 27 Mar 2017 18:36:45 GMT
2291
- request:
2292
    method: put
2293
    uri: https://admin:changeme@devel.example.com:50083/api/hosts/6/subscriptions/add_subscriptions
2294
    body:
2295
      encoding: UTF-8
2296
      string: '{"subscriptions":[{"id":19,"quantity":0}]}'
2297
    headers:
2298
      Accept:
2299
      - application/json;version=2
2300
      Accept-Encoding:
2301
      - gzip, deflate
2302
      User-Agent:
2303
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
2304
      Content-Type:
2305
      - application/json
2306
      Accept-Language:
2307
      - en
2308
      Content-Length:
2309
      - '42'
2310
      Host:
2311
      - devel.example.com:50083
2312
  response:
2313
    status:
2314
      code: 200
2315
      message: OK
2316
    headers:
2317
      Date:
2318
      - Mon, 27 Mar 2017 18:36:39 GMT
2319
      Server:
2320
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2321
      X-Frame-Options:
2322
      - SAMEORIGIN
2323
      X-Xss-Protection:
2324
      - 1; mode=block
2325
      X-Content-Type-Options:
2326
      - nosniff
2327
      Foreman-Version:
2328
      - 1.11.0.54
2329
      Foreman-Api-Version:
2330
      - '2'
2331
      Apipie-Checksum:
2332
      - e1df2e8d43e22495b02a53b48e3b5298
2333
      Cache-Control:
2334
      - max-age=0, private, must-revalidate
2335
      X-Request-Id:
2336
      - 45f77e95-8937-4b51-a60f-a39d133c58f1
2337
      X-Runtime:
2338
      - '1.457457'
2339
      X-Powered-By:
2340
      - Phusion Passenger 4.0.18
2341
      Etag:
2342
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
2343
      Status:
2344
      - 200 OK
2345
      Vary:
2346
      - Accept-Encoding
2347
      Content-Length:
2348
      - '119'
2349
      Content-Type:
2350
      - application/json; charset=utf-8
2351
      Set-Cookie:
2352
      - _session_id=ba38252f907d4fd64ce0a175adb0163f; path=/; secure; HttpOnly
2353
      - request_method=PUT; path=/
2354
    body:
2355
      encoding: ASCII-8BIT
2356
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
2357

  
2358
'
2359
    http_version: 
2360
  recorded_at: Mon, 27 Mar 2017 18:36:47 GMT
2361
- request:
2362
    method: put
2363
    uri: https://admin:changeme@devel.example.com:50083/api/hosts/7
2364
    body:
2365
      encoding: UTF-8
2366
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
2367
        Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null,"autoheal":true}}}'
2368
    headers:
2369
      Accept:
2370
      - application/json;version=2
2371
      Accept-Encoding:
2372
      - gzip, deflate
2373
      User-Agent:
2374
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
2375
      Content-Type:
2376
      - application/json
2377
      Accept-Language:
2378
      - en
2379
      Content-Length:
2380
      - '287'
2381
      Host:
2382
      - devel.example.com:50083
2383
  response:
2384
    status:
2385
      code: 200
2386
      message: OK
2387
    headers:
2388
      Date:
2389
      - Mon, 27 Mar 2017 18:36:40 GMT
2390
      Server:
2391
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2392
      X-Frame-Options:
2393
      - SAMEORIGIN
2394
      X-Xss-Protection:
2395
      - 1; mode=block
2396
      X-Content-Type-Options:
2397
      - nosniff
2398
      Foreman-Version:
2399
      - 1.11.0.54
2400
      Foreman-Api-Version:
2401
      - '2'
2402
      Apipie-Checksum:
2403
      - e1df2e8d43e22495b02a53b48e3b5298
2404
      Cache-Control:
2405
      - max-age=0, private, must-revalidate
2406
      X-Request-Id:
2407
      - 565179ca-7f37-4a84-bf5f-f5c5b848f029
2408
      X-Runtime:
2409
      - '1.105027'
2410
      X-Powered-By:
2411
      - Phusion Passenger 4.0.18
2412
      Etag:
2413
      - '"f06552997466e07602f8d7e5d026e2db-gzip"'
2414
      Status:
2415
      - 200 OK
2416
      Vary:
2417
      - Accept-Encoding
2418
      Content-Length:
2419
      - '3850'
2420
      Content-Type:
2421
      - application/json; charset=utf-8
2422
      Set-Cookie:
2423
      - _session_id=7fd12a6fda65b12ed7eee98b946f25e4; path=/; secure; HttpOnly
2424
      - request_method=PUT; path=/
2425
    body:
2426
      encoding: ASCII-8BIT
2427
      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-01
2428
        19:38:28 UTC","updated_at":"2017-03-27 18:21:56 UTC","last_compile":"2016-12-01
2429
        19:38:30 UTC","global_status":0,"global_status_label":"Warning","organization_id":3,"organization_name":"Test
2430
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
2431
        not calculate errata status, ensure host is registered and katello-agent is
2432
        installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":7,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","content_view_id":2,"content_view_name":"Default
2433
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
2434
        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":6,"uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","last_checkin":"2016-12-01
2435
        19:38:28 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-01
2436
        19:38:28 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff80808158bbd8b50158bbe53a530599","productId":"69","productName":"Red
2437
        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-01T19:38:31.891+0000","updated":"2016-12-01T19:38:31.891+0000"}]},"content_host_id":6,"parameters":[],"interfaces":[{"id":7,"name":"testphysical","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":"testphysical","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
2438
        Corporation/testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-01T19:38:30+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}}'
2439
    http_version: 
2440
  recorded_at: Mon, 27 Mar 2017 18:36:48 GMT
2441
- request:
2442
    method: get
2443
    uri: https://admin:changeme@devel.example.com:50083/rhsm/consumers/22955fb7-7b12-4db8-83be-6443ba725d77
2444
    body:
2445
      encoding: US-ASCII
2446
      string: ''
2447
    headers:
2448
      Accept-Encoding:
2449
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2450
      Accept:
2451
      - "*/*"
2452
      User-Agent:
2453
      - Ruby
2454
  response:
2455
    status:
2456
      code: 200
2457
      message: OK
2458
    headers:
2459
      Date:
2460
      - Mon, 27 Mar 2017 18:36:42 GMT
2461
      Server:
2462
      - Apache/2.4.6 (Red Hat Enterprise Linux)
2463
      X-Frame-Options:
2464
      - SAMEORIGIN
2465
      X-Xss-Protection:
2466
      - 1; mode=block
2467
      X-Content-Type-Options:
2468
      - nosniff
2469
      Foreman-Version:
2470
      - 1.11.0.54
2471
      Foreman-Api-Version:
2472
      - '2'
2473
      X-Candlepin-Version:
2474
      - katello/3.0.0.82
2475
      Cache-Control:
2476
      - max-age=0, private, must-revalidate
2477
      X-Request-Id:
2478
      - 8a0508c2-ed48-4177-9449-32445a8940f3
2479
      X-Runtime:
2480
      - '0.103003'
2481
      X-Powered-By:
2482
      - Phusion Passenger 4.0.18
2483
      Etag:
2484
      - '"8a61317cc30599121b89abb880ffdeb5-gzip"'
2485
      Status:
2486
      - 200 OK
2487
      Vary:
2488
      - Accept-Encoding
2489
      Content-Length:
2490
      - '3324'
2491
      Content-Type:
2492
      - application/json; charset=utf-8
2493
      Set-Cookie:
2494
      - _session_id=25f6f6110ff8027d893ddc49eabf610b; path=/; secure; HttpOnly
2495
    body:
2496
      encoding: ASCII-8BIT
2497
      string: '{"id":"ff80808158bbd8b50158bbe52eeb058f","uuid":"22955fb7-7b12-4db8-83be-6443ba725d77","name":"testphysical","username":"foreman_admin","entitlementStatus":"valid","serviceLevel":"","releaseVer":{"releaseVer":null},"idCert":{"key":"-----BEGIN
2498
        RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA7uT3AuhqlVhFUK6MGJqXphisivdCv9kpjHmOhxKG0ozMihfF\nfVDD/+xviVPGB72teN9T3d7qfaX/1qElUSyaMcJ4HvZYHiP2l8pxCTEN4gJRZyIB\naPYKSCvPyHJq5gRuzvcUcGIXOljHjX0iqbD1FRvlNysp13b7RuodeNHafPkO99DV\nsAdqxfe3buNR7gzoxCiekyQW2RUqfKeuqPEISM6TuUgeDKzX4MVsRHpaJ/Z1QCFZ\nWQSPHvQypn4U4qLZFku5JnKE39BTki6mdlceB2QyE5YB0hRlg8odNSq5b+I/gQ3T\niMe6GctP0tOze6xTkKA797H327/eSGoX6XrocQIDAQABAoIBADqmqCZknVZRN6NZ\nVzfrLHQw9pufnRmw3UyJw35SBBvJSaZVs7zSiWxZxgB3OtVHskFMwzBjvDpg+PDe\n22SUiL7Sud8QKA4uUipuH1ZcXsYwP4AMj0APt/KEHx1dSfVy/Sl+69uzmXRPu553\nLH1w3pryIFJtHHaz1XlRnS6+ht/LZHvPsWUnDwVPVdxEKISSthK4kiVqaEpwW8bG\nVYG/3GuxCn1f6tGnJi/1/u92oz8i8b/LhvHDVWiY224L/sNKTLZhuci1IhExOeEX\nDZWLdK26aBQ8GGr7pfZL2eHpi/LrSj85dcw73uR6IXZnJpwcZTViN9w67Zs8RDSd\nxO1gzckCgYEA+Yk61my1eGjsJ/AS0UaIleOJsl4v6AEGh20yi1Cuq8lYmLZQ+nVE\nW3NYAfesoJ4+5n9wK8Rp2CoFnkWWWp6eOMkmVOOJRf7XUn7o5JruUR4B7oBrClce\nbXp0hE2mjDV/8Jzm1QDsNA2dvueMCY5HBllOZmJJqOOEhayEkxTQzNsCgYEA9RUq\nhLTyGV7CAOlqHzTxE+GAZH2PgYiGsbY6zkEKOfKIwISZAmiyBuUSTCRt9swHag0j\nPp2zY55f5M7CrNEYc1v3udI35RMiQk2mMiz7XUvqjnCDEZaUlOIR+Yxr/rLGZgRT\n+Q/2E4Sq+UBsVlhkzaYxc9qrU3xSpeNd79OWO6MCgYAgPwiYbwHgZoal/pMf8iJy\nZC4GG7/LFl7Wn1jZwfpgfqtxSJYcV40W2Ef2MSBgvTJZrPw826vl4EBLnKh6W2cM\n5YmLjL/PiMggg//qks7bMqqDPJsYgfuPoDRwaGxuT/eRi2UU/4KGk3/gDKH/FiC9\nhErqVic4qPYWJB4Zt6Xn4wKBgD5MUhGHuV6vkpsOujYSjBFkqfFhZWAk5zA3RT12\nlPXj69UcH5TYLiDIi90lCXrJpDzV+BaLmbUB5hhQYnXxdMimIRNwF1s4gOXfvRZW\nDtNJX+czPG31G/G4gZ8wjachpIL8KKhP4VpWx+sx8BgGwiDwVPPBKvm+yXd3k0JK\nQ48HAoGBAL7K12l8/Gmx95n0HeLzKapWjhJIuZ5+gzHf5ZobptHpNmQAGoekp9IN\nfwHuLNHzYVgnJvsv4QohNDfjxUBA6TnJwBzmHgpLeqtUfQ8pajymS8JYGBXeCc4i\ngporU1Pfp8vAqgcWtHZAPpx0XEoUwAWpBPozzGuq3rH3rBXsSgFp\n-----END
2499
        RSA PRIVATE KEY-----\n","cert":"-----BEGIN CERTIFICATE-----\nMIIEVTCCAz2gAwIBAgIIB+XvaZU5POwwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UE\nBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHEwdSYWxlaWdo\nMRAwDgYDVQQKEwdLYXRlbGxvMRQwEgYDVQQLEwtTb21lT3JnVW5pdDEaMBgGA1UE\nAxMRc2F0NjIuZXhhbXBsZS5jb20wHhcNMTYxMjAxMTkzODI4WhcNMzIxMjAxMTkz\nODI4WjAvMS0wKwYDVQQDEyQyMjk1NWZiNy03YjEyLTRkYjgtODNiZS02NDQzYmE3\nMjVkNzcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDu5PcC6GqVWEVQ\nrowYmpemGKyK90K/2SmMeY6HEobSjMyKF8V9UMP/7G+JU8YHva1431Pd3up9pf/W\noSVRLJoxwnge9lgeI/aXynEJMQ3iAlFnIgFo9gpIK8/IcmrmBG7O9xRwYhc6WMeN\nfSKpsPUVG+U3KynXdvtG6h140dp8+Q730NWwB2rF97du41HuDOjEKJ6TJBbZFSp8\np66o8QhIzpO5SB4MrNfgxWxEelon9nVAIVlZBI8e9DKmfhTiotkWS7kmcoTf0FOS\nLqZ2Vx4HZDITlgHSFGWDyh01Krlv4j+BDdOIx7oZy0/S07N7rFOQoDv3sffbv95I\nahfpeuhxAgMBAAGjggEmMIIBIjARBglghkgBhvhCAQEEBAMCBaAwCwYDVR0PBAQD\nAgSwMIGvBgNVHSMEgacwgaSAFE0a7C+GbR8izagxm3Zq6NJUOCLhoYGApH4wfDEL\nMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRAwDgYDVQQHEwdS\nYWxlaWdoMRAwDgYDVQQKEwdLYXRlbGxvMRQwEgYDVQQLEwtTb21lT3JnVW5pdDEa\nMBgGA1UEAxMRc2F0NjIuZXhhbXBsZS5jb22CCQCOJqql+xfH2TAdBgNVHQ4EFgQU\n8cuzDFqNy7j6CxsUoveA5HvsC6gwEwYDVR0lBAwwCgYIKwYBBQUHAwIwGgYDVR0R\nBBMwEYYPQ049dGVzdHBoeXNpY2FsMA0GCSqGSIb3DQEBBQUAA4IBAQCvdM04WpUc\nCdoCZp+mCgybekhRr65BsDpZrv96/rRRJOcJ0QtvqbBEKTMvEaJqDHpoA9eYRj5o\njZPzVJsJWeyCujPJ30SwB8tXqVNpdGBSDrOlgcpMSu9+l31N74hFM2UBzwER2tqS\nxfms7O/nXPhADsBBIu/nC5avLISRpoM+RLfZPttoNCnDDNd2jOZIBPXyMmvc1rh8\njnr7ENfeFnPGtpsB33oCKePe1GdAqcWdl1LRlpFAihPBBQqA2xkGKNnBIbjTvAAr\nfS0XMc8S6tbbYstj2PYpSfAvltStsVOl1sFBasTN89h1wKfnB6Y5P/FkyQYamvSS\nvN+Df4/SYVHY\n-----END
2500
        CERTIFICATE-----\n","id":"ff80808158bbd8b50158bbe530060592","serial":{"id":569124164686396652,"revoked":false,"collected":false,"expiration":"2032-12-01T19:38:28.974+0000","serial":569124164686396652,"created":"2016-12-01T19:38:28.974+0000","updated":"2016-12-01T19:38:28.974+0000"},"created":"2016-12-01T19:38:29.254+0000","updated":"2016-12-01T19:38:29.254+0000"},"type":{"id":"1000","label":"system","manifest":false},"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
2501
        Corporation","href":"/owners/testcorp"},"environment":{"owner":{"id":"ff80808158bbd8b50158bbe26aef03c2","key":"testcorp","displayName":"Test
2502
        Corporation","href":"/owners/testcorp"},"name":"Library","description":null,"id":"2","environmentContent":[{"id":"ff8080815adcc9a9015b110dba7b0e0d","contentId":"1490639748543","enabled":null,"created":"2017-03-27T18:36:04.091+0000","updated":"2017-03-27T18:36:04.091+0000"}],"created":"2016-12-01T19:35:27.852+0000","updated":"2016-12-01T19:35:27.852+0000"},"entitlementCount":1,"facts":{"virt.uuid":"Test
2503
        Corporation/testphysical","network.hostname":"testphysical","distribution.name":"RHEL","distribution.version":"7Server","system.certificate_version":"3.2","_timestamp":"2016-12-01T19:38:28+00:00","uname.machine":"x86_64","cpu.cpu_socket(s)":"8","memory.memtotal":"4GB","cpu.core(s)_per_socket":"1","cpu.cpu(s)":"1","virt.is_guest":"true"},"lastCheckin":null,"installedProducts":[{"id":"ff80808158bbd8b50158bbe53a530599","productId":"69","productName":"Red
2504
        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-01T19:38:31.891+0000","updated":"2016-12-01T19:38:31.891+0000"}],"canActivate":false,"guestIds":[],"capabilities":[],"hypervisorId":null,"contentTags":[],"autoheal":true,"dev":false,"href":"/consumers/22955fb7-7b12-4db8-83be-6443ba725d77","created":"2016-12-01T19:38:28.971+0000","updated":"2017-03-27T18:36:41.832+0000"}'
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff