Project

General

Profile

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

hammer-cli-csv / test / fixtures / vcr_cassettes / setup / setup_subscriptions / setup.yml @ f370cc85

1
---
2
http_interactions:
3
- request:
4
    method: get
5
    uri: https://admin:changeme@katello.example.com:50191/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
  response:
17
    status:
18
      code: 200
19
      message: OK
20
    headers:
21
      Date:
22
      - Fri, 09 Sep 2016 20:05:10 GMT
23
      Server:
24
      - Apache/2.4.6 (CentOS)
25
      X-Frame-Options:
26
      - SAMEORIGIN
27
      X-Xss-Protection:
28
      - 1; mode=block
29
      X-Content-Type-Options:
30
      - nosniff
31
      Foreman-Version:
32
      - 1.14.0-develop
33
      Foreman-Api-Version:
34
      - '2'
35
      Content-Type:
36
      - application/json; charset=utf-8
37
      Apipie-Checksum:
38
      - 9544abef9cf8343005f07ed8c9f1f8e7
39
      Etag:
40
      - W/"1316c9d778b9181476af8a9546423fb1-gzip"
41
      Cache-Control:
42
      - max-age=0, private, must-revalidate
43
      X-Request-Id:
44
      - 3ef55355-45fc-4eb5-ac63-a0265777a07d
45
      X-Runtime:
46
      - '0.228772'
47
      Via:
48
      - 1.1 katello.example.com:50191
49
      Vary:
50
      - Accept-Encoding
51
      Content-Length:
52
      - '81'
53
      Set-Cookie:
54
      - _session_id=cc11e0389bc827b3d7762dd11948938a; path=/; HttpOnly
55
    body:
56
      encoding: UTF-8
57
      string: '{"result":"ok","status":200,"version":"1.14.0-develop","api_version":2}'
58
    http_version: 
59
  recorded_at: Fri, 09 Sep 2016 20:05:11 GMT
60
- request:
61
    method: get
62
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
63
    body:
64
      encoding: US-ASCII
65
      string: ''
66
    headers:
67
      Accept-Encoding:
68
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
      Accept:
70
      - "*/*"
71
      User-Agent:
72
      - Ruby
73
  response:
74
    status:
75
      code: 200
76
      message: OK
77
    headers:
78
      Date:
79
      - Fri, 09 Sep 2016 20:05:10 GMT
80
      Server:
81
      - Apache/2.4.6 (CentOS)
82
      X-Frame-Options:
83
      - SAMEORIGIN
84
      X-Xss-Protection:
85
      - 1; mode=block
86
      X-Content-Type-Options:
87
      - nosniff
88
      Foreman-Version:
89
      - 1.14.0-develop
90
      Foreman-Api-Version:
91
      - '2'
92
      Content-Type:
93
      - application/json; charset=utf-8
94
      Apipie-Checksum:
95
      - 9544abef9cf8343005f07ed8c9f1f8e7
96
      Etag:
97
      - W/"c547959b2afaff0cf0a8d731005e9365-gzip"
98
      Cache-Control:
99
      - max-age=0, private, must-revalidate
100
      X-Request-Id:
101
      - 3cbaf96b-4a85-404e-bae7-c62676045358
102
      X-Runtime:
103
      - '0.180675'
104
      Via:
105
      - 1.1 katello.example.com:50191
106
      Vary:
107
      - Accept-Encoding
108
      Content-Length:
109
      - '566'
110
      Set-Cookie:
111
      - _session_id=b2c4f4ac74b4565c16cbbe9ec8cbbab6; path=/; HttpOnly
112
    body:
113
      encoding: ASCII-8BIT
114
      string: !binary |-
115
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
116
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
117
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
118
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
119
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
120
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
121
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
122
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
123
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
124
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
125
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
126
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
127
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
128
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
129
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
130
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMSJ9LHsiaWQiOiJmb3JlbWFu
131
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
132
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
133
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
134
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
135
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
136
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
137
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
138
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
139
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
140
    http_version: 
141
  recorded_at: Fri, 09 Sep 2016 20:05:11 GMT
142
- request:
143
    method: get
144
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999
145
    body:
146
      encoding: US-ASCII
147
      string: ''
148
    headers:
149
      Accept:
150
      - application/json;version=2
151
      Accept-Encoding:
152
      - gzip, deflate
153
      User-Agent:
154
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
155
      Content-Type:
156
      - application/json
157
      Host:
158
      - katello.example.com:50191
159
  response:
160
    status:
161
      code: 200
162
      message: OK
163
    headers:
164
      Date:
165
      - Fri, 09 Sep 2016 20:05:11 GMT
166
      Server:
167
      - Apache/2.4.6 (CentOS)
168
      X-Frame-Options:
169
      - SAMEORIGIN
170
      X-Xss-Protection:
171
      - 1; mode=block
172
      X-Content-Type-Options:
173
      - nosniff
174
      Foreman-Version:
175
      - 1.14.0-develop
176
      Foreman-Api-Version:
177
      - '2'
178
      Content-Type:
179
      - application/json; charset=utf-8
180
      Apipie-Checksum:
181
      - 9544abef9cf8343005f07ed8c9f1f8e7
182
      Etag:
183
      - W/"6f6e523169508346de19ea518f842d6f-gzip"
184
      Cache-Control:
185
      - max-age=0, private, must-revalidate
186
      X-Request-Id:
187
      - 36a9c4ae-6889-4f64-810a-5fd681a19294
188
      X-Runtime:
189
      - '0.213060'
190
      Via:
191
      - 1.1 katello.example.com:50191
192
      Vary:
193
      - Accept-Encoding
194
      Content-Length:
195
      - '792'
196
      Set-Cookie:
197
      - _session_id=fad702a15da68e27730188f70803a331; path=/; HttpOnly
198
    body:
199
      encoding: ASCII-8BIT
200
      string: |
