kitchen-rackspace 0.15.1 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc4d175ad8b040d01ac4b092295a4cf39316c892
4
- data.tar.gz: e8a52bfeecdf540a22e047a50ef20799db101baa
3
+ metadata.gz: 77183515480d783a6309399183618c9a490f2810
4
+ data.tar.gz: 9022359c458195ab0a51695cd325db79d7320fbe
5
5
  SHA512:
6
- metadata.gz: 275393a9c946967cee14d710a78c5a15b543e48f39e04476717f1a7c8c414c6a91eac5c7356f3f07c8a4ed71099e51019a4750010612d699bdf94e18587f9972
7
- data.tar.gz: 5b45f5f12153cfbefbbf4017fe96ddf2e9f37abab92a63c6932c83b726d72c12fc96ebe264165691503f4953d1e87e6adda921caa25ecc3acd2aa63027618293
6
+ metadata.gz: a15470769adb5a2be4af8d93ccb91686edef7636d101e1feb7d49b191d2eaf306d8e70320de4be2fdef978141d75a6267a2f4dfd526eca6f06311d094d0111d7
7
+ data.tar.gz: a5ba22d5f7e372ef224cd09b5c1f6cd214d48128fb7dd97adfe5ae7b6730a8e1cba54cc4b8867eae4513d9d87938d696b8d50f99386f57a388b3bb8782d81f4e
@@ -1,3 +1,8 @@
1
+ # 0.16.0 / 2015-04-15
2
+
3
+ * PR [#50][] - Update image IDs, support 'centos-7.0' in addition to
4
+ 'centos-7'; via [@martinb3][]
5
+
1
6
  # 0.15.1 / 2015-04-03
2
7
 
3
8
  * PR [#49][] - Update image IDs, re-add CentOS point release numbers; via
@@ -129,6 +134,8 @@ boot times, via [@coderanger][]
129
134
 
130
135
  * Initial release! Woo!
131
136
 
137
+ [#50]: https://github.com/test-kitchen/kitchen-rackspace/pull/50
138
+ [#49]: https://github.com/test-kitchen/kitchen-rackspace/pull/49
132
139
  [#48]: https://github.com/test-kitchen/kitchen-rackspace/pull/48
133
140
  [#46]: https://github.com/test-kitchen/kitchen-rackspace/pull/46
134
141
  [#45]: https://github.com/test-kitchen/kitchen-rackspace/pull/45
data/README.md CHANGED
@@ -1,17 +1,25 @@
1
- [![Gem Version](https://badge.fury.io/rb/kitchen-rackspace.png)](http://badge.fury.io/rb/kitchen-rackspace)
2
- [![Build Status](https://travis-ci.org/test-kitchen/kitchen-rackspace.png?branch=master)](https://travis-ci.org/test-kitchen/kitchen-rackspace)
3
- [![Code Climate](https://codeclimate.com/github/test-kitchen/kitchen-rackspace.png)](https://codeclimate.com/github/test-kitchen/kitchen-rackspace)
4
- [![Coverage Status](https://coveralls.io/repos/test-kitchen/kitchen-rackspace/badge.png)](https://coveralls.io/r/test-kitchen/kitchen-rackspace)
5
- [![Dependency Status](https://gemnasium.com/test-kitchen/kitchen-rackspace.png)](https://gemnasium.com/test-kitchen/kitchen-rackspace)
1
+ [![Gem Version](https://img.shields.io/gem/v/kitchen-rackspace.svg)][gem]
2
+ [![Build Status](https://img.shields.io/travis/test-kitchen/kitchen-rackspace.svg)][travis]
3
+ [![Code Climate](https://img.shields.io/codeclimate/github/test-kitchen/kitchen-rackspace.svg)][codeclimate]
4
+ [![Coverage Status](https://img.shields.io/coveralls/test-kitchen/kitchen-rackspace.svg)][coveralls]
5
+ [![Dependency Status](https://img.shields.io/gemnasium/test-kitchen/kitchen-rackspace.svg)][gemnasium]
6
6
 
7
- # Kitchen::Rackspace
7
+ [gem]: https://rubygems.org/gems/kitchen-rackspace
8
+ [travis]: https://travis-ci.org/test-kitchen/kitchen-rackspace
9
+ [codeclimate]: https://codeclimate.com/github/test-kitchen/kitchen-rackspace
10
+ [coveralls]: https://coveralls.io/r/test-kitchen/kitchen-rackspace
11
+ [gemnasium]: https://gemnasium.com/test-kitchen/kitchen-rackspace
12
+
13
+ Kitchen::Rackspace
14
+ ==================
8
15
 
9
16
  A Rackspace Cloud Servers driver for Test Kitchen!
10
17
 
11
18
  Shamelessly copied from [Fletcher Nichol](https://github.com/fnichol)'s
12
19
  awesome work on an [EC2 driver](https://github.com/opscode/kitchen-ec2).
13
20
 
14
- ## Installation
21
+ Installation
22
+ ------------
15
23
 
16
24
  Add this line to your application's Gemfile:
17
25
 
@@ -25,7 +33,8 @@ Or install it yourself as:
25
33
 
26
34
  $ gem install kitchen-rackspace
27
35
 
28
- ## Usage
36
+ Usage
37
+ -----
29
38
 
30
39
  Provide, at a minimum, the required driver options in your `.kitchen.yml` file:
31
40
 
@@ -64,7 +73,8 @@ Some configs are also derived based on your .ssh directory, specifically the
64
73
  - `~/.ssh/identity.pub`
65
74
  - `~/.ssh/id_ecdsa.pub`
66
75
 
67
- ## Contributing
76
+ Contributing
77
+ ------------
68
78
 
69
79
  1. Fork it
70
80
  2. `bundle install`
@@ -1,53 +1,60 @@
1
1
  {
2
- "arch": "ac58054a-9287-4421-89a4-bbcb481258d7",
3
- "arch-2015": "ac58054a-9287-4421-89a4-bbcb481258d7",
4
- "arch-2015.3": "ac58054a-9287-4421-89a4-bbcb481258d7",
5
- "centos": "0af7334f-c22a-4c24-906b-950b8ef51a86",
6
- "centos-5": "922e9afc-ebe4-43e6-8eaf-c555cf7f8cd6",
7
- "centos-5.11": "922e9afc-ebe4-43e6-8eaf-c555cf7f8cd6",
8
- "centos-6": "a4a82b28-c5a8-49e3-b31a-db289dcac0f8",
9
- "centos-6.6": "a4a82b28-c5a8-49e3-b31a-db289dcac0f8",
10
- "centos-7": "0af7334f-c22a-4c24-906b-950b8ef51a86",
2
+ "arch": "7b1b7952-774a-48ba-bc87-5f7ef9cffbf9",
3
+ "arch-2015": "7b1b7952-774a-48ba-bc87-5f7ef9cffbf9",
4
+ "arch-2015.4": "7b1b7952-774a-48ba-bc87-5f7ef9cffbf9",
5
+ "centos": "af2606d8-14a8-4ba7-a2f7-04fa3660251d",
6
+ "centos-5": "b427b83e-a982-41ea-896c-a159c36db6cc",
7
+ "centos-5.11": "b427b83e-a982-41ea-896c-a159c36db6cc",
8
+ "centos-6": "6b025595-a83b-436b-b37d-d5b212b5ddfc",
9
+ "centos-6.6": "6b025595-a83b-436b-b37d-d5b212b5ddfc",
10
+ "centos-7": "af2606d8-14a8-4ba7-a2f7-04fa3660251d",
11
+ "centos-7.0": "af2606d8-14a8-4ba7-a2f7-04fa3660251d",
11
12
  "coreos": "c412af3b-f9a6-4ad1-a9e9-4aabca8073d3",
12
- "coreos-0": "981f0a5f-5f09-4b71-9372-6aa9fe1a68ac",
13
- "coreos-alpha": "378195c3-d10c-43dc-a4a7-661195dab075",
14
- "coreos-beta": "981f0a5f-5f09-4b71-9372-6aa9fe1a68ac",
13
+ "coreos-0": "c412af3b-f9a6-4ad1-a9e9-4aabca8073d3",
14
+ "coreos-alpha": "7cb765c5-be50-454e-8d55-c931bcdc256d",
15
+ "coreos-beta": "eda62992-7896-400f-8fe1-e08617137923",
15
16
  "coreos-stable": "c412af3b-f9a6-4ad1-a9e9-4aabca8073d3",
16
- "debian": "04399432-ac55-4e0b-bcd1-6c90fa568a0f",
17
- "debian-6": "076459d3-6a18-43d4-b8b1-653c2380f8cf",
18
- "debian-6.10": "076459d3-6a18-43d4-b8b1-653c2380f8cf",
19
- "debian-7": "04399432-ac55-4e0b-bcd1-6c90fa568a0f",
20
- "debian-8": "272a02e6-13cf-4d04-b6e5-7d31001d5510",
21
- "debian-testing": "272a02e6-13cf-4d04-b6e5-7d31001d5510",
22
- "debian-unstable": "892b9bab-a11e-4d16-b4bd-ab9494ed7b78",
23
- "fedora": "06c388fd-1906-43e0-93a7-eb1d1c6bb880",
24
- "fedora-20": "dccb6042-43a1-4c02-9b83-786a1cd27751",
25
- "fedora-21": "06c388fd-1906-43e0-93a7-eb1d1c6bb880",
26
- "freebsd": "1711732b-dd3f-456d-9a99-6f93b8a6859e",
27
- "freebsd-10": "1711732b-dd3f-456d-9a99-6f93b8a6859e",
28
- "freebsd-10.0": "1711732b-dd3f-456d-9a99-6f93b8a6859e",
29
- "gentoo": "e871e91b-64b9-478e-afaf-b0e3d9fb765a",
30
- "gentoo-15": "e871e91b-64b9-478e-afaf-b0e3d9fb765a",
31
- "gentoo-15.1": "e871e91b-64b9-478e-afaf-b0e3d9fb765a",
32
- "opensuse": "bf7b0aed-1227-439c-9845-2e06078f6e81",
33
- "opensuse-13": "bf7b0aed-1227-439c-9845-2e06078f6e81",
34
- "opensuse-13.2": "bf7b0aed-1227-439c-9845-2e06078f6e81",
35
- "redhat": "cecd0198-9e71-42eb-b577-353ed29fbd1c",
36
- "redhat-5": "fadbb733-931f-409d-bc45-e4b0dd0d252f",
37
- "redhat-5.11": "fadbb733-931f-409d-bc45-e4b0dd0d252f",
38
- "redhat-6": "71fec3e5-ffbf-4f03-879c-ece0289bcac6",
39
- "redhat-6.6": "71fec3e5-ffbf-4f03-879c-ece0289bcac6",
40
- "redhat-7": "cecd0198-9e71-42eb-b577-353ed29fbd1c",
41
- "scientific": "76e4ee70-1770-4039-abe4-6fcff38deadc",
42
- "scientific-6": "a6fd6683-e2ce-4d72-8514-dbb67232cfee",
43
- "scientific-6.6": "a6fd6683-e2ce-4d72-8514-dbb67232cfee",
44
- "scientific-7": "76e4ee70-1770-4039-abe4-6fcff38deadc",
45
- "ubuntu": "b50d9359-3669-4aee-be77-633c8f9386cf",
46
- "ubuntu-12": "fd1b9e98-21c5-43bb-89d7-bfc4ee3c5caf",
47
- "ubuntu-12.04": "fd1b9e98-21c5-43bb-89d7-bfc4ee3c5caf",
48
- "ubuntu-14": "b50d9359-3669-4aee-be77-633c8f9386cf",
49
- "ubuntu-14.04": "8226139f-3804-4ad6-a461-97ee034b2005",
50
- "ubuntu-14.10": "b50d9359-3669-4aee-be77-633c8f9386cf",
17
+ "debian": "1843796e-fcc5-409b-8f61-542347fe4ec4",
18
+ "debian-6": "874e0441-f7b7-456e-9c13-dd3f630d187c",
19
+ "debian-6.10": "874e0441-f7b7-456e-9c13-dd3f630d187c",
20
+ "debian-7": "1843796e-fcc5-409b-8f61-542347fe4ec4",
21
+ "debian-7.0": "1843796e-fcc5-409b-8f61-542347fe4ec4",
22
+ "debian-8": "1eef7229-45f5-42f0-bfe4-4bfad78c0af0",
23
+ "debian-8.0": "1eef7229-45f5-42f0-bfe4-4bfad78c0af0",
24
+ "debian-testing": "1eef7229-45f5-42f0-bfe4-4bfad78c0af0",
25
+ "debian-unstable": "7a049d7f-2538-4a80-9823-54e9af5fd57c",
26
+ "fedora": "02232c34-46b4-422d-a424-e5ef61297722",
27
+ "fedora-20": "f776fe34-5b1a-4ec9-808e-229596507d4c",
28
+ "fedora-20.0": "f776fe34-5b1a-4ec9-808e-229596507d4c",
29
+ "fedora-21": "02232c34-46b4-422d-a424-e5ef61297722",
30
+ "fedora-21.0": "02232c34-46b4-422d-a424-e5ef61297722",
31
+ "freebsd": "ee3041af-ab9f-4b7f-aa59-07d19606e424",
32
+ "freebsd-10": "ee3041af-ab9f-4b7f-aa59-07d19606e424",
33
+ "freebsd-10.0": "ee3041af-ab9f-4b7f-aa59-07d19606e424",
34
+ "gentoo": "c511e004-8287-4192-827b-e52f752b2942",
35
+ "gentoo-15": "c511e004-8287-4192-827b-e52f752b2942",
36
+ "gentoo-15.2": "c511e004-8287-4192-827b-e52f752b2942",
37
+ "opensuse": "5a22b877-e82e-4177-a130-753e3e112e37",
38
+ "opensuse-13": "5a22b877-e82e-4177-a130-753e3e112e37",
39
+ "opensuse-13.2": "5a22b877-e82e-4177-a130-753e3e112e37",
40
+ "redhat": "ff28d854-3edd-4bad-9897-e457e8b1e849",
41
+ "redhat-5": "a8552c7e-ebc2-48c0-ad00-be56fb29b302",
42
+ "redhat-5.11": "a8552c7e-ebc2-48c0-ad00-be56fb29b302",
43
+ "redhat-6": "14369199-08bf-4ac0-8bc0-d9e9881bdad4",
44
+ "redhat-6.6": "14369199-08bf-4ac0-8bc0-d9e9881bdad4",
45
+ "redhat-7": "ff28d854-3edd-4bad-9897-e457e8b1e849",
46
+ "redhat-7.0": "ff28d854-3edd-4bad-9897-e457e8b1e849",
47
+ "scientific": "a22d2fb5-25ac-472e-b91c-0934e930594c",
48
+ "scientific-6": "17b79103-9312-4d66-a5ea-be018bbd3f9d",
49
+ "scientific-6.6": "17b79103-9312-4d66-a5ea-be018bbd3f9d",
50
+ "scientific-7": "a22d2fb5-25ac-472e-b91c-0934e930594c",
51
+ "scientific-7.0": "a22d2fb5-25ac-472e-b91c-0934e930594c",
52
+ "ubuntu": "668b0764-4936-4eec-a2f2-3b5bb2c40b26",
53
+ "ubuntu-12": "ca9ab240-5fe5-43a4-b936-7dc5009cc67f",
54
+ "ubuntu-12.04": "ca9ab240-5fe5-43a4-b936-7dc5009cc67f",
55
+ "ubuntu-14": "668b0764-4936-4eec-a2f2-3b5bb2c40b26",
56
+ "ubuntu-14.04": "6f29d6a6-9972-4ae0-aa80-040fa2d6a9cf",
57
+ "ubuntu-14.10": "668b0764-4936-4eec-a2f2-3b5bb2c40b26",
51
58
  "vyatta": "07c16842-db34-449a-90ac-e8f05dd8564e",
52
59
  "vyatta-6": "07c16842-db34-449a-90ac-e8f05dd8564e",
53
60
  "vyatta-6.7": "07c16842-db34-449a-90ac-e8f05dd8564e",
@@ -4,8 +4,12 @@
4
4
  require 'fog'
5
5
  require 'json'
6
6
 
7
+ def whole?(x)
8
+ (x - x.floor) < 1e-6
9
+ end
10
+
7
11
  i_care_about = {
8
- 'Arch 2015.3 (PVHVM)' => %w(arch arch-2015 arch-2015.3),
12
+ 'Arch 2015.4 (PVHVM)' => %w(arch arch-2015 arch-2015.4),
9
13
  'CentOS 7 (PVHVM)' => %w(centos centos-7),
10
14
  'CentOS 6 (PVHVM)' => %w(centos-6),
11
15
  'CentOS 5 (PV)' => %w(centos-5),
@@ -19,7 +23,7 @@ i_care_about = {
19
23
  'Fedora 21 (PVHVM)' => %w(fedora fedora-21),
20
24
  'Fedora 20 (Heisenbug) (PVHVM)' => %w(fedora-20),
21
25
  'FreeBSD 10 (PVHVM)' => %w(freebsd freebsd-10),
22
- 'Gentoo 15.1 (PVHVM)' => %w(gentoo gentoo-15 gentoo-15.1),
26
+ 'Gentoo 15.2 (PVHVM)' => %w(gentoo gentoo-15 gentoo-15.2),
23
27
  'OpenSUSE 13.2 (PVHVM)' => %w(opensuse opensuse-13 opensuse-13.2),
24
28
  'Red Hat Enterprise Linux 7 (PVHVM)' => %w(redhat redhat-7),
25
29
  'Red Hat Enterprise Linux 6 (PVHVM)' => %w(redhat-6),
@@ -70,8 +74,13 @@ compute.images.select { |i| i_care_about.keys.include?(i.name) }.each do |img|
70
74
  distro = distro_id.split('.').last
71
75
  end
72
76
 
73
- alternate_name = "#{distro}-#{version}"
74
- res[alternate_name] = img.id
77
+ res["#{distro}-#{version}"] = img.id
78
+
79
+ # if it's a whole number non-zero version, also add
80
+ # a dot-zero (centos-7 vs centos-7.0)
81
+ if version != '0' && version =~ /^\s*\d+\s*$/
82
+ res["#{distro}-#{version}.0"] = img.id
83
+ end
75
84
  end
76
85
 
77
86
  i_care_about[img.name].each { |a| res[a] = img.id }
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.license = 'Apache'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
18
- spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
19
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = %w(lib)
21
21
 
22
22
  spec.required_ruby_version = '>= 1.9.3'
@@ -21,6 +21,6 @@ module Kitchen
21
21
  #
22
22
  # @author Jonathan Hartman <j@p4nt5.com>
23
23
  module Driver
24
- RACKSPACE_VERSION = '0.15.1'
24
+ RACKSPACE_VERSION = '0.16.0'
25
25
  end
26
26
  end
@@ -103,11 +103,11 @@ describe Kitchen::Driver::Rackspace do
103
103
  end
104
104
 
105
105
  platforms = {
106
- 'ubuntu-12.04' => 'fd1b9e98-21c5-43bb-89d7-bfc4ee3c5caf',
107
- 'ubuntu-12' => 'fd1b9e98-21c5-43bb-89d7-bfc4ee3c5caf',
108
- 'ubuntu' => 'b50d9359-3669-4aee-be77-633c8f9386cf',
109
- 'centos-5' => '922e9afc-ebe4-43e6-8eaf-c555cf7f8cd6',
110
- 'centos' => '0af7334f-c22a-4c24-906b-950b8ef51a86'
106
+ 'ubuntu-12.04' => 'ca9ab240-5fe5-43a4-b936-7dc5009cc67f',
107
+ 'ubuntu-12' => 'ca9ab240-5fe5-43a4-b936-7dc5009cc67f',
108
+ 'ubuntu' => '668b0764-4936-4eec-a2f2-3b5bb2c40b26',
109
+ 'centos-5' => 'b427b83e-a982-41ea-896c-a159c36db6cc',
110
+ 'centos' => 'af2606d8-14a8-4ba7-a2f7-04fa3660251d'
111
111
  }
112
112
  platforms.each do |platform, id|
113
113
  context "name is #{platform}" do
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.15.1
4
+ version: 0.16.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: 2015-04-03 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project:
209
- rubygems_version: 2.4.5
209
+ rubygems_version: 2.4.6
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: A Test Kitchen Rackspace driver built on Fog