kitchen-openstack 3.5.1 → 3.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 +14 -1
- data/README.md +2 -0
- data/lib/kitchen/driver/openstack.rb +2 -2
- data/lib/kitchen/driver/openstack_version.rb +2 -2
- data/spec/kitchen/driver/openstack/volume_spec.rb +2 -1
- data/spec/kitchen/driver/openstack_spec.rb +12 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd5380a56bf4934435738cf4675e3e076b7af6ca
|
4
|
+
data.tar.gz: 723397c02f27b9201d0018f2c62755af0e766115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f1028de02e5b5ef2e0ad6c9d2482dc90e40a9f4315a2d3b9d4a79b19475bebc721651ec3b8dd09226e28c10b73a28095d0f1c6e2e51c104f02ef7777b8bff1
|
7
|
+
data.tar.gz: 51533dd416982cb9a7c209dfd78c8c46a167262e8b5804275d9f6688e2083cebc8503aad3eb212aba3490e5e1ccb58207dc99d68683a95e7aa421ef88b1dce20
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,20 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [v3.
|
3
|
+
## [v3.6.0](https://github.com/test-kitchen/kitchen-openstack/tree/v3.6.0)
|
4
4
|
|
5
|
+
[Full Changelog](https://github.com/test-kitchen/kitchen-openstack/compare/v3.5.1...v3.6.0)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Is there a way to re-use volume? [\#181](https://github.com/test-kitchen/kitchen-openstack/issues/181)
|
10
|
+
- private method `select' called for nil:NilClass [\#177](https://github.com/test-kitchen/kitchen-openstack/issues/177)
|
11
|
+
- The request you have made requires authentication [\#167](https://github.com/test-kitchen/kitchen-openstack/issues/167)
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- Support for v3 [\#179](https://github.com/test-kitchen/kitchen-openstack/pull/179) ([andybrucenet](https://github.com/andybrucenet))
|
16
|
+
|
17
|
+
## [v3.5.1](https://github.com/test-kitchen/kitchen-openstack/tree/v3.5.1) (2017-11-10)
|
5
18
|
[Full Changelog](https://github.com/test-kitchen/kitchen-openstack/compare/v3.5.0...v3.5.1)
|
6
19
|
|
7
20
|
**Closed issues:**
|
data/README.md
CHANGED
@@ -50,6 +50,7 @@ driver:
|
|
50
50
|
openstack_username: [YOUR OPENSTACK USERNAME]
|
51
51
|
openstack_api_key: [YOUR OPENSTACK API KEY] # AKA your OpenStack Password
|
52
52
|
openstack_auth_url: [YOUR OPENSTACK AUTH URL] # if you are using v3, API_URL/v3/auth/tokens
|
53
|
+
openstack_domain_id: [default is 'default'; otherwise YOUR OPENSTACK DOMAIN ID]
|
53
54
|
require_chef_omnibus: [e.g. 'true' or a version number if you need Chef]
|
54
55
|
image_ref: [SERVER IMAGE ID]
|
55
56
|
flavor_ref: [SERVER FLAVOR ID]
|
@@ -387,6 +388,7 @@ driver:
|
|
387
388
|
openstack_username: [YOUR OPENSTACK USERNAME]
|
388
389
|
openstack_api_key: [YOUR OPENSTACK API KEY] # AKA your OPENSTACK PASSWORD
|
389
390
|
openstack_auth_url: [YOUR OPENSTACK AUTH URL]
|
391
|
+
openstack_domain_id: [default is 'default'; otherwise YOUR OPENSTACK DOMAIN ID]
|
390
392
|
require_chef_omnibus: [e.g. 'true' or a version number if you need Chef]
|
391
393
|
image_ref: [SERVER IMAGE ID]
|
392
394
|
flavor_ref: [SERVER FLAVOR ID]
|
@@ -39,7 +39,7 @@ module Kitchen
|
|
39
39
|
default_config :key_name, nil
|
40
40
|
default_config :port, "22"
|
41
41
|
default_config :use_ipv6, false
|
42
|
-
default_config :
|
42
|
+
default_config :openstack_project_name, nil
|
43
43
|
default_config :openstack_region, nil
|
44
44
|
default_config :openstack_service_name, nil
|
45
45
|
default_config :openstack_network_name, nil
|
@@ -143,7 +143,7 @@ module Kitchen
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def required_server_settings
|
146
|
-
%i{openstack_username openstack_api_key openstack_auth_url}
|
146
|
+
%i{openstack_username openstack_api_key openstack_auth_url openstack_domain_id}
|
147
147
|
end
|
148
148
|
|
149
149
|
def optional_server_settings
|
@@ -4,7 +4,7 @@
|
|
4
4
|
# Author:: Jonathan Hartman (<j@p4nt5.com>)
|
5
5
|
#
|
6
6
|
# Copyright (C) 2013-2015, Jonathan Hartman
|
7
|
-
# Copyright (C) 2015-
|
7
|
+
# Copyright (C) 2015-2018, Chef Software Inc
|
8
8
|
#
|
9
9
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
10
10
|
# you may not use this file except in compliance with the License.
|
@@ -23,6 +23,6 @@ module Kitchen
|
|
23
23
|
#
|
24
24
|
# @author Jonathan Hartman <j@p4nt5.com>
|
25
25
|
module Driver
|
26
|
-
OPENSTACK_VERSION = "3.
|
26
|
+
OPENSTACK_VERSION = "3.6.0".freeze
|
27
27
|
end
|
28
28
|
end
|
@@ -13,9 +13,10 @@ describe Kitchen::Driver::Openstack::Volume do
|
|
13
13
|
let(:os) do
|
14
14
|
{
|
15
15
|
openstack_username: "twilight",
|
16
|
+
openstack_domain_id: "default",
|
16
17
|
openstack_api_key: "sparkle",
|
17
18
|
openstack_auth_url: "http:",
|
18
|
-
|
19
|
+
openstack_project_name: "trixie",
|
19
20
|
openstack_region: "syd",
|
20
21
|
openstack_service_name: "the_service",
|
21
22
|
}
|
@@ -71,7 +71,7 @@ describe Kitchen::Driver::Openstack do
|
|
71
71
|
|
72
72
|
nils = %i{
|
73
73
|
server_name
|
74
|
-
|
74
|
+
openstack_project_name
|
75
75
|
openstack_region
|
76
76
|
openstack_service_name
|
77
77
|
floating_ip_pool
|
@@ -100,7 +100,7 @@ describe Kitchen::Driver::Openstack do
|
|
100
100
|
port: "2222",
|
101
101
|
server_name: "puppy",
|
102
102
|
server_name_prefix: "parsnip",
|
103
|
-
|
103
|
+
openstack_project_name: "that_one",
|
104
104
|
openstack_region: "atlantis",
|
105
105
|
openstack_service_name: "the_service",
|
106
106
|
floating_ip_pool: "swimmers",
|
@@ -170,9 +170,10 @@ describe Kitchen::Driver::Openstack do
|
|
170
170
|
let(:config) do
|
171
171
|
{
|
172
172
|
openstack_username: "hello",
|
173
|
+
openstack_domain_id: "default",
|
173
174
|
openstack_api_key: "world",
|
174
175
|
openstack_auth_url: "http:",
|
175
|
-
|
176
|
+
openstack_project_name: "www",
|
176
177
|
glance_cache_wait_timeout: 600,
|
177
178
|
disable_ssl_validation: false,
|
178
179
|
}
|
@@ -313,9 +314,10 @@ describe Kitchen::Driver::Openstack do
|
|
313
314
|
let(:config) do
|
314
315
|
{
|
315
316
|
openstack_username: "a",
|
317
|
+
openstack_domain_id: "default",
|
316
318
|
openstack_api_key: "b",
|
317
319
|
openstack_auth_url: "http://",
|
318
|
-
|
320
|
+
openstack_project_name: "me",
|
319
321
|
openstack_region: "ORD",
|
320
322
|
openstack_service_name: "stack",
|
321
323
|
connection_options:
|
@@ -336,7 +338,7 @@ describe Kitchen::Driver::Openstack do
|
|
336
338
|
describe "#required_server_settings" do
|
337
339
|
it "returns the required settings for an OpenStack server" do
|
338
340
|
expected = %i{
|
339
|
-
openstack_username openstack_api_key openstack_auth_url
|
341
|
+
openstack_username openstack_api_key openstack_auth_url openstack_domain_id
|
340
342
|
}
|
341
343
|
expect(driver.send(:required_server_settings)).to eq(expected)
|
342
344
|
end
|
@@ -345,7 +347,7 @@ describe Kitchen::Driver::Openstack do
|
|
345
347
|
describe "#optional_server_settings" do
|
346
348
|
it "returns the optional settings for an OpenStack server" do
|
347
349
|
excluded = %i{
|
348
|
-
openstack_username openstack_api_key openstack_auth_url
|
350
|
+
openstack_username openstack_api_key openstack_auth_url openstack_domain_id
|
349
351
|
}
|
350
352
|
expect(driver.send(:optional_server_settings)).not_to include(*excluded)
|
351
353
|
end
|
@@ -355,9 +357,10 @@ describe Kitchen::Driver::Openstack do
|
|
355
357
|
let(:config) do
|
356
358
|
{
|
357
359
|
openstack_username: "monkey",
|
360
|
+
openstack_domain_id: "default",
|
358
361
|
openstack_api_key: "potato",
|
359
362
|
openstack_auth_url: "http:",
|
360
|
-
|
363
|
+
openstack_project_name: "link",
|
361
364
|
openstack_region: "ord",
|
362
365
|
openstack_service_name: "the_service",
|
363
366
|
connection_options:
|
@@ -1366,9 +1369,10 @@ describe Kitchen::Driver::Openstack do
|
|
1366
1369
|
let(:config) do
|
1367
1370
|
{
|
1368
1371
|
openstack_username: "a",
|
1372
|
+
openstack_domain_id: "default",
|
1369
1373
|
openstack_api_key: "b",
|
1370
1374
|
openstack_auth_url: "http://",
|
1371
|
-
|
1375
|
+
openstack_project_name: "me",
|
1372
1376
|
openstack_region: "ORD",
|
1373
1377
|
openstack_service_name: "stack",
|
1374
1378
|
image_ref: "22",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Hartman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-kitchen
|