Project

General

Profile

Revision 1327c177

Added by Thomas McKay about 6 years ago

vcr - full recording

View differences:

test/fixtures/vcr_cassettes/resources/activation_keys/itemized_create_and_update.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
5
    uri: https://admin:changeme@satlap.example.com/api/status
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
9 9
    headers:
10
      Accept:
11
      - application/json;version=2
12 10
      Accept-Encoding:
13
      - gzip, deflate
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
      Accept:
13
      - "*/*"
14 14
      User-Agent:
15
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
16
      Content-Type:
17
      - application/json
18
      Accept-Language:
19
      - en
15
      - Ruby
20 16
      Host:
21
      - centos7-devel.example.com:3000
17
      - satlap.example.com
22 18
  response:
23 19
    status:
24 20
      code: 200
25 21
      message: OK
26 22
    headers:
27
      Foreman-Version:
28
      - 1.14.0-develop
29
      Foreman-Api-Version:
30
      - '2'
31
      Content-Type:
32
      - application/json; charset=utf-8
33
      Apipie-Checksum:
34
      - 67b6ae03f44dcb873f2946f865ddf69f
35
      Etag:
36
      - W/"ce7f7e88c2b7bb9d68f638c5ec5aa133"
37
      Cache-Control:
38
      - max-age=0, private, must-revalidate
39
      Set-Cookie:
40
      - _session_id=3c6f8aec006a228a8fe8a43c9f01d383; path=/; HttpOnly
41
      X-Request-Id:
42
      - ce554575-c679-443f-a0d2-1d9b4fde0637
43
      X-Runtime:
44
      - '1.093333'
45
      Content-Security-Policy:
46
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
47
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
48
        ''self''; style-src ''unsafe-inline'' ''self'''
49
      X-Content-Type-Options:
50
      - nosniff
51
      X-Download-Options:
52
      - noopen
23
      Date:
24
      - Tue, 13 Dec 2016 14:46:17 GMT
25
      Server:
26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
53 27
      X-Frame-Options:
54
      - sameorigin
55
      X-Permitted-Cross-Domain-Policies:
56
      - none
28
      - SAMEORIGIN
57 29
      X-Xss-Protection:
58 30
      - 1; mode=block
59
      Transfer-Encoding:
60
      - chunked
61
    body:
62
      encoding: UTF-8
63
      string: |
64
        {
65
          "total": 3,
66
          "subtotal": 1,
67
          "page": 1,
68
          "per_page": 999999,
69
          "search": "name=\"Default Organization\"",
70
          "sort": {
71
            "by": null,
72
            "order": null
73
          },
74
          "results": [{"label":"Default_Organization","created_at":"2016-09-28 21:34:07 UTC","updated_at":"2016-09-28 21:34:07 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
75
        }
76
    http_version: 
77
  recorded_at: Tue, 25 Oct 2016 17:40:27 GMT
78
- request:
79
    method: get
80
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/activation_keys?per_page=999999
81
    body:
82
      encoding: US-ASCII
83
      string: ''
84
    headers:
85
      Accept:
86
      - application/json;version=2
87
      Accept-Encoding:
88
      - gzip, deflate
89
      User-Agent:
90
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
91
      Content-Type:
92
      - application/json
93
      Accept-Language:
94
      - en
95
      Host:
96
      - centos7-devel.example.com:3000
97
  response:
98
    status:
99
      code: 200
100
      message: OK
101
    headers:
31
      X-Content-Type-Options:
32
      - nosniff
102 33
      Foreman-Version:
103
      - 1.14.0-develop
34
      - 1.11.0.54
104 35
      Foreman-Api-Version:
105 36
      - '2'
106
      Content-Type:
107
      - application/json; charset=utf-8
108 37
      Apipie-Checksum:
109
      - 67b6ae03f44dcb873f2946f865ddf69f
110
      Etag:
111
      - W/"cf6aca840b9b1f254593a519168a654c"
38
      - e1df2e8d43e22495b02a53b48e3b5298
112 39
      Cache-Control:
113 40
      - max-age=0, private, must-revalidate
114
      Set-Cookie:
115
      - _session_id=597da9c558cf08437daf6ac3a78c01d5; path=/; HttpOnly
116 41
      X-Request-Id:
117
      - b6cfba3f-fb58-4945-b00e-fb3774f31280
42
      - 3c8997c8-5261-439b-94a7-c876a4e32e10
118 43
      X-Runtime:
119
      - '0.351724'
120
      Content-Security-Policy:
121
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
122
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
123
        ''self''; style-src ''unsafe-inline'' ''self'''
124
      X-Content-Type-Options:
125
      - nosniff
126
      X-Download-Options:
127
      - noopen
128
      X-Frame-Options:
129
      - sameorigin
130
      X-Permitted-Cross-Domain-Policies:
131
      - none
132
      X-Xss-Protection:
133
      - 1; mode=block
134
      Transfer-Encoding:
135
      - chunked
44
      - '0.037526'
45
      X-Powered-By:
46
      - Phusion Passenger 4.0.18
47
      Set-Cookie:
48
      - _session_id=fc4f9df6ef8f56082b262e52cbe53efd; path=/; secure; HttpOnly
49
      Etag:
50
      - '"8e3341d0a4cc328651f7391aed11fef8"'
51
      Status:
52
      - 200 OK
53
      Content-Length:
54
      - '66'
55
      Content-Type:
56
      - application/json; charset=utf-8
136 57
    body:
137 58
      encoding: UTF-8
138
      string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":3,"name":"virt","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":1,"usage_count":3,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[{"contentLabel":"rhel-7-server-extras-rpms","name":"enabled","value":"1","created":"2016-10-14T13:12:56.743+0000","updated":"2016-10-14T13:12:56.743+0000"},{"contentLabel":"rhel-7-server-supplementary-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:02.183+0000","updated":"2016-10-14T13:13:02.183+0000"},{"contentLabel":"rhel-7-server-satellite-tools-6.2-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:08.378+0000","updated":"2016-10-14T13:13:08.378+0000"}],"organization":{"name":"Default
139
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-13
140
        21:46:40 UTC","updated_at":"2016-10-14 19:23:06 UTC","content_view":{"id":1,"name":"Default
141
        Organization View"},"environment":{"name":"Library","id":1},"products":null,"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}},{"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
142
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
143
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
144
        Organization View"},"environment":null,"products":null,"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}]}
145

  
146
'
59
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
147 60
    http_version: 
148
  recorded_at: Tue, 25 Oct 2016 17:40:28 GMT
61
  recorded_at: Tue, 13 Dec 2016 14:46:14 GMT
149 62
- request:
150 63
    method: get
151
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13
64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
152 65
    body:
153 66
      encoding: US-ASCII
154 67
      string: ''
155 68
    headers:
156
      Accept:
157
      - application/json;version=2
158 69
      Accept-Encoding:
159
      - gzip, deflate
70
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
      Accept:
