knife-rackspace 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +0 -1
- data/CHANGELOG.md +7 -0
- data/README.rdoc +38 -16
- data/knife-rackspace.gemspec +1 -1
- data/lib/chef/knife/rackspace_base.rb +30 -15
- data/lib/chef/knife/rackspace_server_create.rb +49 -30
- data/lib/knife-rackspace/version.rb +1 -1
- data/spec/cassettes/v1/should_list_images.yml +38 -45
- data/spec/cassettes/v1/should_list_server_flavors.yml +87 -94
- data/spec/cassettes/v2/should_list_images.yml +150 -147
- data/spec/cassettes/v2/should_list_server_flavors.yml +60 -67
- data/spec/unit/rackspace_base_spec.rb +38 -0
- metadata +17 -31
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'chef/knife/rackspace_base'
|
4
|
+
require 'chef/knife'
|
5
|
+
|
6
|
+
class RackspaceBaseTester < Chef::Knife
|
7
|
+
include Chef::Knife::RackspaceBase
|
8
|
+
end
|
9
|
+
|
10
|
+
describe "auth_endpoint" do
|
11
|
+
it "should select the custom endpoint if specified" do
|
12
|
+
tester = RackspaceBaseTester.new
|
13
|
+
|
14
|
+
test_url = "http://test-url.com"
|
15
|
+
Chef::Config[:knife][:rackspace_auth_url] = test_url
|
16
|
+
Chef::Config[:knife][:rackspace_region] = :ord
|
17
|
+
|
18
|
+
tester.auth_endpoint.should == test_url
|
19
|
+
end
|
20
|
+
|
21
|
+
[:dfw, :ord, :syd].each do |region|
|
22
|
+
it "should pick the US endpoint if the region is #{region}" do
|
23
|
+
tester = RackspaceBaseTester.new
|
24
|
+
Chef::Config[:knife][:rackspace_auth_url] = nil
|
25
|
+
Chef::Config[:knife][:rackspace_region] = region
|
26
|
+
|
27
|
+
tester.auth_endpoint.should == ::Fog::Rackspace::US_AUTH_ENDPOINT
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should pick the UK end point if the region is :lon" do
|
32
|
+
tester = RackspaceBaseTester.new
|
33
|
+
Chef::Config[:knife][:rackspace_auth_url] = nil
|
34
|
+
Chef::Config[:knife][:rackspace_region] = 'lon'
|
35
|
+
|
36
|
+
tester.auth_endpoint.should == ::Fog::Rackspace::UK_AUTH_ENDPOINT
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-rackspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adam Jacob
|
@@ -11,44 +10,39 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
16
|
+
name: knife-windows
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ! '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - ! '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
|
-
version: '
|
28
|
+
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
|
-
name:
|
30
|
+
name: fog
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - ~>
|
38
34
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
35
|
+
version: '1.12'
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - ~>
|
46
41
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
42
|
+
version: '1.12'
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: chef
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
47
|
- - ! '>='
|
54
48
|
- !ruby/object:Gem::Version
|
@@ -56,7 +50,6 @@ dependencies:
|
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
54
|
- - ! '>='
|
62
55
|
- !ruby/object:Gem::Version
|
@@ -64,7 +57,6 @@ dependencies:
|
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: rspec
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
61
|
- - ! '>='
|
70
62
|
- !ruby/object:Gem::Version
|
@@ -72,7 +64,6 @@ dependencies:
|
|
72
64
|
type: :development
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
68
|
- - ! '>='
|
78
69
|
- !ruby/object:Gem::Version
|
@@ -80,7 +71,6 @@ dependencies:
|
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: vcr
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
75
|
- - ! '>='
|
86
76
|
- !ruby/object:Gem::Version
|
@@ -88,7 +78,6 @@ dependencies:
|
|
88
78
|
type: :development
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
82
|
- - ! '>='
|
94
83
|
- !ruby/object:Gem::Version
|
@@ -96,7 +85,6 @@ dependencies:
|
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: ansi
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
89
|
- - ! '>='
|
102
90
|
- !ruby/object:Gem::Version
|
@@ -104,7 +92,6 @@ dependencies:
|
|
104
92
|
type: :development
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
96
|
- - ! '>='
|
110
97
|
- !ruby/object:Gem::Version
|
@@ -112,7 +99,6 @@ dependencies:
|
|
112
99
|
- !ruby/object:Gem::Dependency
|
113
100
|
name: rake
|
114
101
|
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
102
|
requirements:
|
117
103
|
- - ! '>='
|
118
104
|
- !ruby/object:Gem::Version
|
@@ -120,7 +106,6 @@ dependencies:
|
|
120
106
|
type: :development
|
121
107
|
prerelease: false
|
122
108
|
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
109
|
requirements:
|
125
110
|
- - ! '>='
|
126
111
|
- !ruby/object:Gem::Version
|
@@ -162,29 +147,29 @@ files:
|
|
162
147
|
- spec/integration/integration_spec.rb
|
163
148
|
- spec/integration_spec_helper.rb
|
164
149
|
- spec/spec_helper.rb
|
150
|
+
- spec/unit/rackspace_base_spec.rb
|
165
151
|
homepage: http://wiki.opscode.com/display/chef
|
166
152
|
licenses: []
|
153
|
+
metadata: {}
|
167
154
|
post_install_message:
|
168
155
|
rdoc_options: []
|
169
156
|
require_paths:
|
170
157
|
- lib
|
171
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
159
|
requirements:
|
174
160
|
- - ! '>='
|
175
161
|
- !ruby/object:Gem::Version
|
176
162
|
version: '0'
|
177
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
164
|
requirements:
|
180
165
|
- - ! '>='
|
181
166
|
- !ruby/object:Gem::Version
|
182
167
|
version: '0'
|
183
168
|
requirements: []
|
184
169
|
rubyforge_project:
|
185
|
-
rubygems_version:
|
170
|
+
rubygems_version: 2.0.5
|
186
171
|
signing_key:
|
187
|
-
specification_version:
|
172
|
+
specification_version: 4
|
188
173
|
summary: Rackspace Support for Chef's Knife Command
|
189
174
|
test_files:
|
190
175
|
- spec/cassettes/v1/should_list_images.yml
|
@@ -194,3 +179,4 @@ test_files:
|
|
194
179
|
- spec/integration/integration_spec.rb
|
195
180
|
- spec/integration_spec_helper.rb
|
196
181
|
- spec/spec_helper.rb
|
182
|
+
- spec/unit/rackspace_base_spec.rb
|