kitchen-rackspace 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +9 -0
- data/data/images.json +21 -19
- data/helpers/dump_image_list.rb +58 -0
- data/lib/kitchen/driver/rackspace_version.rb +1 -1
- data/spec/kitchen/driver/rackspace_spec.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ccd25a789a37c85ac075132f6e3d337469efbe
|
4
|
+
data.tar.gz: 40110dcc2c8348d269e9fb431a2509cfdc7cf9c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f154376c3eb72b7e6a88366865b42e62e7d0ecd604e9b63f3e600a89805eea7e8d3006c34337ed51368709afaa4af9146f2deda7cc4c312b4695624b053f869
|
7
|
+
data.tar.gz: d9e441d9540f0f30cdf34ab71e8e247ef5caadade73ddf6f5691a7525ef6d368c59084549646916a7a25d04b3a78eeda6812f7050d89971bd387c9eef7563677
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 0.10.0 / 2014-08-28
|
2
|
+
|
3
|
+
### Improvements
|
4
|
+
|
5
|
+
* PR [#39][] - Update image ID list
|
6
|
+
* PR [#38][] - Recognize `debian-7.6` image name, via [@martinb3][]
|
7
|
+
|
1
8
|
# 0.9.0 / 2014-08-25
|
2
9
|
|
3
10
|
### Improvements
|
@@ -83,6 +90,8 @@ boot times, via [@coderanger][]
|
|
83
90
|
|
84
91
|
* Initial release! Woo!
|
85
92
|
|
93
|
+
[#39]: https://github.com/test-kitchen/kitchen-rackspace/pull/39
|
94
|
+
[#38]: https://github.com/test-kitchen/kitchen-rackspace/pull/38
|
86
95
|
[#37]: https://github.com/test-kitchen/kitchen-rackspace/pull/37
|
87
96
|
[#36]: https://github.com/test-kitchen/kitchen-rackspace/pull/36
|
88
97
|
[#35]: https://github.com/test-kitchen/kitchen-rackspace/pull/35
|
data/data/images.json
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
{
|
2
|
-
"arch": "
|
3
|
-
"arch-2014": "
|
4
|
-
"arch-2014.8": "
|
2
|
+
"arch": "88928a0a-f94c-47e3-ad7d-27b735af1a15",
|
3
|
+
"arch-2014": "88928a0a-f94c-47e3-ad7d-27b735af1a15",
|
4
|
+
"arch-2014.8": "88928a0a-f94c-47e3-ad7d-27b735af1a15",
|
5
5
|
"centos": "76016123-eed4-4666-aea9-651fd26ee13c",
|
6
6
|
"centos-7": "76016123-eed4-4666-aea9-651fd26ee13c",
|
7
7
|
"centos-7.0": "76016123-eed4-4666-aea9-651fd26ee13c",
|
8
8
|
"centos-6": "a84b1592-6817-42da-a57c-3c13f3cfc1da",
|
9
9
|
"centos-6.5": "a84b1592-6817-42da-a57c-3c13f3cfc1da",
|
10
|
-
"centos-5": "
|
11
|
-
"centos-5.10": "
|
10
|
+
"centos-5": "1078244e-5906-4faf-b88a-a4202889dc00",
|
11
|
+
"centos-5.10": "1078244e-5906-4faf-b88a-a4202889dc00",
|
12
12
|
"coreos": "4ca73331-5063-429f-8a27-70de5099e747",
|
13
13
|
"coreos-stable": "4ca73331-5063-429f-8a27-70de5099e747",
|
14
14
|
"coreos-beta": "746ba067-035c-4dbb-91f6-39300a7f8a03",
|
15
|
-
"coreos-alpha": "
|
16
|
-
"debian": "
|
17
|
-
"debian-7": "
|
15
|
+
"coreos-alpha": "78a24bc3-2545-433b-8067-a5143c04a3c3",
|
16
|
+
"debian": "3e1c00f6-bcbb-4590-903a-c39662bdbc3d",
|
17
|
+
"debian-7": "3e1c00f6-bcbb-4590-903a-c39662bdbc3d",
|
18
|
+
"debian-7.6": "3e1c00f6-bcbb-4590-903a-c39662bdbc3d",
|
18
19
|
"debian-6": "695ca76e-fc0d-4e36-82e0-8ed66480a999",
|
19
20
|
"debian-6.06": "695ca76e-fc0d-4e36-82e0-8ed66480a999",
|
20
21
|
"debian-testing": "ed2dd345-b0a5-42aa-b061-a153c91e2c6d",
|
@@ -34,25 +35,26 @@
|
|
34
35
|
"redhat": "3a6e29eb-3e17-40ed-9f1e-c6c0fb8fcb76",
|
35
36
|
"redhat-6": "3a6e29eb-3e17-40ed-9f1e-c6c0fb8fcb76",
|
36
37
|
"redhat-6.5": "3a6e29eb-3e17-40ed-9f1e-c6c0fb8fcb76",
|
37
|
-
"redhat-5": "
|
38
|
-
"redhat-5.10": "
|
38
|
+
"redhat-5": "e8e7f2be-4e6a-4a77-823b-5cc549f7f9d6",
|
39
|
+
"redhat-5.10": "e8e7f2be-4e6a-4a77-823b-5cc549f7f9d6",
|
39
40
|
"scientific": "f55d6a42-c4f8-4285-b00a-808b62c2e649",
|
40
41
|
"scientific-6": "f55d6a42-c4f8-4285-b00a-808b62c2e649",
|
41
42
|
"scientific-6.5": "f55d6a42-c4f8-4285-b00a-808b62c2e649",
|
42
|
-
"ubuntu":"255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
43
|
-
"ubuntu-14":"255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
44
|
-
"ubuntu-14.04":"255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
43
|
+
"ubuntu": "255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
44
|
+
"ubuntu-14": "255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
45
|
+
"ubuntu-14.04": "255df5fb-e3d4-45a3-9a07-c976debf7c14",
|
45
46
|
"ubuntu-12": "928e709d-35f0-47eb-b296-d18e1b0a76b7",
|
46
47
|
"ubuntu-12.04": "928e709d-35f0-47eb-b296-d18e1b0a76b7",
|
47
48
|
"ubuntu-10": "8c964b3f-8c15-4966-86ee-7a55824df564",
|
48
49
|
"ubuntu-10.04": "8c964b3f-8c15-4966-86ee-7a55824df564",
|
49
50
|
"vyatta": "59b394f6-b2e0-4f11-b7d1-7fea4abc60a0",
|
51
|
+
"vyatta-6": "59b394f6-b2e0-4f11-b7d1-7fea4abc60a0",
|
50
52
|
"vyatta-6.5": "59b394f6-b2e0-4f11-b7d1-7fea4abc60a0",
|
51
53
|
"vyatta-6.5R2": "59b394f6-b2e0-4f11-b7d1-7fea4abc60a0",
|
52
|
-
"windows": "
|
53
|
-
"windows-2012": "
|
54
|
-
"windows-2012R2": "
|
55
|
-
"windows-2008": "
|
56
|
-
"windows-2008R2": "
|
57
|
-
"windows-2008R2SP1": "
|
54
|
+
"windows": "d868bbb5-0f01-4938-b5f5-dfc2b55b6336",
|
55
|
+
"windows-2012": "d868bbb5-0f01-4938-b5f5-dfc2b55b6336",
|
56
|
+
"windows-2012R2": "d868bbb5-0f01-4938-b5f5-dfc2b55b6336",
|
57
|
+
"windows-2008": "03cdb95f-c6ab-4157-98af-c1395164fde0",
|
58
|
+
"windows-2008R2": "03cdb95f-c6ab-4157-98af-c1395164fde0",
|
59
|
+
"windows-2008R2SP1": "03cdb95f-c6ab-4157-98af-c1395164fde0"
|
58
60
|
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Encoding: UTF-8
|
3
|
+
|
4
|
+
require 'fog'
|
5
|
+
require 'json'
|
6
|
+
|
7
|
+
i_care_about = {
|
8
|
+
'Arch 2014.8 (PVHVM)' => %w(arch arch-2014 arch-2014.8),
|
9
|
+
'CentOS 7 (PVHVM)' => %w(centos centos-7 centos-7.0),
|
10
|
+
'CentOS 6.5 (PVHVM)' => %w(centos-6 centos-6.5),
|
11
|
+
'CentOS 5.10' => %w(centos-5 centos-5.10),
|
12
|
+
'CoreOS (Stable)' => %w(coreos coreos-stable),
|
13
|
+
'CoreOS (Beta)' => %w(coreos-beta),
|
14
|
+
'CoreOS (Alpha)' => %w(coreos-alpha),
|
15
|
+
'Debian 7 (Wheezy) (PVHVM)' => %w(debian debian-7 debian-7.6),
|
16
|
+
'Debian 6.06 (Squeeze)' => %w(debian-6 debian-6.06),
|
17
|
+
'Debian Testing (Jessie) (PVHVM)' => %w(debian-testing),
|
18
|
+
'Debian Unstable (Sid) (PVHVM)' => %w(debian-unstable),
|
19
|
+
'Fedora 20 (Heisenbug) (PVHVM)' => %w(fedora fedora-20),
|
20
|
+
"Fedora 19 (Schrodinger's Cat) (PVHVM)" => %w(fedora-19),
|
21
|
+
'FreeBSD 10.0' => %w(freebsd freebsd-10 freebsd-10.0),
|
22
|
+
'Gentoo 14.3 (PVHVM)' => %w(gentoo gentoo-14 gentoo-14.3),
|
23
|
+
'OpenSUSE 13.1 (PVHVM)' => %w(opensuse opensuse-13 opensuse-13.1),
|
24
|
+
'Red Hat Enterprise Linux 6.5 (PVHVM)' => %w(redhat redhat-6 redhat-6.5),
|
25
|
+
'Red Hat Enterprise Linux 5.10' => %w(redhat-5 redhat-5.10),
|
26
|
+
'Scientific Linux 6.5 (PVHVM)' => %w(scientific scientific-6 scientific-6.5),
|
27
|
+
'Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)' => %w(ubuntu ubuntu-14 ubuntu-14.04),
|
28
|
+
'Ubuntu 12.04 LTS (Precise Pangolin) (PVHVM)' => %w(ubuntu-12 ubuntu-12.04),
|
29
|
+
'Ubuntu 10.04 LTS (Lucid Lynx)' => %w(ubuntu-10 ubuntu-10.04),
|
30
|
+
'Vyatta Network OS 6.5R2' => %w(vyatta vyatta-6 vyatta-6.5 vyatta-6.5R2),
|
31
|
+
'Windows Server 2012 R2' => %w(windows windows-2012 windows-2012R2),
|
32
|
+
'Windows Server 2008 R2 SP1' => %w(windows-2008
|
33
|
+
windows-2008R2
|
34
|
+
windows-2008R2SP1)
|
35
|
+
}
|
36
|
+
|
37
|
+
compute = Fog::Compute.new(provider: 'Rackspace',
|
38
|
+
rackspace_username: ENV['RACKSPACE_USERNAME'],
|
39
|
+
rackspace_api_key: ENV['RACKSPACE_API_KEY'],
|
40
|
+
rackspace_region: 'ORD')
|
41
|
+
|
42
|
+
aliases = i_care_about.values.flatten
|
43
|
+
res = aliases.each_with_object({}) do |a, hsh|
|
44
|
+
fail "Alias '#{a}' was listed twice" if hsh.include?(a)
|
45
|
+
hsh.merge!(a => nil)
|
46
|
+
hsh
|
47
|
+
end
|
48
|
+
|
49
|
+
compute.images.select { |i| i_care_about.keys.include?(i.name) }.each do |img|
|
50
|
+
i_care_about[img.name].each { |a| res[a] = img.id }
|
51
|
+
i_care_about.delete(img.name)
|
52
|
+
end
|
53
|
+
|
54
|
+
unless i_care_about.empty?
|
55
|
+
fail "Couldn't find some images we expected: #{i_care_about.keys}"
|
56
|
+
end
|
57
|
+
|
58
|
+
puts JSON.pretty_generate(res)
|
@@ -118,8 +118,8 @@ describe Kitchen::Driver::Rackspace do
|
|
118
118
|
'ubuntu-12.04' => '928e709d-35f0-47eb-b296-d18e1b0a76b7',
|
119
119
|
'ubuntu-12' => '928e709d-35f0-47eb-b296-d18e1b0a76b7',
|
120
120
|
'ubuntu' => '255df5fb-e3d4-45a3-9a07-c976debf7c14',
|
121
|
-
'centos-5.10' => '
|
122
|
-
'centos-5' => '
|
121
|
+
'centos-5.10' => '1078244e-5906-4faf-b88a-a4202889dc00',
|
122
|
+
'centos-5' => '1078244e-5906-4faf-b88a-a4202889dc00',
|
123
123
|
'centos' => '76016123-eed4-4666-aea9-651fd26ee13c'
|
124
124
|
}
|
125
125
|
platforms.each do |platform, id|
|
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.10.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-08-
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -194,6 +194,7 @@ files:
|
|
194
194
|
- README.md
|
195
195
|
- Rakefile
|
196
196
|
- data/images.json
|
197
|
+
- helpers/dump_image_list.rb
|
197
198
|
- kitchen-rackspace.gemspec
|
198
199
|
- lib/kitchen/driver/rackspace.rb
|
199
200
|
- lib/kitchen/driver/rackspace_version.rb
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
220
|
version: '0'
|
220
221
|
requirements: []
|
221
222
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.2.2
|
223
224
|
signing_key:
|
224
225
|
specification_version: 4
|
225
226
|
summary: A Test Kitchen Rackspace driver
|