hammer_cli_csv 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +5 -13
  2. data/config/cli_config.yml +9 -24
  3. data/lib/hammer_cli_csv/activation_keys.rb +220 -95
  4. data/lib/hammer_cli_csv/architectures.rb +7 -11
  5. data/lib/hammer_cli_csv/base.rb +67 -41
  6. data/lib/hammer_cli_csv/compute_profiles.rb +11 -15
  7. data/lib/hammer_cli_csv/compute_resources.rb +11 -15
  8. data/lib/hammer_cli_csv/containers.rb +10 -12
  9. data/lib/hammer_cli_csv/content_hosts.rb +285 -203
  10. data/lib/hammer_cli_csv/content_view_filters.rb +32 -36
  11. data/lib/hammer_cli_csv/content_views.rb +33 -37
  12. data/lib/hammer_cli_csv/csv.rb +17 -1
  13. data/lib/hammer_cli_csv/domains.rb +15 -19
  14. data/lib/hammer_cli_csv/export.rb +13 -5
  15. data/lib/hammer_cli_csv/host_collections.rb +20 -22
  16. data/lib/hammer_cli_csv/host_groups.rb +73 -65
  17. data/lib/hammer_cli_csv/hosts.rb +30 -34
  18. data/lib/hammer_cli_csv/import.rb +24 -10
  19. data/lib/hammer_cli_csv/installation_media.rb +74 -0
  20. data/lib/hammer_cli_csv/job_templates.rb +37 -41
  21. data/lib/hammer_cli_csv/lifecycle_environments.rb +15 -19
  22. data/lib/hammer_cli_csv/locations.rb +4 -6
  23. data/lib/hammer_cli_csv/operating_systems.rb +17 -21
  24. data/lib/hammer_cli_csv/organizations.rb +11 -13
  25. data/lib/hammer_cli_csv/partition_tables.rb +17 -21
  26. data/lib/hammer_cli_csv/products.rb +200 -92
  27. data/lib/hammer_cli_csv/provisioning_templates.rb +19 -23
  28. data/lib/hammer_cli_csv/puppet_environments.rb +8 -12
  29. data/lib/hammer_cli_csv/puppet_facts.rb +20 -24
  30. data/lib/hammer_cli_csv/puppet_reports.rb +47 -51
  31. data/lib/hammer_cli_csv/reports.rb +6 -10
  32. data/lib/hammer_cli_csv/roles.rb +12 -16
  33. data/lib/hammer_cli_csv/settings.rb +8 -6
  34. data/lib/hammer_cli_csv/smart_proxies.rb +9 -13
  35. data/lib/hammer_cli_csv/splice.rb +1 -3
  36. data/lib/hammer_cli_csv/subnets.rb +24 -28
  37. data/lib/hammer_cli_csv/subscriptions.rb +39 -91
  38. data/lib/hammer_cli_csv/sync_plans.rb +20 -24
  39. data/lib/hammer_cli_csv/users.rb +25 -29
  40. data/lib/hammer_cli_csv/utils/subscriptions.rb +130 -0
  41. data/lib/hammer_cli_csv/version.rb +1 -1
  42. data/lib/hammer_cli_csv.rb +2 -2
  43. data/test/csv_test.rb +32 -0
  44. data/test/csv_test_helper.rb +17 -2
  45. data/test/data/content-hosts.csv +3 -2
  46. data/test/data/hosts.csv +0 -11
  47. data/test/data/settings.csv +1 -0
  48. data/test/data/setup/content-hosts.csv +1 -0
  49. data/test/data/setup/content-views.csv +2 -0
  50. data/test/data/setup/lifecycle-environments.csv +5 -0
  51. data/test/data/setup/locations.csv +6 -0
  52. data/test/data/setup/organizations.csv +2 -0
  53. data/test/data/setup/subscriptions.csv +5 -0
  54. data/test/data/subscriptions.csv +15 -17
  55. data/test/export_test.rb +27 -0
  56. data/test/fixtures/vcr_cassettes/apipie.yml +18528 -0
  57. data/test/fixtures/vcr_cassettes/resources/activation_keys_import/create_and_update.yml +38033 -0
  58. data/test/fixtures/vcr_cassettes/resources/content_hosts_export/export.yml +18846 -0
  59. data/test/fixtures/vcr_cassettes/resources/content_hosts_export/export_subscriptions.yml +323 -0
  60. data/test/fixtures/vcr_cassettes/resources/content_hosts_import/create_and_update.yml +41884 -0
  61. data/test/fixtures/vcr_cassettes/resources/content_hosts_import/import_single_line.yml +38248 -0
  62. data/test/fixtures/vcr_cassettes/resources/settings_import/update_settings.yml +18832 -0
  63. data/test/fixtures/vcr_cassettes/resources/settings_import/update_settings_continue.yml +316 -0
  64. data/test/fixtures/vcr_cassettes/resources/subscriptions_import/manifest_does_not_exist.yml +18785 -0
  65. data/test/fixtures/vcr_cassettes/setup/setup_content_views/setup.yml +19090 -0
  66. data/test/fixtures/vcr_cassettes/setup/setup_lifecycle_environments/setup.yml +924 -0
  67. data/test/fixtures/vcr_cassettes/setup/setup_locations/setup.yml +21102 -0
  68. data/test/fixtures/vcr_cassettes/setup/setup_organizations/setup.yml +19278 -0
  69. data/test/fixtures/vcr_cassettes/setup/setup_subscriptions/setup.yml +419 -0
  70. data/test/import_test.rb +20 -25
  71. data/test/resources/activation_keys_test.rb +72 -0
  72. data/test/resources/content_hosts_test.rb +132 -0
  73. data/test/resources/settings_test.rb +81 -0
  74. data/test/resources/subscriptions_test.rb +56 -0
  75. data/test/setup/setup_content_views.rb +17 -0
  76. data/test/setup/setup_lifecycle_environments.rb +17 -0
  77. data/test/setup/setup_locations.rb +17 -0
  78. data/test/setup/setup_organizations.rb +17 -0
  79. data/test/setup/setup_subscriptions.rb +20 -0
  80. data/test/setup/setup_test.rb +10 -0
  81. data/test/test_runner.rb +175 -0
  82. data/test/vcr_setup.rb +54 -0
  83. metadata +77 -13
  84. data/lib/hammer_cli_csv/exception_handler.rb +0 -42
  85. data/lib/hammer_cli_csv/installation_medias.rb +0 -77
  86. data/test/content_hosts_test.rb +0 -61
  87. data/test/settings_test.rb +0 -30
