deadwood 0.0.1

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 (77) hide show
  1. data/COPYING +19 -0
  2. data/README.md +19 -0
  3. data/Rakefile +65 -0
  4. data/examples/deadwood-config.yml +5 -0
  5. data/lib/deadwood.rb +45 -0
  6. data/lib/deadwood/active_resource_oauth_client.rb +74 -0
  7. data/lib/deadwood/model/activation_key.rb +24 -0
  8. data/lib/deadwood/model/base.rb +82 -0
  9. data/lib/deadwood/model/changeset.rb +28 -0
  10. data/lib/deadwood/model/consumer.rb +18 -0
  11. data/lib/deadwood/model/crl.rb +18 -0
  12. data/lib/deadwood/model/entitlement.rb +18 -0
  13. data/lib/deadwood/model/environment.rb +40 -0
  14. data/lib/deadwood/model/errata.rb +18 -0
  15. data/lib/deadwood/model/gpg_key.rb +37 -0
  16. data/lib/deadwood/model/organization.rb +21 -0
  17. data/lib/deadwood/model/pool.rb +18 -0
  18. data/lib/deadwood/model/product.rb +33 -0
  19. data/lib/deadwood/model/provider.rb +24 -0
  20. data/lib/deadwood/model/repository.rb +18 -0
  21. data/lib/deadwood/model/role.rb +38 -0
  22. data/lib/deadwood/model/status.rb +18 -0
  23. data/lib/deadwood/model/subscription.rb +18 -0
  24. data/lib/deadwood/model/system.rb +24 -0
  25. data/lib/deadwood/model/system_group.rb +33 -0
  26. data/lib/deadwood/model/task.rb +18 -0
  27. data/lib/deadwood/model/template.rb +24 -0
  28. data/lib/deadwood/model/user.rb +28 -0
  29. data/lib/deadwood/model/version.rb +18 -0
  30. data/rake/rpmtask.rb +126 -0
  31. data/spec/models/activation_key_spec.rb +35 -0
  32. data/spec/models/base_spec.rb +30 -0
  33. data/spec/models/changeset_spec.rb +38 -0
  34. data/spec/models/crl_spec.rb +25 -0
  35. data/spec/models/environment_spec.rb +54 -0
  36. data/spec/models/gpg_key_spec.rb +30 -0
  37. data/spec/models/organization_spec.rb +75 -0
  38. data/spec/models/product_spec.rb +38 -0
  39. data/spec/models/provider_spec.rb +72 -0
  40. data/spec/models/repository_spec.rb +36 -0
  41. data/spec/models/role_spec.rb +57 -0
  42. data/spec/models/system_group_spec.rb +31 -0
  43. data/spec/models/task_spec.rb +26 -0
  44. data/spec/models/template_spec.rb +37 -0
  45. data/spec/models/user_spec.rb +53 -0
  46. data/spec/spec_helper.rb +50 -0
  47. data/spec/vcr/cassettes/create_activation_key.yml +255 -0
  48. data/spec/vcr/cassettes/create_changeset.yml +257 -0
  49. data/spec/vcr/cassettes/create_find_all_environment.yml +130 -0
  50. data/spec/vcr/cassettes/create_find_single_environment.yml +130 -0
  51. data/spec/vcr/cassettes/create_gpg_key.yml +173 -0
  52. data/spec/vcr/cassettes/create_provider_for_default_org.yml +171 -0
  53. data/spec/vcr/cassettes/create_repository.yml +261 -0
  54. data/spec/vcr/cassettes/create_role.yml +130 -0
  55. data/spec/vcr/cassettes/create_system.yml +171 -0
  56. data/spec/vcr/cassettes/create_template.yml +253 -0
  57. data/spec/vcr/cassettes/create_user.yml +130 -0
  58. data/spec/vcr/cassettes/create_user_role.yml +263 -0
  59. data/spec/vcr/cassettes/find_ACME_Corporation.yml +44 -0
  60. data/spec/vcr/cassettes/find_admin.yml +44 -0
  61. data/spec/vcr/cassettes/find_crl.yml +62 -0
  62. data/spec/vcr/cassettes/find_template.yml +44 -0
  63. data/spec/vcr/cassettes/find_users.yml +44 -0
  64. data/spec/vcr/cassettes/organization_1_exists.yml +85 -0
  65. data/spec/vcr/cassettes/organization_create.yml +128 -0
  66. data/spec/vcr/cassettes/organization_default_exists.yml +44 -0
  67. data/spec/vcr/cassettes/organization_exists.yml +44 -0
  68. data/spec/vcr/cassettes/organization_update.yml +130 -0
  69. data/spec/vcr/cassettes/provider_1_exists.yml +44 -0
  70. data/spec/vcr/cassettes/providers_all_exists.yml +44 -0
  71. data/spec/vcr/cassettes/read_products.yml +257 -0
  72. data/spec/vcr/cassettes/update_environment_name_description.yml +216 -0
  73. data/spec/vcr/cassettes/update_provider_for_org.yml +175 -0
  74. data/spec/vcr/cassettes/update_role.yml +175 -0
  75. data/spec/vcr/cassettes/update_user.yml +130 -0
  76. data/spec/vcr_setup.rb +46 -0
  77. metadata +242 -0
@@ -0,0 +1,31 @@
1
+ # Copyright (c) 2012 Chris Alfonso
2
+ # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ # of this software and associated documentation files (the "Software"), to deal
4
+ # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
+ # # The above copyright notice and this permission notice shall be included in
7
+ # all copies or substantial portions of the Software. #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
+ # THE SOFTWARE.
12
+
13
+ require 'spec_helper'
14
+ require 'timecop'
15
+ require 'vcr'
16
+
17
+ describe Deadwood::Katello::SystemGroup do
18
+ let(:org_id) { 'ACME_Corporation' }
19
+ it "creates a system" do
20
+ VCR.use_cassette 'create_system' do
21
+ system_group = Deadwood::Katello::SystemGroup.new(:organization_id => org_id, :name => 'Test_System_Group', :description => 'Test system group description', :max_systems=> -1)
22
+ system_group.save!
23
+ system_groups = Deadwood::Katello::SystemGroup.find(:all, :from => "/katello/api/organizations/#{org_id}/system_groups")
24
+ system_groups.empty?.should be_false
25
+ system_group.destroy
26
+ system_groups = Deadwood::Katello::SystemGroup.find(:all, :from => "/katello/api/organizations/#{org_id}/system_groups")
27
+ system_groups.empty?.should be_true
28
+ end
29
+ end
30
+
31
+ end
@@ -0,0 +1,26 @@
1
+ # Copyright (c) 2012 Chris Alfonso
2
+ # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ # of this software and associated documentation files (the "Software"), to deal
4
+ # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
+ # # The above copyright notice and this permission notice shall be included in
7
+ # all copies or substantial portions of the Software. #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
+ # THE SOFTWARE.
12
+
13
+ require 'spec_helper'
14
+ require 'timecop'
15
+ require 'vcr'
16
+
17
+ describe Deadwood::Katello::Task do
18
+ let(:org_id) { 'ACME_Corporation' }
19
+ it "should find tasks" do
20
+ VCR.use_cassette 'find_template' do
21
+ # Get the Library environment
22
+ tasks = Deadwood::Katello::Task.find(:all, :from => "/katello/api/organizations/#{org_id}/tasks")
23
+ tasks.empty?.should be_true
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2012 Chris Alfonso
2
+ # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ # of this software and associated documentation files (the "Software"), to deal
4
+ # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
+ # # The above copyright notice and this permission notice shall be included in
7
+ # all copies or substantial portions of the Software. #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
+ # THE SOFTWARE.
12
+
13
+ require 'spec_helper'
14
+ require 'timecop'
15
+ require 'vcr'
16
+
17
+ describe Deadwood::Katello::Template do
18
+ let(:org_id) { 'ACME_Corporation' }
19
+ it "should create a template, find it, update it, then delete it" do
20
+ VCR.use_cassette 'create_template' do
21
+ # Get the Library environment
22
+ env = Deadwood::Katello::Environment.find(:all, :from => "/katello/api/organizations/#{org_id}/environments")[0]
23
+ template = Deadwood::Katello::Template.new(:environment_id => env.id, :description => 'test description', :name => 'test_template_name')
24
+ template.save!
25
+
26
+ template = Deadwood::Katello::Template.find(template.id)
27
+ template.nil?.should be_false
28
+
29
+ templates = Deadwood::Katello::Template.find(:all, :from => "/katello/api/environments/#{env.id}/templates")
30
+ templates.empty?.should be_false
31
+
32
+ template.destroy
33
+ templates = Deadwood::Katello::Template.find(:all, :from => "/katello/api/environments/#{env.id}/templates")
34
+ templates.empty?.should be_true
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,53 @@
1
+ # Copyright (c) 2012 Chris Alfonso
2
+ # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ # of this software and associated documentation files (the "Software"), to deal
4
+ # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
+ # # The above copyright notice and this permission notice shall be included in
7
+ # all copies or substantial portions of the Software. #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
+ # THE SOFTWARE.
12
+
13
+ require 'spec_helper'
14
+ require 'timecop'
15
+ require 'vcr'
16
+
17
+ describe Deadwood::Katello::User do
18
+ it "should find all users" do
19
+ VCR.use_cassette 'find_users' do
20
+ users = Deadwood::Katello::User.find(:all)
21
+ users.nil?.should be_false
22
+ end
23
+ end
24
+
25
+ it "should find all users" do
26
+ VCR.use_cassette 'find_admin' do
27
+ user = Deadwood::Katello::User.find(:all, :params => { :username => 'admin' }).first
28
+ user.username.include?('admin').should be_true
29
+ end
30
+ end
31
+
32
+ it "should create a user" do
33
+ VCR.use_cassette 'create_user' do
34
+ user = Deadwood::Katello::User.new(:username => 'funzo', :email => 'spam@example.com', :password => 'secretpw', :disabled => false)
35
+ user.save
36
+
37
+ user = Deadwood::Katello::User.find(:all, :params => { :username => 'funzo' }).first
38
+ user.nil?.should be_false
39
+ user.destroy
40
+ end
41
+ end
42
+
43
+ it "should update a user" do
44
+ VCR.use_cassette 'update_user' do
45
+ user = Deadwood::Katello::User.new(:username => 'funzo', :email => 'spam@example.com', :password => 'secretpw', :disabled => false)
46
+ user.save
47
+
48
+ user = Deadwood::Katello::User.find(:all, :params => { :username => 'funzo' }).first
49
+ user.nil?.should be_false
50
+ user.destroy
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,50 @@
1
+ # Copyright (c) 2012 Chris Alfonso
2
+ # # Permission is hereby granted, free of charge, to any person obtaining a copy
3
+ # of this software and associated documentation files (the "Software"), to deal
4
+ # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions:
6
+ # # The above copyright notice and this permission notice shall be included in
7
+ # all copies or substantial portions of the Software. #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
+ # THE SOFTWARE.
12
+
13
+ # Copyright 2011 Red Hat, Inc.
14
+ #
15
+ # Licensed under the Apache License, Version 2.0 (the "License");
16
+ # you may not use this file except in compliance with the License.
17
+ # You may obtain a copy of the License at
18
+ #
19
+ # http://www.apache.org/licenses/LICENSE-2.0
20
+ #
21
+ # Unless required by applicable law or agreed to in writing, software
22
+ # distributed under the License is distributed on an "AS IS" BASIS,
23
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ # See the License for the specific language governing permissions and
25
+ # limitations under the License.
26
+
27
+ $: << File.expand_path(File.join(File.dirname(__FILE__), "../lib/deadwood/model/"))
28
+
29
+ require 'rubygems'
30
+ require File.join(File.dirname(__FILE__), '../lib', 'deadwood')
31
+ require 'vcr_setup'
32
+ require 'timecop'
33
+ require 'rspec'
34
+
35
+ RSpec.configure do |config|
36
+ config.extend VCR::RSpec::Macros
37
+ config.before(:all) do
38
+ Timecop.travel(Time.local(2012, 8, 1, 13, 38, 20))
39
+ Deadwood::Katello::Base.config = {
40
+ :katello_user => 'admin',
41
+ :site => 'https://10.11.230.105:443/katello/api',
42
+ :consumer_key => 'cloud_forms',
43
+ :consumer_secret => 'MvhGuh1kLtOAelq5h/ebfcjW'
44
+ }
45
+ end
46
+
47
+ config.after(:each) do
48
+ Timecop.return
49
+ end
50
+ end
@@ -0,0 +1,255 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments?name=Test&organization_id=ACME_Corporation&prior=1
6
+ body:
7
+ string: "{\"environment\":{\"name\":\"Test\",\"prior\":1}}"
8
+ headers:
9
+ Content-Length:
10
+ - "41"
11
+ Content-Type:
12
+ - application/json
13
+ Http-Katello-User:
14
+ - admin
15
+ User-Agent:
16
+ - OAuth gem v0.4.6
17
+ Authorization:
18
+ - OAuth oauth_body_hash="lCe2lMYXISkHQNPzaGPJ0yiK97Y%3D", oauth_consumer_key="cloud_forms", oauth_nonce="MEmaIW9XQ52udURTWih1APhACqYVrrlvxYEwk8Dlyw", oauth_signature="fvhlLj37vSYrbJkTSAwiaEsnjcA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
19
+ Accept:
20
+ - "*/*"
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ X-Candlepin-Version:
27
+ - katello/0.2.44-1.el6
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Cache-Control:
31
+ - max-age=0, private, must-revalidate
32
+ Etag:
33
+ - "\"40d49548c49a057836c2f2410fd9a8ee\""
34
+ Server:
35
+ - thin 1.2.11 codename Bat-Shit Crazy
36
+ X-Runtime:
37
+ - "0.296909"
38
+ Transfer-Encoding:
39
+ - chunked
40
+ X-Ua-Compatible:
41
+ - IE=Edge,chrome=1
42
+ Date:
43
+ - Mon, 20 Aug 2012 18:22:00 GMT
44
+ body:
45
+ string: "{\"library\":false,\"prior\":\"Library\",\"id\":157,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:00Z\",\"name\":\"Test\",\"description\":null,\"prior_id\":1,\"created_at\":\"2012-08-20T18:22:00Z\"}"
46
+ http_version:
47
+ recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
48
+ - request:
49
+ method: post
50
+ uri: https://10.11.230.105/katello/api/activation_keys?description=test_description&environment_id=157&name=test_activation_key
51
+ body:
52
+ string: "{\"activation_key\":{\"description\":\"test_description\",\"name\":\"test_activation_key\"}}"
53
+ headers:
54
+ Content-Length:
55
+ - "82"
56
+ Content-Type:
57
+ - application/json
58
+ Http-Katello-User:
59
+ - admin
60
+ User-Agent:
61
+ - OAuth gem v0.4.6
62
+ Authorization:
63
+ - OAuth oauth_body_hash="e8lBpfMjahd14kFq5nYFN10C4kc%3D", oauth_consumer_key="cloud_forms", oauth_nonce="ZQmCfEipB6aZrkb5LMyXYcAAitSyH662V6mL8AcbRA", oauth_signature="rGL1zyXSwQEugDnr0QJPy6Lk40c%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
64
+ Accept:
65
+ - "*/*"
66
+ response:
67
+ status:
68
+ code: 200
69
+ message: OK
70
+ headers:
71
+ X-Candlepin-Version:
72
+ - katello/0.2.44-1.el6
73
+ Content-Type:
74
+ - application/json; charset=utf-8
75
+ Cache-Control:
76
+ - max-age=0, private, must-revalidate
77
+ Etag:
78
+ - "\"9e99025719343a160ed2432a7be682f2\""
79
+ Server:
80
+ - thin 1.2.11 codename Bat-Shit Crazy
81
+ X-Runtime:
82
+ - "0.206439"
83
+ Transfer-Encoding:
84
+ - chunked
85
+ X-Ua-Compatible:
86
+ - IE=Edge,chrome=1
87
+ Date:
88
+ - Mon, 20 Aug 2012 18:22:00 GMT
89
+ body:
90
+ string: "{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":20,\"user_id\":1,\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:01Z\",\"name\":\"test_activation_key\",\"description\":\"test_description\",\"environment_id\":157,\"usage_limit\":-1,\"created_at\":\"2012-08-20T18:22:01Z\"}"
91
+ http_version:
92
+ recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
93
+ - request:
94
+ method: get
95
+ uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/activation_keys
96
+ body:
97
+ string: ""
98
+ headers:
99
+ Http-Katello-User:
100
+ - admin
101
+ User-Agent:
102
+ - OAuth gem v0.4.6
103
+ Authorization:
104
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="7FW0XNrBTRiT1VIVLjoEW9UOFhZAuBplFl5eehxM", oauth_signature="Iy91AiqmSgeP3rXAYW6FIQsGM18%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
105
+ Accept:
106
+ - application/json
107
+ response:
108
+ status:
109
+ code: 200
110
+ message: OK
111
+ headers:
112
+ X-Candlepin-Version:
113
+ - katello/0.2.44-1.el6
114
+ Content-Type:
115
+ - application/json; charset=utf-8
116
+ Cache-Control:
117
+ - max-age=0, private, must-revalidate
118
+ Etag:
119
+ - "\"a5dbbf9648cfe6886bf72a3ad607e985\""
120
+ Server:
121
+ - thin 1.2.11 codename Bat-Shit Crazy
122
+ X-Runtime:
123
+ - "0.027473"
124
+ Transfer-Encoding:
125
+ - chunked
126
+ X-Ua-Compatible:
127
+ - IE=Edge,chrome=1
128
+ Date:
129
+ - Mon, 20 Aug 2012 18:22:01 GMT
130
+ body:
131
+ string: "[{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":20,\"user_id\":1,\"organization_id\":1,\"updated_at\":\"2012-08-20T18:22:01Z\",\"name\":\"test_activation_key\",\"description\":\"test_description\",\"environment_id\":157,\"usage_limit\":-1,\"created_at\":\"2012-08-20T18:22:01Z\"}]"
132
+ http_version:
133
+ recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
134
+ - request:
135
+ method: delete
136
+ uri: https://10.11.230.105/katello/api/activation_keys/20
137
+ body:
138
+ string: ""
139
+ headers:
140
+ Http-Katello-User:
141
+ - admin
142
+ User-Agent:
143
+ - OAuth gem v0.4.6
144
+ Authorization:
145
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="KM90UjfI5B0gYUhTZ7xJEvDEXRztvdb811lpjKBjbE", oauth_signature="haMmgpOO3FTXfAFctexbXUKSF2k%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
146
+ Accept:
147
+ - application/json
148
+ response:
149
+ status:
150
+ code: 204
151
+ message: No Content
152
+ headers:
153
+ Content-Length:
154
+ - "0"
155
+ X-Candlepin-Version:
156
+ - katello/0.2.44-1.el6
157
+ Content-Type:
158
+ - text/plain; charset=UTF-8
159
+ Cache-Control:
160
+ - no-cache
161
+ Server:
162
+ - thin 1.2.11 codename Bat-Shit Crazy
163
+ X-Runtime:
164
+ - "0.049247"
165
+ X-Ua-Compatible:
166
+ - IE=Edge,chrome=1
167
+ Date:
168
+ - Mon, 20 Aug 2012 18:22:01 GMT
169
+ body:
170
+ string: ""
171
+ http_version:
172
+ recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
173
+ - request:
174
+ method: get
175
+ uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/activation_keys
176
+ body:
177
+ string: ""
178
+ headers:
179
+ Http-Katello-User:
180
+ - admin
181
+ User-Agent:
182
+ - OAuth gem v0.4.6
183
+ Authorization:
184
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="MW8ej5NMmTPWANbzaxJ64csWteGq5nMn4XarFPgbv4", oauth_signature="sPpVX9%2F%2BAUS3uKtTBCpuYurFV7g%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
185
+ Accept:
186
+ - application/json
187
+ response:
188
+ status:
189
+ code: 200
190
+ message: OK
191
+ headers:
192
+ X-Candlepin-Version:
193
+ - katello/0.2.44-1.el6
194
+ Content-Type:
195
+ - application/json; charset=utf-8
196
+ Cache-Control:
197
+ - max-age=0, private, must-revalidate
198
+ Etag:
199
+ - "\"d751713988987e9331980363e24189ce\""
200
+ Server:
201
+ - thin 1.2.11 codename Bat-Shit Crazy
202
+ X-Runtime:
203
+ - "0.025693"
204
+ Transfer-Encoding:
205
+ - chunked
206
+ X-Ua-Compatible:
207
+ - IE=Edge,chrome=1
208
+ Date:
209
+ - Mon, 20 Aug 2012 18:22:01 GMT
210
+ body:
211
+ string: "[]"
212
+ http_version:
213
+ recorded_at: Wed, 01 Aug 2012 17:38:21 GMT
214
+ - request:
215
+ method: delete
216
+ uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments/157
217
+ body:
218
+ string: ""
219
+ headers:
220
+ Http-Katello-User:
221
+ - admin
222
+ User-Agent:
223
+ - OAuth gem v0.4.6
224
+ Authorization:
225
+ - OAuth oauth_consumer_key="cloud_forms", oauth_nonce="1JYEgKmjC2eIxjwHoklW7BA5hhWaAjZtVTtAzvQM", oauth_signature="NlPb6MhkfnEWN8FwqNdB71Jh5uI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842701", oauth_version="1.0"
226
+ Accept:
227
+ - application/json
228
+ response:
229
+ status:
230
+ code: 200
231
+ message: OK
232
+ headers:
233
+ X-Candlepin-Version:
234
+ - katello/0.2.44-1.el6
235
+ Content-Type:
236
+ - application/json; charset=utf-8
237
+ Cache-Control:
238
+ - max-age=0, private, must-revalidate
239
+ Etag:
240
+ - "\"035ecadf988bc46ee7867037423f9405\""
241
+ Server:
242
+ - thin 1.2.11 codename Bat-Shit Crazy
243
+ X-Runtime:
244
+ - "0.189595"
245
+ Transfer-Encoding:
246
+ - chunked
247
+ X-Ua-Compatible:
248
+ - IE=Edge,chrome=1
249
+ Date:
250
+ - Mon, 20 Aug 2012 18:22:01 GMT
251
+ body:
252
+ string: Deleted environment '157'
253
+ http_version:
254
+ recorded_at: Wed, 01 Aug 2012 17:38:21 GMT
255
+ recorded_with: VCR 2.2.4