201
        {
202
          "total": 3,
203
          "subtotal": 3,
204
          "page": 1,
205
          "per_page": 999999,
206
          "search": null,
207
          "sort": {
208
            "by": null,
209
            "order": null
210
          },
211
          "results": [{"label":"Default_Organization","created_at":"2016-09-02 14:00:59 UTC","updated_at":"2016-09-02 14:00:59 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"examplecorp","created_at":"2016-09-02 15:00:24 UTC","updated_at":"2016-09-02 15:00:24 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"},{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
212
        }
213
    http_version: 
214
  recorded_at: Fri, 09 Sep 2016 20:05:11 GMT
215
- request:
216
    method: get
217
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9
218
    body:
219
      encoding: US-ASCII
220
      string: ''
221
    headers:
222
      Accept:
223
      - application/json;version=2
224
      Accept-Encoding:
225
      - gzip, deflate
226
      User-Agent:
227
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
228
      Content-Type:
229
      - application/json
230
      Host:
231
      - katello.example.com:50191
232
  response:
233
    status:
234
      code: 200
235
      message: OK
236
    headers:
237
      Date:
238
      - Fri, 09 Sep 2016 20:05:11 GMT
239
      Server:
240
      - Apache/2.4.6 (CentOS)
241
      X-Frame-Options:
242
      - SAMEORIGIN
243
      X-Xss-Protection:
244
      - 1; mode=block
245
      X-Content-Type-Options:
246
      - nosniff
247
      Foreman-Version:
248
      - 1.14.0-develop
249
      Foreman-Api-Version:
250
      - '2'
251
      Content-Type:
252
      - application/json; charset=utf-8
253
      Apipie-Checksum:
254
      - 9544abef9cf8343005f07ed8c9f1f8e7
255
      Etag:
256
      - W/"253ac9fa8c0d829e51da8f57b05de99d-gzip"
257
      Cache-Control:
258
      - max-age=0, private, must-revalidate
259
      X-Request-Id:
260
      - a7658745-c795-40f5-8586-8d18be4d5ad8
261
      X-Runtime:
262
      - '2.678480'
263
      Via:
264
      - 1.1 katello.example.com:50191
265
      Vary:
266
      - Accept-Encoding
267
      Content-Length:
268
      - '21851'
269
      Set-Cookie:
270
      - _session_id=cff02b95a46474dc87ba15ab9fc81a30; path=/; HttpOnly
271
    body:
272
      encoding: ASCII-8BIT
273
      string: '{"label":"testcorp","owner_details":{"parentOwner":null,"id":"ff80808156eb30a60157024c785205e2","key":"testcorp","displayName":"Test
274
        Corporation","contentPrefix":"/testcorp/$env","defaultServiceLevel":null,"upstreamConsumer":{"id":"ff80808156eb30a6015704818a920660","uuid":"d45ac754-56e8-425e-a6ef-2028953f6f2c","name":"TestCorp","idCert":{"key":"-----BEGIN
275
        RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAnR41trDH6LJ4Tobp73rsvM7Sl+nMItXNW7HSjhKQg78nFotM\naGRB9XS3z7wzKtunqIHcj38UwGBE01qLIO7aBXJHAeDiZVJdRaq03fcpQU3OywCw\nzjzfIRxYP8u5S1bjE60QXwv+ao0nbEYJ45EBmFybL6NJBcATsvPTadRzy236kk0h\nnOJl+IXXU+29eGjY7GWXjm+QYf//CHN+ngEh8g/sxSafDM6w7ZlPi9HJSaXK363R\n/nuy+4KqYE0MHa/7Iyb+HnyQEn/XTuFLJk3/EKr7gwxOVV2in6CQEeXLNuWek1Xt\nUzBDL/jPNoowFM18kmYBBg5/M3gqMX4eXBVfxQIDAQABAoIBAAeWduecv/rH67F3\nKIMNP7OalWcKvnYMNz+vZcjAssP6Dkwza/w6o0jUWzAoGZx/QSiNJPa1H25u98Px\nQnjTsCnFLBK2JpjYEnMT3Go/znk95be+D8vV+ryhns1t7EPsLUk8+WZtsNq6eGXt\nN/sKfLY7+q6hRxyE+y6QQeyBexoe4OnELeeb9KFxpE9H8TV67Ed9jqLbtXsR/8Nq\nWZW7ZYHBuvYuGHgZQWY9wWks3HW1ygC+y1BpfeYA9z85HH+t1x7mG8lOBoe0eV95\nhmHDwQInPPdBB20szGTRB2UjKmFCIGX/EYn/RJZvi/kxlpTzSLTiBDDUKqjAyWC/\ngdRh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EFI7UL/Bk0UoE\n9FSjYlUJle0cykonMBMGA1UdJQQMMAoGCCsGAQUFBwMCMBYGA1UdEQQPMA2GC0NO\nPVRlc3RDb3JwMA0GCSqGSIb3DQEBBQUAA4ICAQBp4djGKuE+NCfYE0Br3IlpKnrm\nCpDF8qs4/r9A/tr+PLLhDnRmzkygSJ7KsIUXYV8oW+QhU5fe2ggPaJFfynY2AVOc\nZHbwvHKoQoUUrVlZFkcwhWcL7vvTEJQUONaOOLUgAzGIdfAmBYPWBqbwf80croGh\nY5xBcNqRw3cxfi0joE+LY4brEW5vJF8DnxhEX0eIJtjas+zb3ckeUJgYIyirXdHJ\nqrAANWjUfh9JFehwjAigx6TnGK+pr+zpbKTX9O7lhmvsCf+82NVlZmY342IUE8Ss\npWjhsydl8NT80fGJV/1fwpgyos9EvpjayXh9bYxZhDkiHaUUL/WBInEdyi4xFJgf\nPXnaV+2q48/3oOVZa2Ng/vcaBG5nEZYvK+jTG205t9d9X9Tp46iH/mvyIH8VIF0H\np/OtIoRnGLjliYP0dHp91G4UTTEpg8Cxa77r77qlwASORsFF8MJGMKMJg/YNO7fQ\nCskpqb7UZfSXmvZ5AIZ/Kzncuj1IvZMLhjMr/QAwSO0/v/GnmSqLwMamM2viq8un\nef2TQy9Xcuxcp0n7mcDHUUaTpiW1tPc5ikUmCUQ2ZuNTjE6Noa0kSV3AHG3TbSkU\n+qT9B5RSL1YBAEw5xwttvjlju2jaYaYT6xI4LioXIVJ8lEwdrggxmqTj1ArgqP2c\nHAtS6vziTnwbP+sS3g==\n-----END
277
        CERTIFICATE-----\n","id":"ff80808156eb30a6015704818a91065f","serial":{"id":8261278538809906032,"revoked":false,"collected":false,"expiration":"2017-08-16T12:29:31.000+0000","serial":8261278538809906032,"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"created":"2016-09-07T11:56:21.009+0000","updated":"2016-09-07T11:56:21.009+0000"},"type":{"id":"ff80808156eb30a60156ebcdc4930005","label":"satellite","manifest":true,"created":"2016-09-02T16:49:06.195+0000","updated":"2016-09-02T16:49:06.195+0000"},"ownerId":"ff80808156eb30a60157024c785205e2","webUrl":"access.stage.redhat.com/management/distributors/","apiUrl":"https://subscription.rhn.stage.redhat.com/subscription/consumers/","created":"2016-09-07T11:56:21.010+0000","updated":"2016-09-07T11:56:21.010+0000"},"logLevel":null,"href":"/owners/testcorp","created":"2016-09-07T01:39:08.498+0000","updated":"2016-09-07T11:56:21.159+0000"},"redhat_repository_url":"https://cdn.redhat.com","service_levels":["Premium","Standard"],"service_level":null,"select_all_types":[],"description":"Testing
278
        today for a better tomorrow","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07
279
        01:39:03 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":9,"name":"Test
280
        Corporation","title":"Test Corporation","users":[],"smart_proxies":[{"name":"katello.example.com","id":1,"url":"https://katello.example.com:9090"}],"subnets":[{"id":5,"name":"Test
281
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":90,"name":"Katello
282
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
283
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
284
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
285
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
286
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
287
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
288
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
289
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
290
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
291
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
292
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
293
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
294
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
295
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
296
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
297
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
298
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
299
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
300
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
301
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
302
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
303
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
304
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
305
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
306
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
307
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
308
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
309
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
310
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
311
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
312
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
313
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
314
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
315
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
316
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
317
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
318
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
319
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
320
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
321
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
322
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
323
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
324
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
325
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
326
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
327
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
328
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
329
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
330
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
331
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
332
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
333
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"os_family":"Xenserver","created_at":"2016-09-02
334
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"XenServer default","id":85},{"os_family":"Debian","created_at":"2016-09-02
335
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Preseed custom
336
        LVM","id":84},{"os_family":"Debian","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
337
        14:01:03 UTC","name":"Preseed default","id":83},{"os_family":"NXOS","created_at":"2016-09-02
338
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"NX-OS default
339
        fake","id":82},{"os_family":"Redhat","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
340
        14:01:03 UTC","name":"Kickstart default","id":81},{"os_family":"Junos","created_at":"2016-09-02
341
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Junos default
342
        fake","id":80},{"os_family":"Solaris","created_at":"2016-09-02 14:01:03 UTC","updated_at":"2016-09-02
343
        14:01:03 UTC","name":"Jumpstart mirrored","id":79},{"os_family":"Solaris","created_at":"2016-09-02
344
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"Jumpstart default","id":78},{"os_family":"Freebsd","created_at":"2016-09-02
345
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"FreeBSD","id":77},{"os_family":"Coreos","created_at":"2016-09-02
346
        14:01:03 UTC","updated_at":"2016-09-02 14:01:03 UTC","name":"CoreOS default
347
        fake","id":76},{"os_family":"Suse","created_at":"2016-09-02 14:01:02 UTC","updated_at":"2016-09-02
348
        14:01:02 UTC","name":"AutoYaST LVM","id":75},{"os_family":"Suse","created_at":"2016-09-02
349
        14:01:02 UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire
350
        virtual disk","id":74},{"os_family":"Suse","created_at":"2016-09-02 14:01:02
351
        UTC","updated_at":"2016-09-02 14:01:02 UTC","name":"AutoYaST entire SCSI disk","id":73}],"provisioning_templates":[{"id":90,"name":"Katello
352
        Atomic Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":89,"name":"subscription_manager_registration","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"Katello
353
        Kickstart Default Finish","template_kind_id":6,"template_kind_name":"finish"},{"id":87,"name":"Katello
354
        Kickstart Default User Data","template_kind_id":8,"template_kind_name":"user_data"},{"id":86,"name":"Katello
355
        Kickstart Default","template_kind_id":5,"template_kind_name":"provision"},{"id":72,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":70,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"kickstart_cmdline","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":54,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":52,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":50,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":48,"name":"XenServer
356
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":47,"name":"XenServer
357
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":46,"name":"XenServer
358
        default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"WAIK
359
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":44,"name":"UserData
360
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":64,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":43,"name":"Preseed
361
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":42,"name":"Preseed
362
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":41,"name":"Preseed
363
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":40,"name":"Preseed
364
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
365
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":38,"name":"NX-OS
366
        default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":37,"name":"Kickstart
367
        default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":65,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":36,"name":"Kickstart
368
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"Kickstart
369
        default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":34,"name":"Kickstart
370
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":33,"name":"Kickstart
371
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":32,"name":"Kickstart
372
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
373
        RHEL default","template_kind_id":5,"template_kind_name":"provision"},{"id":30,"name":"Kickstart
374
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Junos
375
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":63,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"Junos
376
        default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":27,"name":"Junos
377
        default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":26,"name":"Jumpstart
378
        default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":25,"name":"Jumpstart
379
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"Jumpstart
380
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":23,"name":"Grubby
381
        default","template_kind_id":7,"template_kind_name":"script"},{"id":22,"name":"FreeBSD
382
        (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"FreeBSD
383
        (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":20,"name":"FreeBSD
384
        (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":19,"name":"CoreOS
385
        PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"CoreOS
386
        provision","template_kind_id":5,"template_kind_name":"provision"},{"id":17,"name":"AutoYaST
387
        default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":16,"name":"AutoYaST
388
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"AutoYaST
389
        SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":14,"name":"AutoYaST
390
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"Atomic
391
        Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"Alterator
392
        default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"Alterator
393
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
394
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":9,"name":"PXELinux
395
        chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":8,"name":"PXELinux
396
        chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":7,"name":"PXELinux
397
        default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":6,"name":"PXEGrub2
398
        default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":5,"name":"PXEGrub
399
        default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXELinux
400
        default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":3,"name":"PXEGrub2
401
        global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":2,"name":"PXEGrub
402
        global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":1,"name":"PXELinux
403
        global default","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[{"id":2,"name":"test.com"}],"realms":[],"environments":[],"hostgroups":[],"locations":[],"parameters":[],"default_content_view_id":4,"library_id":7}'
404
    http_version: 
405
  recorded_at: Fri, 09 Sep 2016 20:05:15 GMT
406
- request:
407
    method: get
408
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations/9/subscriptions?per_page=999999
409
    body:
410
      encoding: US-ASCII
411
      string: ''
412
    headers:
413
      Accept:
414
      - application/json;version=2
415
      Accept-Encoding:
416
      - gzip, deflate
417
      User-Agent:
418
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
419
      Content-Type:
420
      - application/json
421
      Host:
422
      - katello.example.com:50191
423
  response:
424
    status:
425
      code: 200
426
      message: OK
427
    headers:
428
      Date:
429
      - Fri, 09 Sep 2016 20:05:15 GMT
430
      Server:
431
      - Apache/2.4.6 (CentOS)
432
      X-Frame-Options:
433
      - SAMEORIGIN
434
      X-Xss-Protection:
435
      - 1; mode=block
436
      X-Content-Type-Options:
437
      - nosniff
438
      Foreman-Version:
439
      - 1.14.0-develop
440
      Foreman-Api-Version:
441
      - '2'
442
      Content-Type:
443
      - application/json; charset=utf-8
444
      Apipie-Checksum:
445
      - 9544abef9cf8343005f07ed8c9f1f8e7
446
      Etag:
447
      - W/"22309c664532ad9ee442f845849cabec-gzip"
448
      Cache-Control:
449
      - max-age=0, private, must-revalidate
450
      X-Request-Id:
451
      - 0340cdbc-5b24-48d6-bc96-6d2b46b3fbf6
452
      X-Runtime:
453
      - '1.671569'
454
      Via:
455
      - 1.1 katello.example.com:50191
456
      Vary:
457
      - Accept-Encoding
458
      Content-Length:
459
      - '1348'
460
      Set-Cookie:
461
      - _session_id=80c84314f0e7501692eeefdddec0d899; path=/; HttpOnly
462
    body:
463
      encoding: ASCII-8BIT
464
      string: |
465
        {"organization":{},"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":19,"cp_id":"ff80808156eb30a6015704818e8706e1","subscription_id":11,"name":"Red 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 Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":21,"cp_id":"ff80808156eb30a6015704818f330733","subscription_id":12,"name":"Red 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 Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false}]}
466
    http_version: 
467
  recorded_at: Fri, 09 Sep 2016 20:05:17 GMT
468
recorded_with: VCR 3.0.3