72
      - "*/*"
160 73
      User-Agent:
161
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
162
      Content-Type:
163
      - application/json
164
      Accept-Language:
165
      - en
74
      - Ruby
166 75
      Host:
167
      - centos7-devel.example.com:3000
76
      - satlap.example.com
168 77
  response:
169 78
    status:
170 79
      code: 200
171 80
      message: OK
172 81
    headers:
173
      Foreman-Version:
174
      - 1.14.0-develop
175
      Foreman-Api-Version:
176
      - '2'
177
      Content-Type:
178
      - application/json; charset=utf-8
179
      Apipie-Checksum:
180
      - 67b6ae03f44dcb873f2946f865ddf69f
181
      Etag:
182
      - W/"07e958d7ec47068b06870315f2be38eb"
183
      Cache-Control:
184
      - max-age=0, private, must-revalidate
185
      Set-Cookie:
186
      - _session_id=cb8bc44a02e80c7ccc22fa753d4a11ba; path=/; HttpOnly
187
      X-Request-Id:
188
      - 83a93831-f926-44df-b384-5b4ee574f19b
189
      X-Runtime:
190
      - '0.181834'
191
      Content-Security-Policy:
192
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
193
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
194
        ''self''; style-src ''unsafe-inline'' ''self'''
195
      X-Content-Type-Options:
196
      - nosniff
197
      X-Download-Options:
198
      - noopen
82
      Date:
83
      - Tue, 13 Dec 2016 14:46:17 GMT
84
      Server:
85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
199 86
      X-Frame-Options:
200
      - sameorigin
201
      X-Permitted-Cross-Domain-Policies:
202
      - none
87
      - SAMEORIGIN
203 88
      X-Xss-Protection:
204 89
      - 1; mode=block
205
      Transfer-Encoding:
206
      - chunked
207
    body:
208
      encoding: UTF-8
209
      string: '  {"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
210
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
211
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
212
        Organization View"},"environment":null,"products":null,"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}
213

  
214
'
215
    http_version: 
216
  recorded_at: Tue, 25 Oct 2016 17:40:28 GMT
217
- request:
218
    method: get
219
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/subscriptions?organization_id=1&per_page=999999
220
    body:
221
      encoding: US-ASCII
222
      string: ''
223
    headers:
224
      Accept:
225
      - application/json;version=2
226
      Accept-Encoding:
227
      - gzip, deflate
228
      User-Agent:
229
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
230
      Content-Type:
231
      - application/json
232
      Accept-Language:
233
      - en
234
      Host:
235
      - centos7-devel.example.com:3000
236
  response:
237
    status:
238
      code: 200
239
      message: OK
240
    headers:
90
      X-Content-Type-Options:
91
      - nosniff
241 92
      Foreman-Version:
242
      - 1.14.0-develop
93
      - 1.11.0.54
243 94
      Foreman-Api-Version:
244 95
      - '2'
245
      Content-Type:
246
      - application/json; charset=utf-8
247 96
      Apipie-Checksum:
248
      - 67b6ae03f44dcb873f2946f865ddf69f
249
      Etag:
250
      - W/"e9b0e78fa986476bd289d042d2e61463"
97
      - e1df2e8d43e22495b02a53b48e3b5298
251 98
      Cache-Control:
252 99
      - max-age=0, private, must-revalidate
253
      Set-Cookie:
254
      - _session_id=6785065cc4e88cb08a06a84bb309d389; path=/; HttpOnly
255 100
      X-Request-Id:
256
      - a3ea5ff1-3fdb-4c7f-9b9c-cb210de02a5d
101
      - 15432f6e-3fc4-40a9-bed7-ca965942f277
257 102
      X-Runtime:
258
      - '0.231034'
259
      Content-Security-Policy:
260
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
261
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
262
        ''self''; style-src ''unsafe-inline'' ''self'''
263
      X-Content-Type-Options:
264
      - nosniff
265
      X-Download-Options:
266
      - noopen
267
      X-Frame-Options:
268
      - sameorigin
269
      X-Permitted-Cross-Domain-Policies:
270
      - none
271
      X-Xss-Protection:
272
      - 1; mode=block
273
      Transfer-Encoding:
274
      - chunked
103
      - '0.028585'
104
      X-Powered-By:
105
      - Phusion Passenger 4.0.18
106
      Set-Cookie:
107
      - _session_id=8ac9c3670344bee523dea65f8ab48f85; path=/; secure; HttpOnly
108
      Etag:
109
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
110
      Status:
111
      - 200 OK
112
      Vary:
113
      - Accept-Encoding
114
      Content-Length:
115
      - '1338'
116
      Content-Type:
117
      - application/json; charset=utf-8
275 118
    body:
276
      encoding: UTF-8
277
      string: '{"organization":{},"total":0,"subtotal":0,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
278

  
279
'
280
    http_version: 
281
  recorded_at: Tue, 25 Oct 2016 17:40:28 GMT
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
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
137
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
138
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
139
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
140
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
141
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
142
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
143
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
144
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
145
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
146
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
147
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
148
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
149
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
150
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
151
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
152
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
153
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
154
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
155
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
156
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
157
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
158
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
159
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
160
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
161
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
162
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
163
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
164
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
165
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
166
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
167
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
168
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
169
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
170
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
171
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
172
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
173
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
174
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
175
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
176
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
177
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
178
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
179
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
180
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
181
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
182
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
183
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
184
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
185
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
186
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
187
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
188
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
189
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
190
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
191
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
192
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
193
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
194
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
195
    http_version: 
196
  recorded_at: Tue, 13 Dec 2016 14:46:14 GMT
282 197
- request:
283 198
    method: get
284
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/subscriptions?available_for=activation_key&organization_id=1
199
    uri: https://satlap.example.com/apidoc/v2.en.json
285 200
    body:
286 201
      encoding: US-ASCII
287 202
      string: ''
288 203
    headers:
289 204
      Accept:
290
      - application/json;version=2
205
      - application/json
291 206
      Accept-Encoding:
292 207
      - gzip, deflate
293 208
      User-Agent:
294
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
209
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
295 210
      Content-Type:
296 211
      - application/json
297 212
      Accept-Language:
298 213
      - en
299 214
      Host:
300
      - centos7-devel.example.com:3000
215
      - satlap.example.com
301 216
  response:
302 217
    status:
303 218
      code: 200
304 219
      message: OK
305 220
    headers:
306
      Foreman-Version:
307
      - 1.14.0-develop
308
      Foreman-Api-Version:
309
      - '2'
310
      Content-Type:
311
      - application/json; charset=utf-8
312
      Apipie-Checksum:
313
      - 67b6ae03f44dcb873f2946f865ddf69f
314
      Etag:
315
      - W/"e94ab98defb4c6715f2948edd3b0fad7"
316
      Cache-Control:
317
      - max-age=0, private, must-revalidate
318
      Set-Cookie:
319
      - _session_id=cda881756020ef6ffe4f3a097a1ed851; path=/; HttpOnly
320
      X-Request-Id:
321
      - 6a06c4d3-00b0-44b4-8697-592376899dd2
322
      X-Runtime:
323
      - '1.923236'
324
      Content-Security-Policy:
325
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
326
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
327
        ''self''; style-src ''unsafe-inline'' ''self'''
328
      X-Content-Type-Options:
329
      - nosniff
330
      X-Download-Options:
331
      - noopen
221
      Date:
222
      - Tue, 13 Dec 2016 14:46:17 GMT
223
      Server:
224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
332 225
      X-Frame-Options:
333
      - sameorigin
334
      X-Permitted-Cross-Domain-Policies:
335
      - none
226
      - SAMEORIGIN
336 227
      X-Xss-Protection:
337 228
      - 1; mode=block
338
      Transfer-Encoding:
339
      - chunked
340
    body:
341
      encoding: UTF-8
342
      string: '{"organization":{},"total":6,"subtotal":6,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_attached":null,"id":1,"cp_id":"ff8080815772aeeb015776a8f8e2000b","subscription_id":1,"name":"product1","start_date":"2016-09-29T15:56:07.428+0000","end_date":"2046-09-22T15:56:07.428+0000","available":-1,"quantity":-1,"consumed":0,"account_number":null,"contract_number":null,"support_level":null,"product_id":"1475164567361","sockets":null,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"product1","unmapped_guest":false,"virt_only":false},{"quantity_attached":null,"id":2,"cp_id":"ff8080815772aeeb0157776256ab0016","subscription_id":2,"name":"product14107","start_date":"2016-09-29T19:18:35.689+0000","end_date":"2046-09-22T19:18:35.689+0000","available":-1,"quantity":-1,"consumed":0,"account_number":null,"contract_number":null,"support_level":null,"product_id":"1475176715637","sockets":null,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"product14107","unmapped_guest":false,"virt_only":false},{"quantity_attached":null,"id":7,"cp_id":"ff8080815772aeeb0157951777d707e0","subscription_id":5,"name":"katelloclient","start_date":"2016-10-05T13:45:25.449+0000","end_date":"2046-09-28T13:45:25.449+0000","available":-1,"quantity":-1,"consumed":0,"account_number":null,"contract_number":null,"support_level":null,"product_id":"1475675125365","sockets":null,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"katelloclient","unmapped_guest":false,"virt_only":false},{"quantity_attached":null,"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
343
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":2,"consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
344
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false},{"quantity_attached":null,"id":22,"cp_id":"ff80808157d88d830157e21f9f6d00ec","subscription_id":11,"name":"zoo","start_date":"2016-10-20T12:45:05.303+0000","end_date":"2046-10-13T12:45:05.303+0000","available":-1,"quantity":-1,"consumed":0,"account_number":null,"contract_number":null,"support_level":null,"product_id":"1476967505205","sockets":null,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"zoo","unmapped_guest":false,"virt_only":false},{"quantity_attached":null,"id":23,"cp_id":"ff80808157d88d830157e367c808014b","subscription_id":10,"name":"Red
345
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":-3,"quantity":-1,"consumed":2,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"ENTITLEMENT_DERIVED","product_name":"Red
346
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":true,"host":{"id":40,"name":"akofink-desktop.usersys.redhat.com"}}]}
347

  
348
'
349
    http_version: 
350
  recorded_at: Tue, 25 Oct 2016 17:40:30 GMT
351
- request:
352
    method: put
353
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/add_subscriptions
354
    body:
355
      encoding: UTF-8
356
      string: '{"subscriptions":[{"quantity_attached":null,"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
357
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":"1","consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
358
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false}]}'
359
    headers:
360
      Accept:
361
      - application/json;version=2
362
      Accept-Encoding:
363
      - gzip, deflate
364
      User-Agent:
365
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
366
      Content-Type:
367
      - application/json
368
      Accept-Language:
369
      - en
370
      Content-Length:
371
      - '680'
372
      Host:
373
      - centos7-devel.example.com:3000
374
  response:
375
    status:
376
      code: 200
377
      message: OK
378
    headers:
379
      Foreman-Version:
380
      - 1.14.0-develop
381
      Foreman-Api-Version:
382
      - '2'
383
      Content-Type:
384
      - application/json; charset=utf-8
385
      Apipie-Checksum:
386
      - 67b6ae03f44dcb873f2946f865ddf69f
387
      Etag:
388
      - W/"83c59262f898b5fc466d06fdfea4346f"
229
      X-Content-Type-Options:
230
      - nosniff
231
      Content-Disposition:
232
      - inline; filename="v2.en.json"
233
      Content-Transfer-Encoding:
234
      - binary
389 235
      Cache-Control:
390
      - max-age=0, private, must-revalidate
391
      Set-Cookie:
392
      - _session_id=ceed7aaea81d750a4fe2402b48c3c911; path=/; HttpOnly
393
      - request_method=PUT; path=/
236
      - private
237
      Apipie-Checksum:
238
      - e1df2e8d43e22495b02a53b48e3b5298
394 239
      X-Request-Id:
395
      - 4c05a671-ab99-48d3-b163-1ffa65154e8b
240
      - 9f2e727d-0fe8-4617-b9f2-0c83af3c1ab1
396 241
      X-Runtime:
397
      - '1.359699'
398
      Content-Security-Policy:
399
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
400
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
401
        ''self''; style-src ''unsafe-inline'' ''self'''
402
      X-Content-Type-Options:
403
      - nosniff
404
      X-Download-Options:
405
      - noopen
406
      X-Frame-Options:
407
      - sameorigin
408
      X-Permitted-Cross-Domain-Policies:
409
      - none
410
      X-Xss-Protection:
411
      - 1; mode=block
412
      Transfer-Encoding:
413
      - chunked
414
    body:
415
      encoding: UTF-8
416
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
417
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":2,"consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
418
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false}]}
419

  
420
'
421
    http_version: 
422
  recorded_at: Tue, 25 Oct 2016 17:40:31 GMT
423
- request:
424
    method: get
425
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
426
    body:
427
      encoding: US-ASCII
428
      string: ''
429
    headers:
430
      Accept:
431
      - application/json;version=2
432
      Accept-Encoding:
433
      - gzip, deflate
434
      User-Agent:
435
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
242
      - '0.004085'
243
      X-Powered-By:
244
      - Phusion Passenger 4.0.18
245
      Status:
246
      - 200 OK
247
      Vary:
248
      - Accept-Encoding
249
      Content-Length:
250
      - '883045'
436 251
      Content-Type:
437
      - application/json
438
      Accept-Language:
439
      - en
440
      Host:
441
      - centos7-devel.example.com:3000
442
  response:
443
    status:
444
      code: 200
445
      message: OK
446
    headers:
447
      Foreman-Version:
448
      - 1.14.0-develop
449
      Foreman-Api-Version:
450
      - '2'
451
      Content-Type:
452
      - application/json; charset=utf-8
453
      Apipie-Checksum:
454
      - 67b6ae03f44dcb873f2946f865ddf69f
455
      Etag:
456
      - W/"ce7f7e88c2b7bb9d68f638c5ec5aa133"
457
      Cache-Control:
458
      - max-age=0, private, must-revalidate
459
      Set-Cookie:
460
      - _session_id=0202ccc8a67c643f63df6870880b3a23; path=/; HttpOnly
461
      X-Request-Id:
462
      - fc486e8b-1102-4b61-b946-ad20313193cb
463
      X-Runtime:
464
      - '0.067151'
465
      Content-Security-Policy:
466
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
467
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
468
        ''self''; style-src ''unsafe-inline'' ''self'''
469
      X-Content-Type-Options:
470
      - nosniff
471
      X-Download-Options:
472
      - noopen
473
      X-Frame-Options:
474
      - sameorigin
475
      X-Permitted-Cross-Domain-Policies:
476
      - none
477
      X-Xss-Protection:
478
      - 1; mode=block
479
      Transfer-Encoding:
480
      - chunked
481
    body:
482
      encoding: UTF-8
483
      string: |
484
        {
485
          "total": 3,
486
          "subtotal": 1,
487
          "page": 1,
488
          "per_page": 999999,
489
          "search": "name=\"Default Organization\"",
490
          "sort": {
491
            "by": null,
492
            "order": null
493
          },
494
          "results": [{"label":"Default_Organization","created_at":"2016-09-28 21:34:07 UTC","updated_at":"2016-09-28 21:34:07 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
495
        }
496
    http_version: 
497
  recorded_at: Tue, 25 Oct 2016 17:40:32 GMT
498
- request:
499
    method: get
500
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/activation_keys?per_page=999999
501
    body:
502
      encoding: US-ASCII
503
      string: ''
504
    headers:
505
      Accept:
506
      - application/json;version=2
507
      Accept-Encoding:
508
      - gzip, deflate
509
      User-Agent:
510
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
511
      Content-Type:
512
      - application/json
513
      Accept-Language:
514
      - en
515
      Host:
516
      - centos7-devel.example.com:3000
517
  response:
518
    status:
519
      code: 200
520
      message: OK
521
    headers:
522
      Foreman-Version:
523
      - 1.14.0-develop
524
      Foreman-Api-Version:
525
      - '2'
526
      Content-Type:
527
      - application/json; charset=utf-8
528
      Apipie-Checksum:
529
      - 67b6ae03f44dcb873f2946f865ddf69f
530
      Etag:
531
      - W/"052cdb9921b63c5f9dc4cf04ea8eb546"
532
      Cache-Control:
533
      - max-age=0, private, must-revalidate
534
      Set-Cookie:
535
      - _session_id=f21290d9808c912a9381e1c778e6059f; path=/; HttpOnly
536
      X-Request-Id:
537
      - e402fdfa-7a74-4566-85af-08bd47baab3e
538
      X-Runtime:
539
      - '0.300834'
540
      Content-Security-Policy:
541
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
542
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
543
        ''self''; style-src ''unsafe-inline'' ''self'''
544
      X-Content-Type-Options:
545
      - nosniff
546
      X-Download-Options:
547
      - noopen
548
      X-Frame-Options:
549
      - sameorigin
550
      X-Permitted-Cross-Domain-Policies:
551
      - none
552
      X-Xss-Protection:
553
      - 1; mode=block
554
      Transfer-Encoding:
555
      - chunked
556
    body:
557
      encoding: UTF-8
558
      string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":3,"name":"virt","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":1,"usage_count":3,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[{"contentLabel":"rhel-7-server-extras-rpms","name":"enabled","value":"1","created":"2016-10-14T13:12:56.743+0000","updated":"2016-10-14T13:12:56.743+0000"},{"contentLabel":"rhel-7-server-supplementary-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:02.183+0000","updated":"2016-10-14T13:13:02.183+0000"},{"contentLabel":"rhel-7-server-satellite-tools-6.2-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:08.378+0000","updated":"2016-10-14T13:13:08.378+0000"}],"organization":{"name":"Default
559
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-13
560
        21:46:40 UTC","updated_at":"2016-10-14 19:23:06 UTC","content_view":{"id":1,"name":"Default
561
        Organization View"},"environment":{"name":"Library","id":1},"products":null,"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}},{"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
562
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
563
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
564
        Organization View"},"environment":null,"products":[{"id":27,"name":"Red Hat
565
        Beta"},{"id":49,"name":"Red Hat Software Collections Beta for RHEL Server"},{"id":56,"name":"Red
566
        Hat Enterprise Linux Server"},{"id":90,"name":"dotNET on RHEL Beta for RHEL
567
        Server"},{"id":93,"name":"dotNET on RHEL for RHEL Server"},{"id":108,"name":"Oracle
568
        Java for RHEL Server"}],"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}]}
569

  
570
'
571
    http_version: 
572
  recorded_at: Tue, 25 Oct 2016 17:40:32 GMT
573
- request:
574
    method: get
575
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13
576
    body:
577
      encoding: US-ASCII
578
      string: ''
579
    headers:
580
      Accept:
581
      - application/json;version=2
582
      Accept-Encoding:
583
      - gzip, deflate
584
      User-Agent:
585
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
586
      Content-Type:
587
      - application/json
588
      Accept-Language:
589
      - en
590
      Host:
591
      - centos7-devel.example.com:3000
592
  response:
593
    status:
594
      code: 200
595
      message: OK
596
    headers:
597
      Foreman-Version:
598
      - 1.14.0-develop
599
      Foreman-Api-Version:
600
      - '2'
601
      Content-Type:
602
      - application/json; charset=utf-8
603
      Apipie-Checksum:
604
      - 67b6ae03f44dcb873f2946f865ddf69f
605
      Etag:
606
      - W/"eccfdcf33707a182b8a9472c3d1546c4"
607
      Cache-Control:
608
      - max-age=0, private, must-revalidate
609
      Set-Cookie:
610
      - _session_id=e2c3be4b5a583dacc6a2864eacb5d8c8; path=/; HttpOnly
611
      X-Request-Id:
612
      - 157650a4-f836-4d84-a19b-126c0a3910aa
613
      X-Runtime:
614
      - '0.199892'
615
      Content-Security-Policy:
616
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
617
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
618
        ''self''; style-src ''unsafe-inline'' ''self'''
619
      X-Content-Type-Options:
620
      - nosniff
621
      X-Download-Options:
622
      - noopen
623
      X-Frame-Options:
624
      - sameorigin
625
      X-Permitted-Cross-Domain-Policies:
626
      - none
627
      X-Xss-Protection:
628
      - 1; mode=block
629
      Transfer-Encoding:
630
      - chunked
631
    body:
632
      encoding: UTF-8
633
      string: '  {"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
634
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
635
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
636
        Organization View"},"environment":null,"products":[{"id":27,"name":"Red Hat
637
        Beta"},{"id":49,"name":"Red Hat Software Collections Beta for RHEL Server"},{"id":56,"name":"Red
638
        Hat Enterprise Linux Server"},{"id":90,"name":"dotNET on RHEL Beta for RHEL
639
        Server"},{"id":93,"name":"dotNET on RHEL for RHEL Server"},{"id":108,"name":"Oracle
640
        Java for RHEL Server"}],"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}
641

  
642
'
643
    http_version: 
644
  recorded_at: Tue, 25 Oct 2016 17:40:32 GMT
645
- request:
646
    method: get
647
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/subscriptions?organization_id=1&per_page=999999
648
    body:
649
      encoding: US-ASCII
650
      string: ''
651
    headers:
652
      Accept:
653
      - application/json;version=2
654
      Accept-Encoding:
655
      - gzip, deflate
656
      User-Agent:
657
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
658
      Content-Type:
659
      - application/json
660
      Accept-Language:
661
      - en
662
      Host:
663
      - centos7-devel.example.com:3000
664
  response:
665
    status:
666
      code: 200
667
      message: OK
668
    headers:
669
      Foreman-Version:
670
      - 1.14.0-develop
671
      Foreman-Api-Version:
672
      - '2'
673
      Content-Type:
674
      - application/json; charset=utf-8
675
      Apipie-Checksum:
676
      - 67b6ae03f44dcb873f2946f865ddf69f
677
      Etag:
678
      - W/"37ae4959d5bedb162bd0cb5df3f1a68d"
679
      Cache-Control:
680
      - max-age=0, private, must-revalidate
681
      Set-Cookie:
682
      - _session_id=4bd30da169838b1d5fde8b981edbf3f4; path=/; HttpOnly
683
      X-Request-Id:
684
      - 3df9e0e3-6175-48b2-acff-88117783d7a9
685
      X-Runtime:
686
      - '1.409160'
687
      Content-Security-Policy:
688
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
689
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
690
        ''self''; style-src ''unsafe-inline'' ''self'''
691
      X-Content-Type-Options:
692
      - nosniff
693
      X-Download-Options:
694
      - noopen
695
      X-Frame-Options:
696
      - sameorigin
697
      X-Permitted-Cross-Domain-Policies:
698
      - none
699
      X-Xss-Protection:
700
      - 1; mode=block
701
      Transfer-Encoding:
702
      - chunked
703
    body:
704
      encoding: UTF-8
705
      string: '{"organization":{},"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_attached":1,"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
706
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":2,"consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
707
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false}]}
708

  
709
'
710
    http_version: 
711
  recorded_at: Tue, 25 Oct 2016 17:40:34 GMT
712
- request:
713
    method: get
714
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
715
    body:
716
      encoding: US-ASCII
717
      string: ''
718
    headers:
719
      Accept:
720
      - application/json;version=2
721
      Accept-Encoding:
722
      - gzip, deflate
723
      User-Agent:
724
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
725
      Content-Type:
726
      - application/json
727
      Accept-Language:
728
      - en
729
      Host:
730
      - centos7-devel.example.com:3000
731
  response:
732
    status:
733
      code: 200
734
      message: OK
735
    headers:
736
      Foreman-Version:
737
      - 1.14.0-develop
738
      Foreman-Api-Version:
739
      - '2'
740
      Content-Type:
741
      - application/json; charset=utf-8
742
      Apipie-Checksum:
743
      - 67b6ae03f44dcb873f2946f865ddf69f
744
      Etag:
745
      - W/"ce7f7e88c2b7bb9d68f638c5ec5aa133"
746
      Cache-Control:
747
      - max-age=0, private, must-revalidate
748
      Set-Cookie:
749
      - _session_id=ca5f7b7303b6aeb6e836c607a87c02e3; path=/; HttpOnly
750
      X-Request-Id:
751
      - 8737eca0-48e4-44b0-8df5-83241c6803f6
752
      X-Runtime:
753
      - '0.074860'
754
      Content-Security-Policy:
755
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
756
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
757
        ''self''; style-src ''unsafe-inline'' ''self'''
758
      X-Content-Type-Options:
759
      - nosniff
760
      X-Download-Options:
761
      - noopen
762
      X-Frame-Options:
763
      - sameorigin
764
      X-Permitted-Cross-Domain-Policies:
765
      - none
766
      X-Xss-Protection:
767
      - 1; mode=block
768
      Transfer-Encoding:
769
      - chunked
770
    body:
771
      encoding: UTF-8
772
      string: |
773
        {
774
          "total": 3,
775
          "subtotal": 1,
776
          "page": 1,
777
          "per_page": 999999,
778
          "search": "name=\"Default Organization\"",
779
          "sort": {
780
            "by": null,
781
            "order": null
782
          },
783
          "results": [{"label":"Default_Organization","created_at":"2016-09-28 21:34:07 UTC","updated_at":"2016-09-28 21:34:07 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
784
        }
785
    http_version: 
786
  recorded_at: Tue, 25 Oct 2016 17:40:34 GMT
787
- request:
788
    method: get
789
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/activation_keys?per_page=999999
790
    body:
791
      encoding: US-ASCII
792
      string: ''
793
    headers:
794
      Accept:
795
      - application/json;version=2
796
      Accept-Encoding:
797
      - gzip, deflate
798
      User-Agent:
799
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
800
      Content-Type:
801
      - application/json
802
      Accept-Language:
803
      - en
804
      Host:
805
      - centos7-devel.example.com:3000
806
  response:
807
    status:
808
      code: 200
809
      message: OK
810
    headers:
811
      Foreman-Version:
812
      - 1.14.0-develop
813
      Foreman-Api-Version:
814
      - '2'
815
      Content-Type:
816
      - application/json; charset=utf-8
817
      Apipie-Checksum:
818
      - 67b6ae03f44dcb873f2946f865ddf69f
819
      Etag:
820
      - W/"052cdb9921b63c5f9dc4cf04ea8eb546"
821
      Cache-Control:
822
      - max-age=0, private, must-revalidate
823
      Set-Cookie:
824
      - _session_id=9271c3099a604a3d0212ec5e8de8d6a1; path=/; HttpOnly
825
      X-Request-Id:
826
      - 36b641a4-3b5d-4d01-accc-7b84181dbbd2
827
      X-Runtime:
828
      - '0.333935'
829
      Content-Security-Policy:
830
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
831
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
832
        ''self''; style-src ''unsafe-inline'' ''self'''
833
      X-Content-Type-Options:
834
      - nosniff
835
      X-Download-Options:
836
      - noopen
837
      X-Frame-Options:
838
      - sameorigin
839
      X-Permitted-Cross-Domain-Policies:
840
      - none
841
      X-Xss-Protection:
842
      - 1; mode=block
843
      Transfer-Encoding:
844
      - chunked
845
    body:
846
      encoding: UTF-8
847
      string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":3,"name":"virt","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":1,"usage_count":3,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[{"contentLabel":"rhel-7-server-extras-rpms","name":"enabled","value":"1","created":"2016-10-14T13:12:56.743+0000","updated":"2016-10-14T13:12:56.743+0000"},{"contentLabel":"rhel-7-server-supplementary-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:02.183+0000","updated":"2016-10-14T13:13:02.183+0000"},{"contentLabel":"rhel-7-server-satellite-tools-6.2-rpms","name":"enabled","value":"1","created":"2016-10-14T13:13:08.378+0000","updated":"2016-10-14T13:13:08.378+0000"}],"organization":{"name":"Default
848
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-13
849
        21:46:40 UTC","updated_at":"2016-10-14 19:23:06 UTC","content_view":{"id":1,"name":"Default
850
        Organization View"},"environment":{"name":"Library","id":1},"products":null,"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}},{"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
851
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
852
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
853
        Organization View"},"environment":null,"products":[{"id":27,"name":"Red Hat
854
        Beta"},{"id":49,"name":"Red Hat Software Collections Beta for RHEL Server"},{"id":56,"name":"Red
855
        Hat Enterprise Linux Server"},{"id":90,"name":"dotNET on RHEL Beta for RHEL
856
        Server"},{"id":93,"name":"dotNET on RHEL for RHEL Server"},{"id":108,"name":"Oracle
857
        Java for RHEL Server"}],"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}]}
858

  
859
'
860
    http_version: 
861
  recorded_at: Tue, 25 Oct 2016 17:40:34 GMT
862
- request:
863
    method: get
864
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/content_views?per_page=999999
865
    body:
866
      encoding: US-ASCII
867
      string: ''
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.0p0
875
      Content-Type:
876
      - application/json
877
      Accept-Language:
878
      - en
879
      Host:
880
      - centos7-devel.example.com:3000
881
  response:
882
    status:
883
      code: 200
884
      message: OK
885
    headers:
886
      Foreman-Version:
887
      - 1.14.0-develop
888
      Foreman-Api-Version:
889
      - '2'
890
      Content-Type:
891
      - application/json; charset=utf-8
892
      Apipie-Checksum:
893
      - 67b6ae03f44dcb873f2946f865ddf69f
894
      Etag:
895
      - W/"98b7a67235ed858233faf3287dabc347"
896
      Cache-Control:
897
      - max-age=0, private, must-revalidate
898
      Set-Cookie:
899
      - _session_id=137122eb7ddc7ec6b5c2baebab55b05b; path=/; HttpOnly
900
      X-Request-Id:
901
      - d777bc6a-b7fd-4f38-9387-b88701824504
902
      X-Runtime:
903
      - '1.153288'
904
      Content-Security-Policy:
905
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
906
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
907
        ''self''; style-src ''unsafe-inline'' ''self'''
908
      X-Content-Type-Options:
909
      - nosniff
910
      X-Download-Options:
911
      - noopen
912
      X-Frame-Options:
913
      - sameorigin
914
      X-Permitted-Cross-Domain-Policies:
915
      - none
916
      X-Xss-Protection:
917
      - 1; mode=block
918
      Transfer-Encoding:
919
      - chunked
920
    body:
921
      encoding: UTF-8
922
      string: '{"total":3,"subtotal":3,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"force_puppet_environment":false,"id":1,"name":"Default
923
        Organization View","label":"Default_Organization_View","description":null,"organization":{"name":"Default
924
        Organization","label":"Default_Organization","id":1},"created_at":"2016-09-28
925
        21:34:14 UTC","updated_at":"2016-09-28 21:34:14 UTC","environments":[{"id":1,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":1,"version":"1.0","published":"2016-09-28
926
        21:34:14 UTC","environment_ids":[1]}],"components":[],"activation_keys":[{"id":3,"name":"virt"},{"id":13,"name":"ak1"}],"last_published":"2016-09-28
927
        21:34:14 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":[6],"component_ids":[],"default":false,"next_version":11,"force_puppet_environment":false,"id":2,"name":"cv14107","label":"cv14107","description":null,"organization":{"name":"Default
928
        Organization","label":"Default_Organization","id":1},"created_at":"2016-09-29
929
        19:24:43 UTC","updated_at":"2016-10-13 14:22:29 UTC","environments":[{"id":1,"name":"Library","label":"Library","permissions":{"readable":true}},{"id":8,"name":"development","label":"development","permissions":{"readable":true}}],"repositories":[{"id":6,"name":"repo14107","label":"repo14107","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":3,"version":"2.0","published":"2016-09-29
930
        19:34:35 UTC","environment_ids":[]},{"id":4,"version":"3.0","published":"2016-09-29
931
        20:06:52 UTC","environment_ids":[]},{"id":5,"version":"4.0","published":"2016-10-03
932
        14:39:45 UTC","environment_ids":[]},{"id":9,"version":"5.0","published":"2016-10-03
933
        15:29:00 UTC","environment_ids":[]},{"id":13,"version":"7.0","published":"2016-10-13
934
        13:42:47 UTC","environment_ids":[]},{"id":14,"version":"8.0","published":"2016-10-13
935
        13:44:30 UTC","environment_ids":[]},{"id":15,"version":"9.0","published":"2016-10-13
936
        13:53:34 UTC","environment_ids":[]},{"id":16,"version":"10.0","published":"2016-10-13
937
        14:22:29 UTC","environment_ids":[1,8]}],"components":[],"activation_keys":[],"last_published":"2016-10-13
938
        14:22:29 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":false,"next_version":2,"force_puppet_environment":false,"id":6,"name":"ak1","label":"ak1","description":null,"organization":{"name":"Default
939
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
940
        13:46:59 UTC","updated_at":"2016-10-21 13:47:01 UTC","environments":[{"id":1,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":18,"version":"1.0","published":"2016-10-21
941
        13:47:01 UTC","environment_ids":[1]}],"components":[],"activation_keys":[],"last_published":"2016-10-21
942
        13:47:01 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
943

  
944
'
945
    http_version: 
946
  recorded_at: Tue, 25 Oct 2016 17:40:35 GMT
947
- request:
948
    method: put
949
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13
950
    body:
951
      encoding: UTF-8
952
      string: '{"organization_id":1,"name":"ak1","environment_id":null,"content_view_id":1,"description":null,"unlimited_content_hosts":false,"max_content_hosts":0,"service_level":null,"release_version":null}'
953
    headers:
954
      Accept:
955
      - application/json;version=2
956
      Accept-Encoding:
957
      - gzip, deflate
958
      User-Agent:
959
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
960
      Content-Type:
961
      - application/json
962
      Accept-Language:
963
      - en
964
      Content-Length:
965
      - '193'
966
      Host:
967
      - centos7-devel.example.com:3000
968
  response:
969
    status:
970
      code: 200
971
      message: OK
972
    headers:
973
      Foreman-Version:
974
      - 1.14.0-develop
975
      Foreman-Api-Version:
976
      - '2'
977
      Content-Type:
978
      - application/json; charset=utf-8
979
      Apipie-Checksum:
980
      - 67b6ae03f44dcb873f2946f865ddf69f
981
      Etag:
982
      - W/"eccfdcf33707a182b8a9472c3d1546c4"
983
      Cache-Control:
984
      - max-age=0, private, must-revalidate
985
      Set-Cookie:
986
      - _session_id=d9cd358e0fcdb7b6c08129685f35995c; path=/; HttpOnly
987
      - request_method=PUT; path=/
988
      X-Request-Id:
989
      - 663894f3-5b2e-4e38-bac2-063a971bdabe
990
      X-Runtime:
991
      - '0.515681'
992
      Content-Security-Policy:
993
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
994
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
995
        ''self''; style-src ''unsafe-inline'' ''self'''