@@ -0,0 +1,924 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"TestEnv","prior_id":7,"description":""}'
9
+ headers:
10
+ Accept:
11
+ - application/json;version=2
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '48'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
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.13.0-develop
33
+ Foreman-Api-Version:
34
+ - '2'
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Apipie-Checksum:
38
+ - e98945ba1db6bdbb4c25ce4988912344
39
+ Etag:
40
+ - W/"42690b55414b21cab256825867b45a92"
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ Set-Cookie:
44
+ - _session_id=6e8f8e82c4d154c067ac0c29155e835b; path=/; HttpOnly
45
+ - request_method=POST; path=/
46
+ X-Request-Id:
47
+ - 844ae8ee-e19a-4fa6-ba5b-daff7a369942
48
+ X-Runtime:
49
+ - '0.622294'
50
+ Transfer-Encoding:
51
+ - chunked
52
+ body:
53
+ encoding: UTF-8
54
+ string: |2
55
+ {"library":false,"id":8,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-04 13:01:48 UTC","updated_at":"2016-08-04 13:01:48 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
56
+ http_version:
57
+ recorded_at: Thu, 04 Aug 2016 13:01:14 GMT
58
+ - request:
59
+ method: put
60
+ uri: http://admin:changeme@katello:3000/katello/api/environments/8
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"description":""}'
64
+ headers:
65
+ Accept:
66
+ - application/json;version=2
67
+ Accept-Encoding:
68
+ - gzip, deflate
69
+ Content-Type:
70
+ - application/json
71
+ Content-Length:
72
+ - '18'
73
+ User-Agent:
74
+ - Ruby
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ X-Frame-Options:
81
+ - SAMEORIGIN
82
+ X-Xss-Protection:
83
+ - 1; mode=block
84
+ X-Content-Type-Options:
85
+ - nosniff
86
+ Foreman-Version:
87
+ - 1.13.0-develop
88
+ Foreman-Api-Version:
89
+ - '2'
90
+ Content-Type:
91
+ - application/json; charset=utf-8
92
+ Apipie-Checksum:
93
+ - e98945ba1db6bdbb4c25ce4988912344
94
+ Etag:
95
+ - W/"0e02f8beb31176ddcda081f9a254c23f"
96
+ Cache-Control:
97
+ - max-age=0, private, must-revalidate
98
+ Set-Cookie:
99
+ - _session_id=59f5dcd6ad748546bfd01ce558458e34; path=/; HttpOnly
100
+ - request_method=PUT; path=/
101
+ X-Request-Id:
102
+ - 2e190bfd-388d-4fb6-adb9-5d240cdd31c8
103
+ X-Runtime:
104
+ - '0.535732'
105
+ Transfer-Encoding:
106
+ - chunked
107
+ body:
108
+ encoding: UTF-8
109
+ string: |2
110
+ {"library":false,"id":8,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-04 13:01:48 UTC","updated_at":"2016-08-04 13:01:48 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
111
+ http_version:
112
+ recorded_at: Thu, 04 Aug 2016 16:46:50 GMT
113
+ - request:
114
+ method: get
115
+ uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ''
119
+ headers:
120
+ Accept:
121
+ - application/json;version=2
122
+ Accept-Encoding:
123
+ - gzip, deflate
124
+ Content-Type:
125
+ - application/json
126
+ User-Agent:
127
+ - Ruby
128
+ response:
129
+ status:
130
+ code: 200
131
+ message: OK
132
+ headers:
133
+ X-Frame-Options:
134
+ - SAMEORIGIN
135
+ X-Xss-Protection:
136
+ - 1; mode=block
137
+ X-Content-Type-Options:
138
+ - nosniff
139
+ Foreman-Version:
140
+ - 1.13.0-develop
141
+ Foreman-Api-Version:
142
+ - '2'
143
+ Content-Type:
144
+ - application/json; charset=utf-8
145
+ Apipie-Checksum:
146
+ - e98945ba1db6bdbb4c25ce4988912344
147
+ Etag:
148
+ - W/"1d6d0a90056c90ea9a3cb6391d18c584"
149
+ Cache-Control:
150
+ - max-age=0, private, must-revalidate
151
+ Set-Cookie:
152
+ - _session_id=f240333baa736913234e4d03e838d360; path=/; HttpOnly
153
+ X-Request-Id:
154
+ - 30aef9b4-4a2b-4009-a92e-0264c81d4935
155
+ X-Runtime:
156
+ - '2.536967'
157
+ Transfer-Encoding:
158
+ - chunked
159
+ body:
160
+ encoding: UTF-8
161
+ string: |
162
+ {"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
163
+ http_version:
164
+ recorded_at: Tue, 16 Aug 2016 19:03:43 GMT
165
+ - request:
166
+ method: get
167
+ uri: http://admin:changeme@katello:3000/api/status
168
+ body:
169
+ encoding: US-ASCII
170
+ string: ''
171
+ headers:
172
+ Accept-Encoding:
173
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
174
+ Accept:
175
+ - '*/*'
176
+ User-Agent:
177
+ - Ruby
178
+ response:
179
+ status:
180
+ code: 200
181
+ message: OK
182
+ headers:
183
+ X-Frame-Options:
184
+ - SAMEORIGIN
185
+ X-Xss-Protection:
186
+ - 1; mode=block
187
+ X-Content-Type-Options:
188
+ - nosniff
189
+ Foreman-Version:
190
+ - 1.13.0-develop
191
+ Foreman-Api-Version:
192
+ - '2'
193
+ Content-Type:
194
+ - application/json; charset=utf-8
195
+ Apipie-Checksum:
196
+ - e98945ba1db6bdbb4c25ce4988912344
197
+ Etag:
198
+ - W/"f536fd8685b76bb26a943d472593c93e"
199
+ Cache-Control:
200
+ - max-age=0, private, must-revalidate
201
+ Set-Cookie:
202
+ - _session_id=e4ddaa3ffcc02dd15f5227e45a5ed0b9; path=/; HttpOnly
203
+ X-Request-Id:
204
+ - edd02b20-8783-43ce-a57a-7a85c326e752
205
+ X-Runtime:
206
+ - '1.213048'
207
+ Transfer-Encoding:
208
+ - chunked
209
+ body:
210
+ encoding: UTF-8
211
+ string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
212
+ http_version:
213
+ recorded_at: Tue, 16 Aug 2016 19:07:05 GMT
214
+ - request:
215
+ method: get
216
+ uri: http://admin:changeme@katello:3000/api/v2/plugins
217
+ body:
218
+ encoding: US-ASCII
219
+ string: ''
220
+ headers:
221
+ Accept-Encoding:
222
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
223
+ Accept:
224
+ - '*/*'
225
+ User-Agent:
226
+ - Ruby
227
+ response:
228
+ status:
229
+ code: 200
230
+ message: OK
231
+ headers:
232
+ X-Frame-Options:
233
+ - SAMEORIGIN
234
+ X-Xss-Protection:
235
+ - 1; mode=block
236
+ X-Content-Type-Options:
237
+ - nosniff
238
+ Foreman-Version:
239
+ - 1.13.0-develop
240
+ Foreman-Api-Version:
241
+ - '2'
242
+ Content-Type:
243
+ - application/json; charset=utf-8
244
+ Apipie-Checksum:
245
+ - e98945ba1db6bdbb4c25ce4988912344
246
+ Etag:
247
+ - W/"dc4a8351c6668134273bfe99879f93b1"
248
+ Cache-Control:
249
+ - max-age=0, private, must-revalidate
250
+ Set-Cookie:
251
+ - _session_id=312796b3f23071ab5c6636c0fa3c5df7; path=/; HttpOnly
252
+ X-Request-Id:
253
+ - 70c0ad55-8d17-49a5-be0c-0ca9f4ff3506
254
+ X-Runtime:
255
+ - '0.296079'
256
+ Transfer-Encoding:
257
+ - chunked
258
+ body:
259
+ encoding: ASCII-8BIT
260
+ string: !binary |-
261
+ ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
262
+ CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
263
+ OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
264
+ InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
265
+ ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
266
+ b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
267
+ d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
268
+ YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
269
+ bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
270
+ b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
271
+ a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
272
+ Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
273
+ Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
274
+ c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
275
+ LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
276
+ ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMjAifSx7ImlkIjoiZm9yZW1h
277
+ bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
278
+ YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
279
+ dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
280
+ cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
281
+ Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIzLjAuMCJ9LHsi
282
+ aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
283
+ bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
284
+ RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
285
+ aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
286
+ bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
287
+ ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
288
+ Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
289
+ dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
290
+ ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
291
+ bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
292
+ Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
293
+ aW9uIjoiMy4yLjAifV0KfQo=
294
+ http_version:
295
+ recorded_at: Tue, 16 Aug 2016 19:07:06 GMT
296
+ - request:
297
+ method: get
298
+ uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999
299
+ body:
300
+ encoding: US-ASCII
301
+ string: ''
302
+ headers:
303
+ Accept:
304
+ - application/json;version=2
305
+ Accept-Encoding:
306
+ - gzip, deflate
307
+ Content-Type:
308
+ - application/json
309
+ User-Agent:
310
+ - Ruby
311
+ response:
312
+ status:
313
+ code: 200
314
+ message: OK
315
+ headers:
316
+ X-Frame-Options:
317
+ - SAMEORIGIN
318
+ X-Xss-Protection:
319
+ - 1; mode=block
320
+ X-Content-Type-Options:
321
+ - nosniff
322
+ Foreman-Version:
323
+ - 1.13.0-develop
324
+ Foreman-Api-Version:
325
+ - '2'
326
+ Content-Type:
327
+ - application/json; charset=utf-8
328
+ Apipie-Checksum:
329
+ - e98945ba1db6bdbb4c25ce4988912344
330
+ Etag:
331
+ - W/"4334603e104dcf3bf9d4222dd9a77b6a"
332
+ Cache-Control:
333
+ - max-age=0, private, must-revalidate
334
+ Set-Cookie:
335
+ - _session_id=3c84de66357aba01f7bad6d6c63120df; path=/; HttpOnly
336
+ X-Request-Id:
337
+ - 577e32a9-1fbf-446e-8ab3-6c1eb4288bc4
338
+ X-Runtime:
339
+ - '0.354620'
340
+ Transfer-Encoding:
341
+ - chunked
342
+ body:
343
+ encoding: UTF-8
344
+ string: |
345
+ {
346
+ "total": 3,
347
+ "subtotal": 3,
348
+ "page": 1,
349
+ "per_page": 999999,
350
+ "search": null,
351
+ "sort": {
352
+ "by": null,
353
+ "order": null
354
+ },
355
+ "results": [{"label":"Default_Organization","created_at":"2016-08-10 12:38:23 UTC","updated_at":"2016-08-10 12:38:23 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"examplecorp","created_at":"2016-08-10 13:40:47 UTC","updated_at":"2016-08-10 13:40:47 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"},{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
356
+ }
357
+ http_version:
358
+ recorded_at: Tue, 16 Aug 2016 19:07:06 GMT
359
+ - request:
360
+ method: get
361
+ uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Default%20Organization%22
362
+ body:
363
+ encoding: US-ASCII
364
+ string: ''
365
+ headers:
366
+ Accept:
367
+ - application/json;version=2
368
+ Accept-Encoding:
369
+ - gzip, deflate
370
+ Content-Type:
371
+ - application/json
372
+ User-Agent:
373
+ - Ruby
374
+ response:
375
+ status:
376
+ code: 200
377
+ message: OK
378
+ headers:
379
+ X-Frame-Options:
380
+ - SAMEORIGIN
381
+ X-Xss-Protection:
382
+ - 1; mode=block
383
+ X-Content-Type-Options:
384
+ - nosniff
385
+ Foreman-Version:
386
+ - 1.13.0-develop
387
+ Foreman-Api-Version:
388
+ - '2'
389
+ Content-Type:
390
+ - application/json; charset=utf-8
391
+ Apipie-Checksum:
392
+ - e98945ba1db6bdbb4c25ce4988912344
393
+ Etag:
394
+ - W/"785d8517cac73defba8a1bb58c1321c3"
395
+ Cache-Control:
396
+ - max-age=0, private, must-revalidate
397
+ Set-Cookie:
398
+ - _session_id=6feef9c1671e90f9ba53662edf8ae133; path=/; HttpOnly
399
+ X-Request-Id:
400
+ - 8f38bba6-0b52-4f56-80ac-880f168eb15f
401
+ X-Runtime:
402
+ - '1.280627'
403
+ Transfer-Encoding:
404
+ - chunked
405
+ body:
406
+ encoding: UTF-8
407
+ string: |
408
+ {
409
+ "total": 3,
410
+ "subtotal": 1,
411
+ "page": 1,
412
+ "per_page": 999999,
413
+ "search": "name=\"Default Organization\"",
414
+ "sort": {
415
+ "by": null,
416
+ "order": null
417
+ },
418
+ "results": [{"label":"Default_Organization","created_at":"2016-08-10 12:38:23 UTC","updated_at":"2016-08-10 12:38:23 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null}]
419
+ }
420
+ http_version:
421
+ recorded_at: Tue, 16 Aug 2016 19:07:07 GMT
422
+ - request:
423
+ method: get
424
+ uri: http://admin:changeme@katello:3000/katello/api/organizations/1/environments?per_page=999999
425
+ body:
426
+ encoding: US-ASCII
427
+ string: ''
428
+ headers:
429
+ Accept:
430
+ - application/json;version=2
431
+ Accept-Encoding:
432
+ - gzip, deflate
433
+ Content-Type:
434
+ - application/json
435
+ User-Agent:
436
+ - Ruby
437
+ response:
438
+ status:
439
+ code: 200
440
+ message: OK
441
+ headers:
442
+ X-Frame-Options:
443
+ - SAMEORIGIN
444
+ X-Xss-Protection:
445
+ - 1; mode=block
446
+ X-Content-Type-Options:
447
+ - nosniff
448
+ Foreman-Version:
449
+ - 1.13.0-develop
450
+ Foreman-Api-Version:
451
+ - '2'
452
+ Content-Type:
453
+ - application/json; charset=utf-8
454
+ Apipie-Checksum:
455
+ - e98945ba1db6bdbb4c25ce4988912344
456
+ Etag:
457
+ - W/"c468522552c316b3731fc20f45b2deb5"
458
+ Cache-Control:
459
+ - max-age=0, private, must-revalidate
460
+ Set-Cookie:
461
+ - _session_id=10ef0cc39385066422b8656639a9a6b2; path=/; HttpOnly
462
+ X-Request-Id:
463
+ - 4af58bab-86ab-4a52-b70e-4a1e4503bad3
464
+ X-Runtime:
465
+ - '0.610936'
466
+ Transfer-Encoding:
467
+ - chunked
468
+ body:
469
+ encoding: UTF-8
470
+ string: |
471
+ {"total":1,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":true,"id":1,"name":"Library","label":"Library","description":null,"organization":{"name":"Default Organization","label":"Default_Organization","id":1},"created_at":"2016-08-10 12:38:26 UTC","updated_at":"2016-08-10 12:38:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":3,"docker_repositories":0,"ostree_repositories":0,"products":3},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]}
472
+ http_version:
473
+ recorded_at: Tue, 16 Aug 2016 19:07:08 GMT
474
+ - request:
475
+ method: get
476
+ uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Example%20Corporation%22
477
+ body:
478
+ encoding: US-ASCII
479
+ string: ''
480
+ headers:
481
+ Accept:
482
+ - application/json;version=2
483
+ Accept-Encoding:
484
+ - gzip, deflate
485
+ Content-Type:
486
+ - application/json
487
+ User-Agent:
488
+ - Ruby
489
+ response:
490
+ status:
491
+ code: 200
492
+ message: OK
493
+ headers:
494
+ X-Frame-Options:
495
+ - SAMEORIGIN
496
+ X-Xss-Protection:
497
+ - 1; mode=block
498
+ X-Content-Type-Options:
499
+ - nosniff
500
+ Foreman-Version:
501
+ - 1.13.0-develop
502
+ Foreman-Api-Version:
503
+ - '2'
504
+ Content-Type:
505
+ - application/json; charset=utf-8
506
+ Apipie-Checksum:
507
+ - e98945ba1db6bdbb4c25ce4988912344
508
+ Etag:
509
+ - W/"06fddfee0dc212ed75a51f7ece06f727"
510
+ Cache-Control:
511
+ - max-age=0, private, must-revalidate
512
+ Set-Cookie:
513
+ - _session_id=35be6aea9338b9be37523793b52f0dad; path=/; HttpOnly
514
+ X-Request-Id:
515
+ - 5290f8c5-f332-4fdb-b585-03543060a679
516
+ X-Runtime:
517
+ - '0.226320'
518
+ Transfer-Encoding:
519
+ - chunked
520
+ body:
521
+ encoding: UTF-8
522
+ string: |
523
+ {
524
+ "total": 3,
525
+ "subtotal": 1,
526
+ "page": 1,
527
+ "per_page": 999999,
528
+ "search": "name=\"Example Corporation\"",
529
+ "sort": {
530
+ "by": null,
531
+ "order": null
532
+ },
533
+ "results": [{"label":"examplecorp","created_at":"2016-08-10 13:40:47 UTC","updated_at":"2016-08-10 13:40:47 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"}]
534
+ }
535
+ http_version:
536
+ recorded_at: Tue, 16 Aug 2016 19:07:08 GMT
537
+ - request:
538
+ method: get
539
+ uri: http://admin:changeme@katello:3000/katello/api/organizations/3/environments?per_page=999999
540
+ body:
541
+ encoding: US-ASCII
542
+ string: ''
543
+ headers:
544
+ Accept:
545
+ - application/json;version=2
546
+ Accept-Encoding:
547
+ - gzip, deflate
548
+ Content-Type:
549
+ - application/json
550
+ User-Agent:
551
+ - Ruby
552
+ response:
553
+ status:
554
+ code: 200
555
+ message: OK
556
+ headers:
557
+ X-Frame-Options:
558
+ - SAMEORIGIN
559
+ X-Xss-Protection:
560
+ - 1; mode=block
561
+ X-Content-Type-Options:
562
+ - nosniff
563
+ Foreman-Version:
564
+ - 1.13.0-develop
565
+ Foreman-Api-Version:
566
+ - '2'
567
+ Content-Type:
568
+ - application/json; charset=utf-8
569
+ Apipie-Checksum:
570
+ - e98945ba1db6bdbb4c25ce4988912344
571
+ Etag:
572
+ - W/"08a2cb84779c8c6beaa1f92e76fc93c7"
573
+ Cache-Control:
574
+ - max-age=0, private, must-revalidate
575
+ Set-Cookie:
576
+ - _session_id=9bee2d2ad8762ef2dba2b63c4262c74a; path=/; HttpOnly
577
+ X-Request-Id:
578
+ - 43afd356-b8b7-4b04-b0d0-4f8195cd59af
579
+ X-Runtime:
580
+ - '3.484721'
581
+ Transfer-Encoding:
582
+ - chunked
583
+ body:
584
+ encoding: UTF-8
585
+ string: |
586
+ {"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-08-10 21:02:34 UTC","updated_at":"2016-08-10 21:02:34 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":5,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-08-10 21:02:36 UTC","updated_at":"2016-08-10 21:02:36 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-08-10 13:40:49 UTC","updated_at":"2016-08-10 13:40:49 UTC","prior":null,"successor":null,"counts":{"content_hosts":1,"content_views":1,"packages":20594,"puppet_modules":0,"errata":{"security":565,"bugfix":1344,"enhancement":260,"total":2169},"yum_repositories":3,"docker_repositories":2,"ostree_repositories":0,"products":4},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":3,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-08-10 21:02:31 UTC","updated_at":"2016-08-10 21:02:31 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":1},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Example Corporation","label":"examplecorp","id":3},"created_at":"2016-08-10 21:02:40 UTC","updated_at":"2016-08-10 21:02:40 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
587
+ http_version:
588
+ recorded_at: Tue, 16 Aug 2016 19:07:12 GMT
589
+ - request:
590
+ method: get
591
+ uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
592
+ body:
593
+ encoding: US-ASCII
594
+ string: ''
595
+ headers:
596
+ Accept:
597
+ - application/json;version=2
598
+ Accept-Encoding:
599
+ - gzip, deflate
600
+ Content-Type:
601
+ - application/json
602
+ User-Agent:
603
+ - Ruby
604
+ response:
605
+ status:
606
+ code: 200
607
+ message: OK
608
+ headers:
609
+ X-Frame-Options:
610
+ - SAMEORIGIN
611
+ X-Xss-Protection:
612
+ - 1; mode=block
613
+ X-Content-Type-Options:
614
+ - nosniff
615
+ Foreman-Version:
616
+ - 1.13.0-develop
617
+ Foreman-Api-Version:
618
+ - '2'
619
+ Content-Type:
620
+ - application/json; charset=utf-8
621
+ Apipie-Checksum:
622
+ - e98945ba1db6bdbb4c25ce4988912344
623
+ Etag:
624
+ - W/"dec57c653102523d2cd2de13cb7fee01"
625
+ Cache-Control:
626
+ - max-age=0, private, must-revalidate
627
+ Set-Cookie:
628
+ - _session_id=72cb96f8b3d66bb4f36a840c42616442; path=/; HttpOnly
629
+ X-Request-Id:
630
+ - a72fa5db-1cbd-4b7a-a9a0-f5646b00db60
631
+ X-Runtime:
632
+ - '0.305727'
633
+ Transfer-Encoding:
634
+ - chunked
635
+ body:
636
+ encoding: UTF-8
637
+ string: |
638
+ {
639
+ "total": 3,
640
+ "subtotal": 1,
641
+ "page": 1,
642
+ "per_page": 999999,
643
+ "search": "name=\"Test Corporation\"",
644
+ "sort": {
645
+ "by": null,
646
+ "order": null
647
+ },
648
+ "results": [{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
649
+ }
650
+ http_version:
651
+ recorded_at: Tue, 16 Aug 2016 19:07:12 GMT
652
+ - request:
653
+ method: get
654
+ uri: http://admin:changeme@katello:3000/katello/api/organizations/4/environments?per_page=999999
655
+ body:
656
+ encoding: US-ASCII
657
+ string: ''
658
+ headers:
659
+ Accept:
660
+ - application/json;version=2
661
+ Accept-Encoding:
662
+ - gzip, deflate
663
+ Content-Type:
664
+ - application/json
665
+ User-Agent:
666
+ - Ruby
667
+ response:
668
+ status:
669
+ code: 200
670
+ message: OK
671
+ headers:
672
+ X-Frame-Options:
673
+ - SAMEORIGIN
674
+ X-Xss-Protection:
675
+ - 1; mode=block
676
+ X-Content-Type-Options:
677
+ - nosniff
678
+ Foreman-Version:
679
+ - 1.13.0-develop
680
+ Foreman-Api-Version:
681
+ - '2'
682
+ Content-Type:
683
+ - application/json; charset=utf-8
684
+ Apipie-Checksum:
685
+ - e98945ba1db6bdbb4c25ce4988912344
686
+ Etag:
687
+ - W/"1d6d0a90056c90ea9a3cb6391d18c584"
688
+ Cache-Control:
689
+ - max-age=0, private, must-revalidate
690
+ Set-Cookie:
691
+ - _session_id=d47ee3d90398d1b70056c656a3f12ddc; path=/; HttpOnly
692
+ X-Request-Id:
693
+ - db6e10a8-41b9-42ed-9d31-1fc7d15a6e94
694
+ X-Runtime:
695
+ - '3.703343'
696
+ Transfer-Encoding:
697
+ - chunked
698
+ body:
699
+ encoding: UTF-8
700
+ string: |
701
+ {"total":6,"subtotal":6,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":12,"name":"TestEnv","label":"TestEnv","description":"","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 15:07:36 UTC","updated_at":"2016-08-16 15:07:36 UTC","prior":{"name":"Library","id":7},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":7,"name":"Library","label":"Library","description":null,"organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:46:28 UTC","updated_at":"2016-08-16 12:46:28 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
702
+ http_version:
703
+ recorded_at: Tue, 16 Aug 2016 19:07:16 GMT
704
+ - request:
705
+ method: put
706
+ uri: http://admin:changeme@katello:3000/katello/api/environments/8
707
+ body:
708
+ encoding: UTF-8
709
+ string: '{"description":"Development, automated promotes from Library"}'
710
+ headers:
711
+ Accept:
712
+ - application/json;version=2
713
+ Accept-Encoding:
714
+ - gzip, deflate
715
+ Content-Type:
716
+ - application/json
717
+ Content-Length:
718
+ - '62'
719
+ User-Agent:
720
+ - Ruby
721
+ response:
722
+ status:
723
+ code: 200
724
+ message: OK
725
+ headers:
726
+ X-Frame-Options:
727
+ - SAMEORIGIN
728
+ X-Xss-Protection:
729
+ - 1; mode=block
730
+ X-Content-Type-Options:
731
+ - nosniff
732
+ Foreman-Version:
733
+ - 1.13.0-develop
734
+ Foreman-Api-Version:
735
+ - '2'
736
+ Content-Type:
737
+ - application/json; charset=utf-8
738
+ Apipie-Checksum:
739
+ - e98945ba1db6bdbb4c25ce4988912344
740
+ Etag:
741
+ - W/"cfe9d7e4a1c3c4674e86795714a4f820"
742
+ Cache-Control:
743
+ - max-age=0, private, must-revalidate
744
+ Set-Cookie:
745
+ - _session_id=a327b0614afe20cf654f972ad9b094be; path=/; HttpOnly
746
+ - request_method=PUT; path=/
747
+ X-Request-Id:
748
+ - c79705c2-2a8a-425e-9f86-7c457416f40e
749
+ X-Runtime:
750
+ - '1.603860'
751
+ Transfer-Encoding:
752
+ - chunked
753
+ body:
754
+ encoding: UTF-8
755
+ string: |2
756
+ {"library":false,"id":8,"name":"Development","label":"Development","description":"Development, automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:11 UTC","updated_at":"2016-08-16 12:47:11 UTC","prior":{"name":"Library","id":7},"successor":{"name":"Test","id":9},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
757
+ http_version:
758
+ recorded_at: Tue, 16 Aug 2016 19:07:17 GMT
759
+ - request:
760
+ method: put
761
+ uri: http://admin:changeme@katello:3000/katello/api/environments/9
762
+ body:
763
+ encoding: UTF-8
764
+ string: '{"description":"Test, manual promotions from Development"}'
765
+ headers:
766
+ Accept:
767
+ - application/json;version=2
768
+ Accept-Encoding:
769
+ - gzip, deflate
770
+ Content-Type:
771
+ - application/json
772
+ Content-Length:
773
+ - '58'
774
+ User-Agent:
775
+ - Ruby
776
+ response:
777
+ status:
778
+ code: 200
779
+ message: OK
780
+ headers:
781
+ X-Frame-Options:
782
+ - SAMEORIGIN
783
+ X-Xss-Protection:
784
+ - 1; mode=block
785
+ X-Content-Type-Options:
786
+ - nosniff
787
+ Foreman-Version:
788
+ - 1.13.0-develop
789
+ Foreman-Api-Version:
790
+ - '2'
791
+ Content-Type:
792
+ - application/json; charset=utf-8
793
+ Apipie-Checksum:
794
+ - e98945ba1db6bdbb4c25ce4988912344
795
+ Etag:
796
+ - W/"2d17bf62cf017012131594dfdee29719"
797
+ Cache-Control:
798
+ - max-age=0, private, must-revalidate
799
+ Set-Cookie:
800
+ - _session_id=ceb88b14c85bf5deec8c6b0ab321ff44; path=/; HttpOnly
801
+ - request_method=PUT; path=/
802
+ X-Request-Id:
803
+ - e9534214-5437-469a-8130-cbf4514689d3
804
+ X-Runtime:
805
+ - '0.754447'
806
+ Transfer-Encoding:
807
+ - chunked
808
+ body:
809
+ encoding: UTF-8
810
+ string: |2
811
+ {"library":false,"id":9,"name":"Test","label":"Test","description":"Test, manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:15 UTC","updated_at":"2016-08-16 12:47:15 UTC","prior":{"name":"Development","id":8},"successor":{"name":"Production","id":10},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
812
+ http_version:
813
+ recorded_at: Tue, 16 Aug 2016 19:07:18 GMT
814
+ - request:
815
+ method: put
816
+ uri: http://admin:changeme@katello:3000/katello/api/environments/10
817
+ body:
818
+ encoding: UTF-8
819
+ string: '{"description":"Production, manual promotions from Test"}'
820
+ headers:
821
+ Accept:
822
+ - application/json;version=2
823
+ Accept-Encoding:
824
+ - gzip, deflate
825
+ Content-Type:
826
+ - application/json
827
+ Content-Length:
828
+ - '57'
829
+ User-Agent:
830
+ - Ruby
831
+ response:
832
+ status:
833
+ code: 200
834
+ message: OK
835
+ headers:
836
+ X-Frame-Options:
837
+ - SAMEORIGIN
838
+ X-Xss-Protection:
839
+ - 1; mode=block
840
+ X-Content-Type-Options:
841
+ - nosniff
842
+ Foreman-Version:
843
+ - 1.13.0-develop
844
+ Foreman-Api-Version:
845
+ - '2'
846
+ Content-Type:
847
+ - application/json; charset=utf-8
848
+ Apipie-Checksum:
849
+ - e98945ba1db6bdbb4c25ce4988912344
850
+ Etag:
851
+ - W/"b7a35aa1d6a7a3c7794143c779da1b95"
852
+ Cache-Control:
853
+ - max-age=0, private, must-revalidate
854
+ Set-Cookie:
855
+ - _session_id=1d3b5c4268d24e593c56654a936310c7; path=/; HttpOnly
856
+ - request_method=PUT; path=/
857
+ X-Request-Id:
858
+ - 00b03630-d075-47c9-8f2c-f2edd7b97b56
859
+ X-Runtime:
860
+ - '1.540778'
861
+ Transfer-Encoding:
862
+ - chunked
863
+ body:
864
+ encoding: UTF-8
865
+ string: |2
866
+ {"library":false,"id":10,"name":"Production","label":"Production","description":"Production, manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:17 UTC","updated_at":"2016-08-16 12:47:17 UTC","prior":{"name":"Test","id":9},"successor":{"name":"Archive","id":11},"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}
867
+ http_version:
868
+ recorded_at: Tue, 16 Aug 2016 19:07:20 GMT
869
+ - request:
870
+ method: put
871
+ uri: http://admin:changeme@katello:3000/katello/api/environments/11
872
+ body:
873
+ encoding: UTF-8
874
+ string: '{"description":"Archive, no longer in Production"}'
875
+ headers:
876
+ Accept:
877
+ - application/json;version=2
878
+ Accept-Encoding:
879
+ - gzip, deflate
880
+ Content-Type:
881
+ - application/json
882
+ Content-Length:
883
+ - '50'
884
+ User-Agent:
885
+ - Ruby
886
+ response:
887
+ status:
888
+ code: 200
889
+ message: OK
890
+ headers:
891
+ X-Frame-Options:
892
+ - SAMEORIGIN
893
+ X-Xss-Protection:
894
+ - 1; mode=block
895
+ X-Content-Type-Options:
896
+ - nosniff
897
+ Foreman-Version:
898
+ - 1.13.0-develop
899
+ Foreman-Api-Version:
900
+ - '2'
901
+ Content-Type:
902
+ - application/json; charset=utf-8
903
+ Apipie-Checksum:
904
+ - e98945ba1db6bdbb4c25ce4988912344
905
+ Etag:
906
+ - W/"04d514d27629d1c8464398597cf5a28c"
907
+ Cache-Control:
908
+ - max-age=0, private, must-revalidate
909
+ Set-Cookie:
910
+ - _session_id=4fe18b8987be5796439282ff27d6d2d3; path=/; HttpOnly
911
+ - request_method=PUT; path=/
912
+ X-Request-Id:
913
+ - 84dc3348-0e31-4a36-8462-91deec817206
914
+ X-Runtime:
915
+ - '0.622107'
916
+ Transfer-Encoding:
917
+ - chunked
918
+ body:
919
+ encoding: UTF-8
920
+ string: |2
921
+ {"library":false,"id":11,"name":"Archive","label":"Archive","description":"Archive, no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":4},"created_at":"2016-08-16 12:47:21 UTC","updated_at":"2016-08-16 12:47:21 UTC","prior":{"name":"Production","id":10},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}
922
+ http_version:
923
+ recorded_at: Tue, 16 Aug 2016 19:07:20 GMT
924
+ recorded_with: VCR 3.0.3