ridley 0.7.0.rc1 → 0.7.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-version +2 -1
- data/lib/ridley.rb +2 -1
- data/lib/ridley/client.rb +17 -15
- data/lib/ridley/connection.rb +50 -3
- data/lib/ridley/errors.rb +13 -0
- data/lib/ridley/middleware/chef_auth.rb +48 -10
- data/lib/ridley/middleware/chef_response.rb +5 -3
- data/lib/ridley/middleware/parse_json.rb +3 -3
- data/lib/ridley/resource.rb +8 -6
- data/lib/ridley/resources/client_resource.rb +1 -1
- data/lib/ridley/resources/cookbook_resource.rb +276 -24
- data/lib/ridley/resources/data_bag_item_resource.rb +9 -10
- data/lib/ridley/resources/encrypted_data_bag_item_resource.rb +1 -1
- data/lib/ridley/sandbox_uploader.rb +1 -1
- data/lib/ridley/version.rb +1 -1
- data/ridley.gemspec +4 -3
- data/spec/spec_helper.rb +4 -0
- data/spec/support/shared_examples/ridley_resource.rb +6 -7
- data/spec/support/spec_helpers.rb +9 -0
- data/spec/unit/ridley/connection_spec.rb +23 -0
- data/spec/unit/ridley/middleware/chef_auth_spec.rb +18 -2
- data/spec/unit/ridley/resource_spec.rb +8 -22
- data/spec/unit/ridley/resources/cookbook_resource_spec.rb +255 -1
- data/spec/unit/ridley/resources/sandbox_resource_spec.rb +1 -1
- data/spec/unit/ridley/sandbox_uploader_spec.rb +2 -1
- metadata +25 -11
- data/spec/acceptance/cookbook_resource_spec.rb +0 -28
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe Ridley::SandboxResource do
|
4
4
|
let(:server_url) { "https://api.opscode.com/organizations/vialstudios" }
|
5
5
|
let(:client_name) { "reset" }
|
6
|
-
let(:client_key) { "
|
6
|
+
let(:client_key) { fixtures_path.join("reset.pem") }
|
7
7
|
|
8
8
|
let(:sandbox) do
|
9
9
|
Ridley.new(
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0.
|
4
|
+
version: 0.7.0.rc3
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.5.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.5.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: mixlib-log
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 1.3.0
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 1.3.0
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: mixlib-authentication
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 1.3.0
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 1.3.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: addressable
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +139,22 @@ dependencies:
|
|
139
139
|
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: 3.2.0
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: solve
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.4.1
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.4.1
|
142
158
|
- !ruby/object:Gem::Dependency
|
143
159
|
name: celluloid
|
144
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,7 +269,6 @@ files:
|
|
253
269
|
- ridley.gemspec
|
254
270
|
- spec/acceptance/bootstrapping_spec.rb
|
255
271
|
- spec/acceptance/client_resource_spec.rb
|
256
|
-
- spec/acceptance/cookbook_resource_spec.rb
|
257
272
|
- spec/acceptance/data_bag_item_resource_spec.rb
|
258
273
|
- spec/acceptance/data_bag_resource_spec.rb
|
259
274
|
- spec/acceptance/environment_resource_spec.rb
|
@@ -314,14 +329,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
329
|
version: 1.3.1
|
315
330
|
requirements: []
|
316
331
|
rubyforge_project:
|
317
|
-
rubygems_version: 1.8.
|
332
|
+
rubygems_version: 1.8.24
|
318
333
|
signing_key:
|
319
334
|
specification_version: 3
|
320
335
|
summary: A reliable Chef API client with a clean syntax
|
321
336
|
test_files:
|
322
337
|
- spec/acceptance/bootstrapping_spec.rb
|
323
338
|
- spec/acceptance/client_resource_spec.rb
|
324
|
-
- spec/acceptance/cookbook_resource_spec.rb
|
325
339
|
- spec/acceptance/data_bag_item_resource_spec.rb
|
326
340
|
- spec/acceptance/data_bag_resource_spec.rb
|
327
341
|
- spec/acceptance/environment_resource_spec.rb
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "Cookbook API operations", type: "acceptance" do
|
4
|
-
let(:server_url) { "https://api.opscode.com/organizations/ridley" }
|
5
|
-
let(:client_name) { "reset" }
|
6
|
-
let(:client_key) { "/Users/reset/.chef/reset.pem" }
|
7
|
-
|
8
|
-
let(:connection) do
|
9
|
-
Ridley.new(
|
10
|
-
server_url: server_url,
|
11
|
-
client_name: client_name,
|
12
|
-
client_key: client_key
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
before(:all) { WebMock.allow_net_connect! }
|
17
|
-
after(:all) { WebMock.disable_net_connect! }
|
18
|
-
|
19
|
-
describe "finding a cookbook" do
|
20
|
-
pending
|
21
|
-
end
|
22
|
-
|
23
|
-
describe "listing all cookbooks" do
|
24
|
-
it "should return an array of environment objects" do
|
25
|
-
connection.cookbook.all.should each be_a(Ridley::CookbookResource)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|