kitchen-rackspace 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +2 -1
- data/kitchen-rackspace.gemspec +2 -0
- data/lib/kitchen/driver/rackspace.rb +6 -0
- data/lib/kitchen/driver/rackspace_version.rb +1 -1
- data/spec/kitchen/driver/rackspace_spec.rb +13 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b6ad1b82218423e30dd436c57e0949af375be81
|
4
|
+
data.tar.gz: b540dc54dd38bc55cf9bf722c40ab295ce4368fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2555752417f24ba89c00527650c8d06683829b5923c05d94471e9b71220415972ea758fc15032939629e7b42b1f54a6afbb817a1597951afe8d3a4829693b6
|
7
|
+
data.tar.gz: c35ed4715edc6cdf181bf38496a7f66f78f9a3622a562d3ae1c4fdf55212a7cac785aa22a72e9d0051b480085714884ae68cfc03a95a4992e6454c3c0c0d49ee
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 0.6.0 / 2014-05-13
|
2
|
+
|
3
|
+
* PR [#25][] - Allow overridding of Fog's default timeout; via [@pezholio][]
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
* PR [#24][] - Error out immediately when trying to install in Ruby 1.8
|
7
|
+
|
1
8
|
# 0.5.0 / 2014-05-01
|
2
9
|
|
3
10
|
### Improvements
|
@@ -46,6 +53,8 @@ boot times, via [@coderanger][]
|
|
46
53
|
|
47
54
|
* Initial release! Woo!
|
48
55
|
|
56
|
+
[#25]: https://github.com/test-kitchen/kitchen-rackspace/pull/25
|
57
|
+
[#24]: https://github.com/test-kitchen/kitchen-rackspace/pull/24
|
49
58
|
[#23]: https://github.com/test-kitchen/kitchen-rackspace/pull/23
|
50
59
|
[#22]: https://github.com/test-kitchen/kitchen-rackspace/pull/22
|
51
60
|
[#21]: https://github.com/test-kitchen/kitchen-rackspace/pull/21
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Kitchen::Rackspace
|
8
8
|
|
9
|
-
A Rackspace Cloud Servers driver for Test Kitchen
|
9
|
+
A Rackspace Cloud Servers driver for Test Kitchen!
|
10
10
|
|
11
11
|
Shamelessly copied from [Fletcher Nichol](https://github.com/fnichol)'s
|
12
12
|
awesome work on an [EC2 driver](https://github.com/opscode/kitchen-ec2).
|
@@ -45,6 +45,7 @@ for your specified platform. Additional, optional overrides can be provided:
|
|
45
45
|
server_name: [A UNIQUE SERVER NAME]
|
46
46
|
public_key_path: [PATH TO YOUR PUBLIC SSH KEY]
|
47
47
|
rackspace_region: [A VALID RACKSPACE DC/REGION]
|
48
|
+
wait_for: [NUM OF SECONDS TO WAIT BEFORE TIMING OUT, DEFAULT 600]
|
48
49
|
|
49
50
|
You also have the option of providing some configs via environment variables:
|
50
51
|
|
data/kitchen-rackspace.gemspec
CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
+
spec.required_ruby_version = '>= 1.9.0'
|
23
|
+
|
22
24
|
spec.add_dependency 'test-kitchen', '~> 1.1'
|
23
25
|
spec.add_dependency 'fog', '~> 1.18'
|
24
26
|
# Newer Fogs throw a warning if unf isn't there :(
|
@@ -33,6 +33,7 @@ module Kitchen
|
|
33
33
|
default_config :username, 'root'
|
34
34
|
default_config :port, '22'
|
35
35
|
default_config :rackspace_region, 'dfw'
|
36
|
+
default_config :wait_for, 600
|
36
37
|
|
37
38
|
default_config :image_id do |driver|
|
38
39
|
driver.default_image
|
@@ -64,6 +65,11 @@ module Kitchen
|
|
64
65
|
required_config :image_id
|
65
66
|
required_config :public_key_path
|
66
67
|
|
68
|
+
def initialize(config)
|
69
|
+
Fog.timeout = config[:wait_for].to_i
|
70
|
+
super
|
71
|
+
end
|
72
|
+
|
67
73
|
def create(state)
|
68
74
|
server = create_server
|
69
75
|
state[:server_id] = server.id
|
@@ -86,6 +86,10 @@ describe Kitchen::Driver::Rackspace do
|
|
86
86
|
it 'defaults to API key from $RACKSPACE_API_KEY' do
|
87
87
|
expect(driver[:rackspace_api_key]).to eq('key')
|
88
88
|
end
|
89
|
+
|
90
|
+
it 'defaults to wait_for timeout of 600 seconds' do
|
91
|
+
expect(driver[:wait_for]).to eq(600)
|
92
|
+
end
|
89
93
|
end
|
90
94
|
|
91
95
|
platforms = {
|
@@ -114,7 +118,8 @@ describe Kitchen::Driver::Rackspace do
|
|
114
118
|
username: 'admin',
|
115
119
|
port: '2222',
|
116
120
|
server_name: 'puppy',
|
117
|
-
rackspace_region: 'ord'
|
121
|
+
rackspace_region: 'ord',
|
122
|
+
wait_for: 1200
|
118
123
|
}
|
119
124
|
|
120
125
|
let(:config) { config }
|
@@ -124,6 +129,10 @@ describe Kitchen::Driver::Rackspace do
|
|
124
129
|
expect(driver[key]).to eq(value)
|
125
130
|
end
|
126
131
|
end
|
132
|
+
|
133
|
+
it 'sets the new wait_for variable' do
|
134
|
+
expect(Fog.timeout).to eq(1200)
|
135
|
+
end
|
127
136
|
end
|
128
137
|
|
129
138
|
context 'OpenStack environment variables' do
|
@@ -150,6 +159,7 @@ describe Kitchen::Driver::Rackspace do
|
|
150
159
|
public_ip_address: '1.2.3.4')
|
151
160
|
end
|
152
161
|
let(:driver) do
|
162
|
+
config[:wait_for] = '1200'
|
153
163
|
d = Kitchen::Driver::Rackspace.new(config)
|
154
164
|
d.instance = instance
|
155
165
|
d.stub(:default_name).and_return('a_monkey!')
|
@@ -162,7 +172,8 @@ describe Kitchen::Driver::Rackspace do
|
|
162
172
|
let(:config) do
|
163
173
|
{
|
164
174
|
rackspace_username: 'hello',
|
165
|
-
rackspace_api_key: 'world'
|
175
|
+
rackspace_api_key: 'world',
|
176
|
+
wait_for: 1200
|
166
177
|
}
|
167
178
|
end
|
168
179
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-rackspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Hartman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
210
|
requirements:
|
211
211
|
- - ">="
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
213
|
+
version: 1.9.0
|
214
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
215
|
requirements:
|
216
216
|
- - ">="
|