deadwood 0.0.1 → 0.0.3
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.
- data/README.md +65 -3
- data/Rakefile +2 -4
- data/lib/deadwood/active_resource_oauth_client.rb +16 -8
- data/lib/deadwood/model/activation_key.rb +24 -8
- data/lib/deadwood/model/base.rb +16 -9
- data/lib/deadwood/model/changeset.rb +18 -10
- data/lib/deadwood/model/consumer.rb +16 -8
- data/lib/deadwood/model/crl.rb +16 -8
- data/lib/deadwood/model/entitlement.rb +16 -8
- data/lib/deadwood/model/environment.rb +22 -20
- data/lib/deadwood/model/errata.rb +16 -8
- data/lib/deadwood/model/gpg_key.rb +21 -16
- data/lib/deadwood/model/organization.rb +16 -8
- data/lib/deadwood/model/pool.rb +16 -8
- data/lib/deadwood/model/product.rb +22 -13
- data/lib/deadwood/model/provider.rb +18 -9
- data/lib/deadwood/model/repository.rb +16 -8
- data/lib/deadwood/model/role.rb +21 -14
- data/lib/deadwood/model/status.rb +16 -8
- data/lib/deadwood/model/subscription.rb +16 -8
- data/lib/deadwood/model/system.rb +18 -9
- data/lib/deadwood/model/system_group.rb +22 -13
- data/lib/deadwood/model/task.rb +16 -8
- data/lib/deadwood/model/template.rb +18 -9
- data/lib/deadwood/model/user.rb +16 -8
- data/lib/deadwood/model/version.rb +16 -8
- data/rake/rpmtask.rb +16 -13
- data/spec/models/activation_key_spec.rb +48 -8
- data/spec/models/base_spec.rb +16 -8
- data/spec/models/changeset_spec.rb +16 -8
- data/spec/models/crl_spec.rb +16 -8
- data/spec/models/environment_spec.rb +16 -8
- data/spec/models/gpg_key_spec.rb +16 -8
- data/spec/models/organization_spec.rb +16 -8
- data/spec/models/product_spec.rb +16 -8
- data/spec/models/provider_spec.rb +16 -8
- data/spec/models/repository_spec.rb +16 -8
- data/spec/models/role_spec.rb +16 -8
- data/spec/models/system_group_spec.rb +16 -8
- data/spec/models/task_spec.rb +16 -8
- data/spec/models/template_spec.rb +16 -8
- data/spec/models/user_spec.rb +16 -8
- data/spec/spec_helper.rb +15 -21
- data/spec/vcr/cassettes/create_activation_key.yml +91 -91
- data/spec/vcr/cassettes/create_changeset.yml +93 -93
- data/spec/vcr/cassettes/create_find_all_environment.yml +45 -45
- data/spec/vcr/cassettes/create_find_by_id_activation_key.yml +214 -0
- data/spec/vcr/cassettes/create_find_single_environment.yml +49 -49
- data/spec/vcr/cassettes/create_gpg_key.yml +64 -64
- data/spec/vcr/cassettes/create_provider_for_default_org.yml +63 -63
- data/spec/vcr/cassettes/create_repository.yml +98 -98
- data/spec/vcr/cassettes/create_role.yml +46 -46
- data/spec/vcr/cassettes/create_system.yml +59 -59
- data/spec/vcr/cassettes/create_template.yml +86 -86
- data/spec/vcr/cassettes/create_update_activation_key.yml +345 -0
- data/spec/vcr/cassettes/create_user.yml +48 -48
- data/spec/vcr/cassettes/create_user_role.yml +103 -103
- data/spec/vcr/cassettes/find_ACME_Corporation.yml +14 -14
- data/spec/vcr/cassettes/find_admin.yml +14 -14
- data/spec/vcr/cassettes/find_crl.yml +22 -22
- data/spec/vcr/cassettes/find_template.yml +13 -13
- data/spec/vcr/cassettes/find_users.yml +13 -13
- data/spec/vcr/cassettes/organization_1_exists.yml +28 -28
- data/spec/vcr/cassettes/organization_create.yml +46 -46
- data/spec/vcr/cassettes/organization_default_exists.yml +14 -14
- data/spec/vcr/cassettes/organization_exists.yml +13 -13
- data/spec/vcr/cassettes/organization_update.yml +44 -44
- data/spec/vcr/cassettes/provider_1_exists.yml +14 -14
- data/spec/vcr/cassettes/providers_all_exists.yml +15 -15
- data/spec/vcr/cassettes/read_products.yml +92 -92
- data/spec/vcr/cassettes/update_environment_name_description.yml +83 -83
- data/spec/vcr/cassettes/update_provider_for_org.yml +64 -64
- data/spec/vcr/cassettes/update_role.yml +67 -67
- data/spec/vcr/cassettes/update_user.yml +48 -48
- data/spec/vcr_setup.rb +16 -23
- metadata +8 -32
@@ -1,13 +1,21 @@
|
|
1
1
|
# Copyright (c) 2012 Chris Alfonso
|
2
|
-
#
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
4
|
# of this software and associated documentation files (the "Software"), to deal
|
4
|
-
# in the Software without restriction, including without limitation the rights
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
11
19
|
# THE SOFTWARE.
|
12
20
|
|
13
21
|
require 'spec_helper'
|
data/spec/models/task_spec.rb
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
# Copyright (c) 2012 Chris Alfonso
|
2
|
-
#
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
4
|
# of this software and associated documentation files (the "Software"), to deal
|
4
|
-
# in the Software without restriction, including without limitation the rights
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
11
19
|
# THE SOFTWARE.
|
12
20
|
|
13
21
|
require 'spec_helper'
|
@@ -1,13 +1,21 @@
|
|
1
1
|
# Copyright (c) 2012 Chris Alfonso
|
2
|
-
#
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
4
|
# of this software and associated documentation files (the "Software"), to deal
|
4
|
-
# in the Software without restriction, including without limitation the rights
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
11
19
|
# THE SOFTWARE.
|
12
20
|
|
13
21
|
require 'spec_helper'
|
data/spec/models/user_spec.rb
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
# Copyright (c) 2012 Chris Alfonso
|
2
|
-
#
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
4
|
# of this software and associated documentation files (the "Software"), to deal
|
4
|
-
# in the Software without restriction, including without limitation the rights
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
11
19
|
# THE SOFTWARE.
|
12
20
|
|
13
21
|
require 'spec_helper'
|
data/spec/spec_helper.rb
CHANGED
@@ -1,28 +1,22 @@
|
|
1
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
2
|
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
18
9
|
#
|
19
|
-
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
20
12
|
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
# THE SOFTWARE.
|
26
20
|
|
27
21
|
$: << File.expand_path(File.join(File.dirname(__FILE__), "../lib/deadwood/model/"))
|
28
22
|
|
@@ -6,88 +6,88 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
string: "{\"environment\":{\"name\":\"Test\",\"prior\":1}}"
|
8
8
|
headers:
|
9
|
-
Content-Length:
|
10
|
-
- "41"
|
11
9
|
Content-Type:
|
12
10
|
- application/json
|
13
|
-
|
14
|
-
-
|
11
|
+
Content-Length:
|
12
|
+
- "41"
|
15
13
|
User-Agent:
|
16
14
|
- OAuth gem v0.4.6
|
17
15
|
Authorization:
|
18
|
-
- OAuth oauth_body_hash="lCe2lMYXISkHQNPzaGPJ0yiK97Y%3D", oauth_consumer_key="cloud_forms", oauth_nonce="
|
16
|
+
- OAuth oauth_body_hash="lCe2lMYXISkHQNPzaGPJ0yiK97Y%3D", oauth_consumer_key="cloud_forms", oauth_nonce="0yKRYLWUBPyms3dEbUnsbPjIbV0lcv6wBm25wz8NeYE", oauth_signature="ksu5I1GO01E7ppN3TxHE5mhnt7Y%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
19
17
|
Accept:
|
20
18
|
- "*/*"
|
19
|
+
Http-Katello-User:
|
20
|
+
- admin
|
21
21
|
response:
|
22
22
|
status:
|
23
23
|
code: 200
|
24
24
|
message: OK
|
25
25
|
headers:
|
26
|
-
X-Candlepin-Version:
|
27
|
-
- katello/0.2.44-1.el6
|
28
26
|
Content-Type:
|
29
27
|
- application/json; charset=utf-8
|
30
|
-
Cache-Control:
|
31
|
-
- max-age=0, private, must-revalidate
|
32
|
-
Etag:
|
33
|
-
- "\"40d49548c49a057836c2f2410fd9a8ee\""
|
34
28
|
Server:
|
35
29
|
- thin 1.2.11 codename Bat-Shit Crazy
|
36
|
-
X-Runtime:
|
37
|
-
- "0.296909"
|
38
30
|
Transfer-Encoding:
|
39
31
|
- chunked
|
32
|
+
Date:
|
33
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
40
34
|
X-Ua-Compatible:
|
41
35
|
- IE=Edge,chrome=1
|
42
|
-
|
43
|
-
-
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0, private, must-revalidate
|
38
|
+
X-Runtime:
|
39
|
+
- "0.274541"
|
40
|
+
Etag:
|
41
|
+
- "\"d5bd1123bfcbc6eeab7b3f11e7590948\""
|
42
|
+
X-Candlepin-Version:
|
43
|
+
- katello/0.2.44-1.el6
|
44
44
|
body:
|
45
|
-
string: "{\"library\":false,\"prior\":\"Library\",\"id\":
|
45
|
+
string: "{\"library\":false,\"prior\":\"Library\",\"id\":192,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"updated_at\":\"2012-08-22T14:23:08Z\",\"name\":\"Test\",\"description\":null,\"prior_id\":1,\"created_at\":\"2012-08-22T14:23:08Z\"}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
48
48
|
- request:
|
49
49
|
method: post
|
50
|
-
uri: https://10.11.230.105/katello/api/activation_keys?description=test_description&environment_id=
|
50
|
+
uri: https://10.11.230.105/katello/api/activation_keys?description=test_description&environment_id=192&name=test_activation_key
|
51
51
|
body:
|
52
|
-
string: "{\"activation_key\":{\"
|
52
|
+
string: "{\"activation_key\":{\"name\":\"test_activation_key\",\"description\":\"test_description\"}}"
|
53
53
|
headers:
|
54
|
-
Content-Length:
|
55
|
-
- "82"
|
56
54
|
Content-Type:
|
57
55
|
- application/json
|
58
|
-
|
59
|
-
-
|
56
|
+
Content-Length:
|
57
|
+
- "82"
|
60
58
|
User-Agent:
|
61
59
|
- OAuth gem v0.4.6
|
62
60
|
Authorization:
|
63
|
-
- OAuth oauth_body_hash="
|
61
|
+
- OAuth oauth_body_hash="VO4aK888iX24ldmIYzv1rXIv5qo%3D", oauth_consumer_key="cloud_forms", oauth_nonce="66u3AwB6pz6b9kzsqZdQ9XTpM0YTKzJUsZqerySpYs", oauth_signature="22HLrlvvr%2BRgRERcAyiMBsC4bsE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
64
62
|
Accept:
|
65
63
|
- "*/*"
|
64
|
+
Http-Katello-User:
|
65
|
+
- admin
|
66
66
|
response:
|
67
67
|
status:
|
68
68
|
code: 200
|
69
69
|
message: OK
|
70
70
|
headers:
|
71
|
-
X-Candlepin-Version:
|
72
|
-
- katello/0.2.44-1.el6
|
73
71
|
Content-Type:
|
74
72
|
- application/json; charset=utf-8
|
75
|
-
Cache-Control:
|
76
|
-
- max-age=0, private, must-revalidate
|
77
|
-
Etag:
|
78
|
-
- "\"9e99025719343a160ed2432a7be682f2\""
|
79
73
|
Server:
|
80
74
|
- thin 1.2.11 codename Bat-Shit Crazy
|
81
|
-
X-Runtime:
|
82
|
-
- "0.206439"
|
83
75
|
Transfer-Encoding:
|
84
76
|
- chunked
|
77
|
+
Date:
|
78
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
85
79
|
X-Ua-Compatible:
|
86
80
|
- IE=Edge,chrome=1
|
87
|
-
|
88
|
-
-
|
81
|
+
Cache-Control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
X-Runtime:
|
84
|
+
- "0.045608"
|
85
|
+
Etag:
|
86
|
+
- "\"3ed955bd072aae37f4e2bcd4e2286ff2\""
|
87
|
+
X-Candlepin-Version:
|
88
|
+
- katello/0.2.44-1.el6
|
89
89
|
body:
|
90
|
-
string: "{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":
|
90
|
+
string: "{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":34,\"user_id\":1,\"organization_id\":1,\"updated_at\":\"2012-08-22T14:23:08Z\",\"name\":\"test_activation_key\",\"description\":\"test_description\",\"environment_id\":192,\"usage_limit\":-1,\"created_at\":\"2012-08-22T14:23:08Z\"}"
|
91
91
|
http_version:
|
92
92
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
93
93
|
- request:
|
@@ -96,76 +96,76 @@ http_interactions:
|
|
96
96
|
body:
|
97
97
|
string: ""
|
98
98
|
headers:
|
99
|
-
Http-Katello-User:
|
100
|
-
- admin
|
101
99
|
User-Agent:
|
102
100
|
- OAuth gem v0.4.6
|
103
101
|
Authorization:
|
104
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
102
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="SUMyubDNZ0FRNKaDyBVg2DTBRL7POBR0FkAw6GNl9E", oauth_signature="84l%2FWDYLSS8p1U5dfOmG7v6XGu0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
105
103
|
Accept:
|
106
104
|
- application/json
|
105
|
+
Http-Katello-User:
|
106
|
+
- admin
|
107
107
|
response:
|
108
108
|
status:
|
109
109
|
code: 200
|
110
110
|
message: OK
|
111
111
|
headers:
|
112
|
-
X-Candlepin-Version:
|
113
|
-
- katello/0.2.44-1.el6
|
114
112
|
Content-Type:
|
115
113
|
- application/json; charset=utf-8
|
116
|
-
Cache-Control:
|
117
|
-
- max-age=0, private, must-revalidate
|
118
|
-
Etag:
|
119
|
-
- "\"a5dbbf9648cfe6886bf72a3ad607e985\""
|
120
114
|
Server:
|
121
115
|
- thin 1.2.11 codename Bat-Shit Crazy
|
122
|
-
X-Runtime:
|
123
|
-
- "0.027473"
|
124
116
|
Transfer-Encoding:
|
125
117
|
- chunked
|
118
|
+
Date:
|
119
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
126
120
|
X-Ua-Compatible:
|
127
121
|
- IE=Edge,chrome=1
|
128
|
-
|
129
|
-
-
|
122
|
+
Cache-Control:
|
123
|
+
- max-age=0, private, must-revalidate
|
124
|
+
X-Runtime:
|
125
|
+
- "0.025398"
|
126
|
+
Etag:
|
127
|
+
- "\"1f3ed9ca8966314416e4183ba4c05519\""
|
128
|
+
X-Candlepin-Version:
|
129
|
+
- katello/0.2.44-1.el6
|
130
130
|
body:
|
131
|
-
string: "[{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":
|
131
|
+
string: "[{\"usage_count\":0,\"pools\":[],\"system_template_id\":null,\"id\":34,\"user_id\":1,\"organization_id\":1,\"updated_at\":\"2012-08-22T14:23:08Z\",\"name\":\"test_activation_key\",\"description\":\"test_description\",\"environment_id\":192,\"usage_limit\":-1,\"created_at\":\"2012-08-22T14:23:08Z\"}]"
|
132
132
|
http_version:
|
133
133
|
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
134
134
|
- request:
|
135
135
|
method: delete
|
136
|
-
uri: https://10.11.230.105/katello/api/activation_keys/
|
136
|
+
uri: https://10.11.230.105/katello/api/activation_keys/34
|
137
137
|
body:
|
138
138
|
string: ""
|
139
139
|
headers:
|
140
|
-
Http-Katello-User:
|
141
|
-
- admin
|
142
140
|
User-Agent:
|
143
141
|
- OAuth gem v0.4.6
|
144
142
|
Authorization:
|
145
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
143
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="CiKlIAarivoWyD7R7b05jWNd7ynzAbfBFr6xJ8ID0bQ", oauth_signature="LlgPhV%2BpcuSGk78H7aABAQHJDmA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
146
144
|
Accept:
|
147
145
|
- application/json
|
146
|
+
Http-Katello-User:
|
147
|
+
- admin
|
148
148
|
response:
|
149
149
|
status:
|
150
150
|
code: 204
|
151
151
|
message: No Content
|
152
152
|
headers:
|
153
|
-
Content-Length:
|
154
|
-
- "0"
|
155
|
-
X-Candlepin-Version:
|
156
|
-
- katello/0.2.44-1.el6
|
157
153
|
Content-Type:
|
158
154
|
- text/plain; charset=UTF-8
|
159
|
-
Cache-Control:
|
160
|
-
- no-cache
|
161
155
|
Server:
|
162
156
|
- thin 1.2.11 codename Bat-Shit Crazy
|
163
|
-
|
164
|
-
- "0
|
157
|
+
Content-Length:
|
158
|
+
- "0"
|
159
|
+
Date:
|
160
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
165
161
|
X-Ua-Compatible:
|
166
162
|
- IE=Edge,chrome=1
|
167
|
-
|
168
|
-
-
|
163
|
+
Cache-Control:
|
164
|
+
- no-cache
|
165
|
+
X-Runtime:
|
166
|
+
- "0.030842"
|
167
|
+
X-Candlepin-Version:
|
168
|
+
- katello/0.2.44-1.el6
|
169
169
|
body:
|
170
170
|
string: ""
|
171
171
|
http_version:
|
@@ -176,80 +176,80 @@ http_interactions:
|
|
176
176
|
body:
|
177
177
|
string: ""
|
178
178
|
headers:
|
179
|
-
Http-Katello-User:
|
180
|
-
- admin
|
181
179
|
User-Agent:
|
182
180
|
- OAuth gem v0.4.6
|
183
181
|
Authorization:
|
184
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
182
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="98SswFIg2rNIAw2ocHoZiBp33ApenDbja5V8w4fGgwk", oauth_signature="EJcOLnAVBYgtQ4dQ2C%2FnX67M1w8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
185
183
|
Accept:
|
186
184
|
- application/json
|
185
|
+
Http-Katello-User:
|
186
|
+
- admin
|
187
187
|
response:
|
188
188
|
status:
|
189
189
|
code: 200
|
190
190
|
message: OK
|
191
191
|
headers:
|
192
|
-
X-Candlepin-Version:
|
193
|
-
- katello/0.2.44-1.el6
|
194
192
|
Content-Type:
|
195
193
|
- application/json; charset=utf-8
|
196
|
-
Cache-Control:
|
197
|
-
- max-age=0, private, must-revalidate
|
198
|
-
Etag:
|
199
|
-
- "\"d751713988987e9331980363e24189ce\""
|
200
194
|
Server:
|
201
195
|
- thin 1.2.11 codename Bat-Shit Crazy
|
202
|
-
X-Runtime:
|
203
|
-
- "0.025693"
|
204
196
|
Transfer-Encoding:
|
205
197
|
- chunked
|
198
|
+
Date:
|
199
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
206
200
|
X-Ua-Compatible:
|
207
201
|
- IE=Edge,chrome=1
|
208
|
-
|
209
|
-
-
|
202
|
+
Cache-Control:
|
203
|
+
- max-age=0, private, must-revalidate
|
204
|
+
X-Runtime:
|
205
|
+
- "0.018134"
|
206
|
+
Etag:
|
207
|
+
- "\"d751713988987e9331980363e24189ce\""
|
208
|
+
X-Candlepin-Version:
|
209
|
+
- katello/0.2.44-1.el6
|
210
210
|
body:
|
211
211
|
string: "[]"
|
212
212
|
http_version:
|
213
|
-
recorded_at: Wed, 01 Aug 2012 17:38:
|
213
|
+
recorded_at: Wed, 01 Aug 2012 17:38:20 GMT
|
214
214
|
- request:
|
215
215
|
method: delete
|
216
|
-
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments/
|
216
|
+
uri: https://10.11.230.105/katello/api/organizations/ACME_Corporation/environments/192
|
217
217
|
body:
|
218
218
|
string: ""
|
219
219
|
headers:
|
220
|
-
Http-Katello-User:
|
221
|
-
- admin
|
222
220
|
User-Agent:
|
223
221
|
- OAuth gem v0.4.6
|
224
222
|
Authorization:
|
225
|
-
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="
|
223
|
+
- OAuth oauth_consumer_key="cloud_forms", oauth_nonce="xBNjSruJ8yyVJBV3saaUvw6yUuqZ4ZEIkhcT64bA", oauth_signature="azSwqOKaj3neLVDpwg%2BHf9esxIg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1343842700", oauth_version="1.0"
|
226
224
|
Accept:
|
227
225
|
- application/json
|
226
|
+
Http-Katello-User:
|
227
|
+
- admin
|
228
228
|
response:
|
229
229
|
status:
|
230
230
|
code: 200
|
231
231
|
message: OK
|
232
232
|
headers:
|
233
|
-
X-Candlepin-Version:
|
234
|
-
- katello/0.2.44-1.el6
|
235
233
|
Content-Type:
|
236
234
|
- application/json; charset=utf-8
|
237
|
-
Cache-Control:
|
238
|
-
- max-age=0, private, must-revalidate
|
239
|
-
Etag:
|
240
|
-
- "\"035ecadf988bc46ee7867037423f9405\""
|
241
235
|
Server:
|
242
236
|
- thin 1.2.11 codename Bat-Shit Crazy
|
243
|
-
X-Runtime:
|
244
|
-
- "0.189595"
|
245
237
|
Transfer-Encoding:
|
246
238
|
- chunked
|
239
|
+
Date:
|
240
|
+
- Wed, 22 Aug 2012 14:23:08 GMT
|
247
241
|
X-Ua-Compatible:
|
248
242
|
- IE=Edge,chrome=1
|
249
|
-
|
250
|
-
-
|
243
|
+
Cache-Control:
|
244
|
+
- max-age=0, private, must-revalidate
|
245
|
+
X-Runtime:
|
246
|
+
- "0.271739"
|
247
|
+
Etag:
|
248
|
+
- "\"17e9def2a90deca433a9c901f57fcac8\""
|
249
|
+
X-Candlepin-Version:
|
250
|
+
- katello/0.2.44-1.el6
|
251
251
|
body:
|
252
|
-
string: Deleted environment '
|
252
|
+
string: Deleted environment '192'
|
253
253
|
http_version:
|
254
254
|
recorded_at: Wed, 01 Aug 2012 17:38:21 GMT
|
255
255
|
recorded_with: VCR 2.2.4
|