996
      X-Content-Type-Options:
997
      - nosniff
998
      X-Download-Options:
999
      - noopen
1000
      X-Frame-Options:
1001
      - sameorigin
1002
      X-Permitted-Cross-Domain-Policies:
1003
      - none
1004
      X-Xss-Protection:
1005
      - 1; mode=block
1006
      Transfer-Encoding:
1007
      - chunked
1008
    body:
1009
      encoding: UTF-8
1010
      string: '  {"id":13,"name":"ak1","description":null,"unlimited_hosts":true,"auto_attach":true,"content_view_id":1,"environment_id":null,"usage_count":0,"user_id":3,"max_hosts":null,"release_version":null,"service_level":null,"content_overrides":[],"organization":{"name":"Default
1011
        Organization","label":"Default_Organization","id":1},"created_at":"2016-10-21
1012
        13:56:44 UTC","updated_at":"2016-10-21 13:56:44 UTC","content_view":{"id":1,"name":"Default
1013
        Organization View"},"environment":null,"products":[{"id":27,"name":"Red Hat
1014
        Beta"},{"id":49,"name":"Red Hat Software Collections Beta for RHEL Server"},{"id":56,"name":"Red
1015
        Hat Enterprise Linux Server"},{"id":90,"name":"dotNET on RHEL Beta for RHEL
1016
        Server"},{"id":93,"name":"dotNET on RHEL for RHEL Server"},{"id":108,"name":"Oracle
1017
        Java for RHEL Server"}],"host_collections":[],"permissions":{"view_activation_keys":true,"edit_activation_keys":true,"destroy_activation_keys":true}}
1018

  
1019
'
1020
    http_version: 
1021
  recorded_at: Tue, 25 Oct 2016 17:40:36 GMT
1022
- request:
1023
    method: get
1024
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/subscriptions?organization_id=1&per_page=999999
1025
    body:
1026
      encoding: US-ASCII
1027
      string: ''
1028
    headers:
1029
      Accept:
1030
      - application/json;version=2
1031
      Accept-Encoding:
1032
      - gzip, deflate
1033
      User-Agent:
1034
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
1035
      Content-Type:
1036
      - application/json
1037
      Accept-Language:
1038
      - en
1039
      Host:
1040
      - centos7-devel.example.com:3000
1041
  response:
1042
    status:
1043
      code: 200
1044
      message: OK
1045
    headers:
1046
      Foreman-Version:
1047
      - 1.14.0-develop
1048
      Foreman-Api-Version:
1049
      - '2'
1050
      Content-Type:
1051
      - application/json; charset=utf-8
1052
      Apipie-Checksum:
1053
      - 67b6ae03f44dcb873f2946f865ddf69f
1054
      Etag:
1055
      - W/"37ae4959d5bedb162bd0cb5df3f1a68d"
1056
      Cache-Control:
1057
      - max-age=0, private, must-revalidate
1058
      Set-Cookie:
1059
      - _session_id=4a8ada971bf2257638bf49d0a1f930e1; path=/; HttpOnly
1060
      X-Request-Id:
1061
      - 1958fad0-de11-49e5-888f-5360c4791962
1062
      X-Runtime:
1063
      - '1.363969'
1064
      Content-Security-Policy:
1065
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1066
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1067
        ''self''; style-src ''unsafe-inline'' ''self'''
1068
      X-Content-Type-Options:
1069
      - nosniff
1070
      X-Download-Options:
1071
      - noopen
1072
      X-Frame-Options:
1073
      - sameorigin
1074
      X-Permitted-Cross-Domain-Policies:
1075
      - none
1076
      X-Xss-Protection:
1077
      - 1; mode=block
1078
      Transfer-Encoding:
1079
      - chunked
1080
    body:
1081
      encoding: UTF-8
1082
      string: '{"organization":{},"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_attached":1,"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
1083
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":2,"consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
1084
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false}]}
1085

  
1086
'
1087
    http_version: 
1088
  recorded_at: Tue, 25 Oct 2016 17:40:37 GMT
1089
- request:
1090
    method: put
1091
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/activation_keys/13/remove_subscriptions
1092
    body:
1093
      encoding: UTF-8
1094
      string: '{"subscriptions":[{"id":15,"quantity":null}]}'
1095
    headers:
1096
      Accept:
1097
      - application/json;version=2
1098
      Accept-Encoding:
1099
      - gzip, deflate
1100
      User-Agent:
1101
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
1102
      Content-Type:
1103
      - application/json
1104
      Accept-Language:
1105
      - en
1106
      Content-Length:
1107
      - '45'
1108
      Host:
1109
      - centos7-devel.example.com:3000
1110
  response:
1111
    status:
1112
      code: 200
1113
      message: OK
1114
    headers:
1115
      Foreman-Version:
1116
      - 1.14.0-develop
1117
      Foreman-Api-Version:
1118
      - '2'
1119
      Content-Type:
1120
      - application/json; charset=utf-8
1121
      Apipie-Checksum:
1122
      - 67b6ae03f44dcb873f2946f865ddf69f
1123
      Etag:
1124
      - W/"28f980ca6d7d7d8bdbe90747a65a208f"
1125
      Cache-Control:
1126
      - max-age=0, private, must-revalidate
1127
      Set-Cookie:
1128
      - _session_id=9db41c457ccbae9117a9fe0f090ad62f; path=/; HttpOnly
1129
      - request_method=PUT; path=/
1130
      X-Request-Id:
1131
      - f840cb50-dddf-4779-8181-1b16b51ae1e6
1132
      X-Runtime:
1133
      - '0.207440'
1134
      Content-Security-Policy:
1135
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1136
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1137
        ''self''; style-src ''unsafe-inline'' ''self'''
1138
      X-Content-Type-Options:
1139
      - nosniff
1140
      X-Download-Options:
1141
      - noopen
1142
      X-Frame-Options:
1143
      - sameorigin
1144
      X-Permitted-Cross-Domain-Policies:
1145
      - none
1146
      X-Xss-Protection:
1147
      - 1; mode=block
1148
      Transfer-Encoding:
1149
      - chunked
1150
    body:
1151
      encoding: UTF-8
1152
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
1153

  
1154
'
1155
    http_version: 
1156
  recorded_at: Tue, 25 Oct 2016 17:40:38 GMT
1157
- request:
1158
    method: get
1159
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/subscriptions?per_page=999999&search=name%20=%20%22Red%20Hat%20Enterprise%20Linux%20Server,%20Premium%20(8%20sockets)%20(Unlimited%20guests)%22
1160
    body:
1161
      encoding: US-ASCII
1162
      string: ''
1163
    headers:
1164
      Accept:
1165
      - application/json;version=2
1166
      Accept-Encoding:
1167
      - gzip, deflate
1168
      User-Agent:
1169
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
1170
      Content-Type:
1171
      - application/json
1172
      Accept-Language:
1173
      - en
1174
      Host:
1175
      - centos7-devel.example.com:3000
1176
  response:
1177
    status:
1178
      code: 200
1179
      message: OK
1180
    headers:
1181
      Foreman-Version:
1182
      - 1.14.0-develop
1183
      Foreman-Api-Version:
1184
      - '2'
1185
      Content-Type:
1186
      - application/json; charset=utf-8
1187
      Apipie-Checksum:
1188
      - 67b6ae03f44dcb873f2946f865ddf69f
1189
      Etag:
1190
      - W/"99e7e30e091194a31dac1a95ff3cd371"
1191
      Cache-Control:
1192
      - max-age=0, private, must-revalidate
1193
      Set-Cookie:
1194
      - _session_id=b0a15db35ccd721483536b63d8332cbc; path=/; HttpOnly
1195
      X-Request-Id:
1196
      - 075ee2fd-e3a0-40d9-bbec-4d4d0caac01e
1197
      X-Runtime:
1198
      - '0.443174'
1199
      Content-Security-Policy:
1200
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1201
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1202
        ''self''; style-src ''unsafe-inline'' ''self'''
1203
      X-Content-Type-Options:
1204
      - nosniff
1205
      X-Download-Options:
1206
      - noopen
1207
      X-Frame-Options:
1208
      - sameorigin
1209
      X-Permitted-Cross-Domain-Policies:
1210
      - none
1211
      X-Xss-Protection:
1212
      - 1; mode=block
1213
      Transfer-Encoding:
1214
      - chunked
1215
    body:
1216
      encoding: UTF-8
1217
      string: '{"organization":{},"total":6,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":"name
1218
        = \"Red Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)\"","sort":{"by":null,"order":null},"results":[{"id":15,"cp_id":"ff80808157ae5c2e0157c37b600e0af5","subscription_id":10,"name":"Red
1219
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":1,"quantity":2,"consumed":1,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"NORMAL","product_name":"Red
1220
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":false},{"id":23,"cp_id":"ff80808157d88d830157e367c808014b","subscription_id":10,"name":"Red
1221
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","start_date":"2016-01-05T05:00:00.000+0000","end_date":"2017-01-05T04:59:59.000+0000","available":-3,"quantity":-1,"consumed":2,"account_number":5535485,"contract_number":10855292,"support_level":"Premium","product_id":"RH0105260","sockets":8,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":null,"multi_entitlement":null,"type":"ENTITLEMENT_DERIVED","product_name":"Red
1222
        Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests)","unmapped_guest":false,"virt_only":true,"host":{"id":40,"name":"akofink-desktop.usersys.redhat.com"}}]}
1223

  
1224
'
1225
    http_version: 
1226
  recorded_at: Tue, 25 Oct 2016 17:40:38 GMT
1227
- request:
1228
    method: get
1229
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
1230
    body:
1231
      encoding: US-ASCII
1232
      string: ''
1233
    headers:
1234
      Accept:
1235
      - application/json;version=2
1236
      Accept-Encoding:
1237
      - gzip, deflate
1238
      User-Agent:
1239
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
1240
      Content-Type:
1241
      - application/json
1242
      Accept-Language:
1243
      - en
1244
      Host:
1245
      - centos7-devel.example.com:3000
1246
  response:
1247
    status:
1248
      code: 200
1249
      message: OK
1250
    headers:
1251
      Foreman-Version:
1252
      - 1.14.0-develop
1253
      Foreman-Api-Version:
1254
      - '2'
1255
      Content-Type:
1256
      - application/json; charset=utf-8
1257
      Apipie-Checksum:
1258
      - 67b6ae03f44dcb873f2946f865ddf69f
1259
      Etag:
1260
      - W/"ce7f7e88c2b7bb9d68f638c5ec5aa133"
1261
      Cache-Control:
1262
      - max-age=0, private, must-revalidate
1263
      Set-Cookie:
1264
      - _session_id=0266dbbeefd59bd0f7ec9fdccd980ef8; path=/; HttpOnly
1265
      X-Request-Id:
1266
      - 4f4d5b5b-ed35-4097-b32f-36357e61e74c
1267
      X-Runtime:
1268
      - '0.066759'
1269
      Content-Security-Policy:
1270
      - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
1271
        img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
1272
        ''self''; style-src ''unsafe-inline'' ''self'''
1273
      X-Content-Type-Options:
1274
      - nosniff
1275
      X-Download-Options:
1276
      - noopen
1277
      X-Frame-Options:
1278
      - sameorigin
1279
      X-Permitted-Cross-Domain-Policies:
1280
      - none
1281
      X-Xss-Protection:
1282
      - 1; mode=block
1283
      Transfer-Encoding:
1284
      - chunked
1285
    body:
1286
      encoding: UTF-8
1287
      string: |
1288
        {
1289
          "total": 3,
1290
          "subtotal": 1,
1291
          "page": 1,
1292
          "per_page": 999999,
1293
          "search": "name=\"Default Organization\"",
1294
          "sort": {
1295
            "by": null,
1296
            "order": null
1297
          },
1298
          "results": [{"label":"Default_Organization","created_at":"2016-09-28 21:34:07 UTC","updated_at":"2016-09-28 21:34:07 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
1299
        }
1300
    http_version: 
1301
  recorded_at: Tue, 25 Oct 2016 17:40:38 GMT
1302
- request:
1303
    method: get
1304
    uri: http://admin:changeme@centos7-devel.example.com:3000/katello/api/organizations/1/activation_keys?per_page=999999
1305
    body:
1306
      encoding: US-ASCII
1307
      string: ''
1308
    headers:
1309
      Accept:
1310
      - application/json;version=2
1311
      Accept-Encoding:
1312
      - gzip, deflate
1313
      User-Agent:
1314
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
1315
      Content-Type:
1316
      - application/json
1317
      Accept-Language:
1318
      - en
1319
      Host:
1320
      - centos7-devel.example.com:3000
1321
  response:
1322
    status:
1323
      code: 200
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff