beaker-openstack 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/release.yml +31 -0
- data/.github/workflows/test.yml +29 -0
- data/CHANGELOG.md +44 -0
- data/Gemfile +3 -4
- data/README.md +97 -8
- data/Rakefile +15 -0
- data/beaker-openstack.gemspec +5 -10
- data/lib/beaker-openstack/version.rb +1 -1
- data/lib/beaker/hypervisor/openstack.rb +28 -6
- metadata +16 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ec8d2595a3b94ae10ba8dbc5b29529506c36c5133b3fa56ae93a1f52d07d9686
|
|
4
|
+
data.tar.gz: 0d7518b15835c1b50b8a33e58a739e56a4d76a5c6593f17a64daa12592f915f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc97fe129ef779dd643011e1a5b9f55c99c3f92659d397019a657dadf45da0364872f0eab3b32fb195561ff02e65e63e2a41e2d2a51e25d6bc8c90fbdd58f9a6
|
|
7
|
+
data.tar.gz: 14b0b253f8008aa4729257fa46cfc1e47a05436fe9bff420dc92b75040364878e6ce058f7266c0210eb037af3b49febaa38feb07428fbc002195135229538c16
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
create:
|
|
5
|
+
ref_type: tag
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
release:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
if: github.repository == 'voxpupuli/beaker-openstack'
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
- name: Install Ruby 3.0
|
|
14
|
+
uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: '3.0'
|
|
17
|
+
env:
|
|
18
|
+
BUNDLE_WITHOUT: release
|
|
19
|
+
- name: Build gem
|
|
20
|
+
run: gem build *.gemspec
|
|
21
|
+
- name: Publish gem to rubygems.org
|
|
22
|
+
run: gem push *.gem
|
|
23
|
+
env:
|
|
24
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
|
25
|
+
- name: Setup GitHub packages access
|
|
26
|
+
run: |
|
|
27
|
+
mkdir -p ~/.gem
|
|
28
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
|
29
|
+
chmod 0600 ~/.gem/credentials
|
|
30
|
+
- name: Publish gem to GitHub packages
|
|
31
|
+
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- pull_request
|
|
5
|
+
- push
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
ruby:
|
|
14
|
+
- "2.4"
|
|
15
|
+
- "2.5"
|
|
16
|
+
- "2.6"
|
|
17
|
+
- "2.7"
|
|
18
|
+
- "3.0"
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v2
|
|
21
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
|
22
|
+
uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
env:
|
|
27
|
+
BUNDLE_WITHOUT: release
|
|
28
|
+
- name: Run tests
|
|
29
|
+
run: bundle exec rake spec
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.0](https://github.com/voxpupuli/beaker-openstack/tree/1.0.0) (2021-07-09)
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-openstack/compare/0.3.0...1.0.0)
|
|
8
|
+
|
|
9
|
+
**Merged pull requests:**
|
|
10
|
+
|
|
11
|
+
- Cleanup README/gemspec/GitHub actions [\#13](https://github.com/voxpupuli/beaker-openstack/pull/13) ([bastelfreak](https://github.com/bastelfreak))
|
|
12
|
+
- Update fakefs requirement from ~\> 0.6 to ~\> 1.3 [\#11](https://github.com/voxpupuli/beaker-openstack/pull/11) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
13
|
+
- Add Vox Pupuli's CI bits [\#10](https://github.com/voxpupuli/beaker-openstack/pull/10) ([genebean](https://github.com/genebean))
|
|
14
|
+
- Add openstack\_project\_id logic etc, expand example nodeset in readme [\#9](https://github.com/voxpupuli/beaker-openstack/pull/9) ([canihavethisone](https://github.com/canihavethisone))
|
|
15
|
+
|
|
16
|
+
## [0.3.0](https://github.com/voxpupuli/beaker-openstack/tree/0.3.0) (2019-06-17)
|
|
17
|
+
|
|
18
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-openstack/compare/0.2.0...0.3.0)
|
|
19
|
+
|
|
20
|
+
**Merged pull requests:**
|
|
21
|
+
|
|
22
|
+
- hypervisor/openstack: fix usage with V3 API [\#5](https://github.com/voxpupuli/beaker-openstack/pull/5) ([GiedriusS](https://github.com/GiedriusS))
|
|
23
|
+
- \(BKR-1509\) Hypervisor usage instructions for Beaker 4.0 [\#4](https://github.com/voxpupuli/beaker-openstack/pull/4) ([Dakta](https://github.com/Dakta))
|
|
24
|
+
|
|
25
|
+
## [0.2.0](https://github.com/voxpupuli/beaker-openstack/tree/0.2.0) (2018-01-09)
|
|
26
|
+
|
|
27
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-openstack/compare/0.1.0...0.2.0)
|
|
28
|
+
|
|
29
|
+
**Merged pull requests:**
|
|
30
|
+
|
|
31
|
+
- \(BKR-1270\) Use fog-openstack instead of fog [\#3](https://github.com/voxpupuli/beaker-openstack/pull/3) ([Sharpie](https://github.com/Sharpie))
|
|
32
|
+
|
|
33
|
+
## [0.1.0](https://github.com/voxpupuli/beaker-openstack/tree/0.1.0) (2017-07-28)
|
|
34
|
+
|
|
35
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-openstack/compare/9fc506a9a93f9985fb3f36132a91805026f19d79...0.1.0)
|
|
36
|
+
|
|
37
|
+
**Merged pull requests:**
|
|
38
|
+
|
|
39
|
+
- \(MAINT\) Update docs [\#2](https://github.com/voxpupuli/beaker-openstack/pull/2) ([rishijavia](https://github.com/rishijavia))
|
|
40
|
+
- \(MAINT\) Update env variable to correct hypervisor [\#1](https://github.com/voxpupuli/beaker-openstack/pull/1) ([rishijavia](https://github.com/rishijavia))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
|
@@ -16,10 +16,9 @@ end
|
|
|
16
16
|
# We don't put beaker in as a test dependency because we
|
|
17
17
|
# don't want to create a transitive dependency
|
|
18
18
|
group :acceptance_testing do
|
|
19
|
-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~>
|
|
19
|
+
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
eval(File.read("#{__FILE__}.local"), binding)
|
|
22
|
+
group :release do
|
|
23
|
+
gem 'github_changelog_generator', :require => false
|
|
25
24
|
end
|
data/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# beaker-openstack
|
|
2
2
|
|
|
3
|
+
[](https://github.com/voxpupuli/beaker-openstack/blob/master/LICENSE)
|
|
4
|
+
[](https://github.com/voxpupuli/beaker-openstack/actions/workflows/test.yml)
|
|
5
|
+
[](https://github.com/voxpupuli/beaker-openstack/actions/workflows/release.yml)
|
|
6
|
+
[](https://rubygems.org/gems/beaker-openstack)
|
|
7
|
+
[](https://rubygems.org/gems/beaker-openstack)
|
|
8
|
+
[](#transfer-notice)
|
|
9
|
+
|
|
3
10
|
Beaker library to use openstack hypervisor
|
|
4
11
|
|
|
5
12
|
# How to use this wizardry
|
|
@@ -40,33 +47,115 @@ We run beaker's base acceptance tests with this library to see if the hypervisor
|
|
|
40
47
|
|
|
41
48
|
2. `OPENSTACK_KEY` - Path to private key that is used to SSH into Openstack VMs
|
|
42
49
|
|
|
43
|
-
You will need two hosts
|
|
50
|
+
You will need at least two hosts defined in a nodeset file. An example comprehensive nodeset is below (note that not all parameters are required):
|
|
44
51
|
|
|
45
52
|
```yaml
|
|
53
|
+
|
|
46
54
|
HOSTS:
|
|
47
|
-
|
|
55
|
+
master:
|
|
56
|
+
roles:
|
|
57
|
+
- agent
|
|
58
|
+
- master
|
|
59
|
+
- dashboard
|
|
60
|
+
- database
|
|
48
61
|
hypervisor: openstack
|
|
49
62
|
platform: <my_platform>
|
|
50
63
|
user: <host_username>
|
|
51
64
|
image: <host_image>
|
|
65
|
+
flavor: <host_flavor>
|
|
66
|
+
ssh:
|
|
67
|
+
user: cloud-user
|
|
68
|
+
password: <cloud-user_password>
|
|
69
|
+
auth_methods:
|
|
70
|
+
- password
|
|
71
|
+
- publickey
|
|
72
|
+
keys:
|
|
73
|
+
- <relative_path/public_key>
|
|
74
|
+
user_data: |
|
|
75
|
+
#cloud-config
|
|
76
|
+
output: {all: '| tee -a /var/log/cloud-init-output.log'}
|
|
77
|
+
disable_root: <True/False>
|
|
78
|
+
ssh_pwauth: <True/False>
|
|
79
|
+
chpasswd:
|
|
80
|
+
list: |
|
|
81
|
+
root:<root_password>
|
|
82
|
+
cloud-user:<cloud-user_password>
|
|
83
|
+
expire: False
|
|
84
|
+
runcmd:
|
|
85
|
+
- <my_optional_commands>
|
|
86
|
+
|
|
87
|
+
agent_1:
|
|
52
88
|
roles:
|
|
53
89
|
- agent
|
|
54
|
-
- master
|
|
55
|
-
- dashboard
|
|
56
|
-
- database
|
|
57
90
|
- default
|
|
58
|
-
host-2:
|
|
59
91
|
hypervisor: openstack
|
|
60
92
|
platform: <my_platform>
|
|
61
93
|
user: <host_username>
|
|
62
94
|
image: <host_image>
|
|
63
|
-
|
|
64
|
-
|
|
95
|
+
flavor: <host_flavor>
|
|
96
|
+
ssh:
|
|
97
|
+
user: cloud-user
|
|
98
|
+
password: <cloud-user_password>
|
|
99
|
+
auth_methods:
|
|
100
|
+
- publickey
|
|
101
|
+
keys:
|
|
102
|
+
- <relative_path/public_key>
|
|
103
|
+
number_of_password_prompts: 0
|
|
104
|
+
keepalive: true
|
|
105
|
+
keepalive_interval: 5
|
|
106
|
+
user_data: |
|
|
107
|
+
#cloud-config
|
|
108
|
+
output: {all: '| tee -a /var/log/cloud-init-output.log'}
|
|
109
|
+
disable_root: <True/False>
|
|
110
|
+
ssh_pwauth: <True/False>
|
|
111
|
+
chpasswd:
|
|
112
|
+
list: |
|
|
113
|
+
root:<root_password>
|
|
114
|
+
cloud-user:<cloud-user_password>
|
|
115
|
+
expire: False
|
|
116
|
+
runcmd:
|
|
117
|
+
- <my_optional_commands>
|
|
118
|
+
|
|
65
119
|
CONFIG:
|
|
120
|
+
log_level: <trace/debug/verbose/info/notify/warn>
|
|
121
|
+
trace_limit: 50
|
|
122
|
+
timesync: <true/false>
|
|
66
123
|
nfs_server: none
|
|
67
124
|
consoleport: 443
|
|
125
|
+
openstack_username: <insert_username>
|
|
126
|
+
openstack_api_key: <insert_password>
|
|
127
|
+
# openstack_project_name: <insert_project_name> # alternatively use openstack_project_id
|
|
128
|
+
openstack_project_id: <insert_id>
|
|
129
|
+
# openstack_user_domain: <insert user_domain> # alternatively use openstack_user_domain_id
|
|
130
|
+
openstack_user_domain_id: <insert_id>
|
|
131
|
+
# openstack_project_domain: <insert_project_domain> # alternatively use openstack_project_domain_id
|
|
132
|
+
openstack_project_domain_id: <insert_id>
|
|
133
|
+
openstack_auth_url: http://<keystone_ip>:5000/v3/
|
|
134
|
+
openstack_network: <insert_network>
|
|
135
|
+
openstack_keyname: <insert_key>
|
|
136
|
+
openstack_floating_ip: <true/false>
|
|
137
|
+
openstack_volume_support: <true/false>
|
|
138
|
+
security_group: ['default']
|
|
139
|
+
preserve_hosts: <always/onfail/onpass/never>
|
|
140
|
+
run_in_parallel: ['configure', 'install']
|
|
141
|
+
type: <foss/git/pe>
|
|
68
142
|
```
|
|
69
143
|
|
|
144
|
+
Note that when using _id parameters, you must also match the parameter type across the following when domain is specified:
|
|
145
|
+
- openstack_project_id
|
|
146
|
+
- openstack_user_domain_id
|
|
147
|
+
- openstack_project_domain_id
|
|
148
|
+
|
|
149
|
+
Further, you can opt to use a static master by setting the master's hypervisor to none, and identifying its location thus:
|
|
150
|
+
```yaml
|
|
151
|
+
hypervisor: none
|
|
152
|
+
hostname: <master_hostname>
|
|
153
|
+
vmhostname: <master_hostname>
|
|
154
|
+
ip: <master_ip>
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Additional parameter information is available at https://github.com/voxpupuli/beaker/blob/master/docs/concepts/argument_processing_and_precedence.md
|
|
158
|
+
|
|
70
159
|
There is a simple rake task to invoke acceptance test for the library once the two environment variables are set:
|
|
71
160
|
```bash
|
|
72
161
|
bundle exec rake test:acceptance
|
data/Rakefile
CHANGED
|
@@ -58,6 +58,7 @@ task 'test:acceptance' => 'test:acceptance:quick'
|
|
|
58
58
|
# global defaults
|
|
59
59
|
task :test => 'test:spec'
|
|
60
60
|
task :default => :test
|
|
61
|
+
task :spec => 'test:spec'
|
|
61
62
|
|
|
62
63
|
###########################################################
|
|
63
64
|
#
|
|
@@ -164,3 +165,17 @@ namespace :docs do
|
|
|
164
165
|
end
|
|
165
166
|
end
|
|
166
167
|
end
|
|
168
|
+
|
|
169
|
+
begin
|
|
170
|
+
require 'rubygems'
|
|
171
|
+
require 'github_changelog_generator/task'
|
|
172
|
+
|
|
173
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
174
|
+
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
|
|
175
|
+
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog modulesync}
|
|
176
|
+
config.user = 'voxpupuli'
|
|
177
|
+
config.project = 'beaker-openstack'
|
|
178
|
+
config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
|
|
179
|
+
end
|
|
180
|
+
rescue LoadError
|
|
181
|
+
end
|
data/beaker-openstack.gemspec
CHANGED
|
@@ -5,9 +5,9 @@ require 'beaker-openstack/version'
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "beaker-openstack"
|
|
7
7
|
s.version = BeakerOpenstack::VERSION
|
|
8
|
-
s.authors =
|
|
9
|
-
s.email =
|
|
10
|
-
s.homepage =
|
|
8
|
+
s.authors = 'Vox Pupuli'
|
|
9
|
+
s.email = 'voxpupuli@groups.io'
|
|
10
|
+
s.homepage = 'https://github.com/voxpupuli/beaker-openstack'
|
|
11
11
|
s.summary = %q{Beaker DSL Extension Helpers!}
|
|
12
12
|
s.description = %q{For use for the Beaker acceptance testing tool}
|
|
13
13
|
s.license = 'Apache2'
|
|
@@ -20,13 +20,8 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
# Testing dependencies
|
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
22
22
|
s.add_development_dependency 'rspec-its'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14'
|
|
26
|
-
else
|
|
27
|
-
s.add_development_dependency 'fakefs', '~> 0.6'
|
|
28
|
-
end
|
|
29
|
-
s.add_development_dependency 'rake', '~> 10.1'
|
|
23
|
+
s.add_development_dependency 'fakefs', '~> 1.3'
|
|
24
|
+
s.add_development_dependency 'rake', '>= 12.3.3'
|
|
30
25
|
s.add_development_dependency 'simplecov'
|
|
31
26
|
s.add_development_dependency 'pry', '~> 0.10'
|
|
32
27
|
|
|
@@ -14,6 +14,11 @@ module Beaker
|
|
|
14
14
|
#@option options [String] :openstack_auth_url The URL to access the OpenStack instance with (required)
|
|
15
15
|
#@option options [String] :openstack_tenant The tenant to access the OpenStack instance with (either this or openstack_project_name is required)
|
|
16
16
|
#@option options [String] :openstack_project_name The project name to access the OpenStack instance with (either this or openstack_tenant is required)
|
|
17
|
+
#@option options [String] :openstack_project_id The project id to access the OpenStack instance with (alternative to openstack_project_name)
|
|
18
|
+
#@option options [String] :openstack_user_domain The user domain name to access the OpenStack instance with
|
|
19
|
+
#@option options [String] :openstack_user_domain_id The user domain id to access the OpenStack instance with (alternative to openstack_user_domain)
|
|
20
|
+
#@option options [String] :openstack_project_domain The project domain to access the OpenStack instance with
|
|
21
|
+
#@option options [String] :openstack_project_domain_id The project domain id to access the OpenStack instance with (alternative to openstack_project_domain)
|
|
17
22
|
#@option options [String] :openstack_region The region that each OpenStack instance should be provisioned on (optional)
|
|
18
23
|
#@option options [String] :openstack_network The network that each OpenStack instance should be contacted through (required)
|
|
19
24
|
#@option options [Bool] :openstack_floating_ip Whether a floating IP should be allocated (required)
|
|
@@ -38,16 +43,25 @@ module Beaker
|
|
|
38
43
|
raise 'You must specify whether a floating IP (:openstack_floating_ip) should be used for OpenStack instances!' unless !@options[:openstack_floating_ip].nil?
|
|
39
44
|
|
|
40
45
|
is_v3 = @options[:openstack_auth_url].include?('/v3/')
|
|
41
|
-
raise 'You must specify an Openstack project name (:openstack_project_name) for OpenStack instances!' if is_v3 and !@options[:openstack_project_name]
|
|
42
46
|
raise 'You must specify an Openstack tenant (:openstack_tenant) for OpenStack instances!' if !is_v3 and !@options[:openstack_tenant]
|
|
43
|
-
raise '
|
|
44
|
-
raise '
|
|
47
|
+
raise 'You must specify an Openstack project name (:openstack_project_name) or Openstack project id (:openstack_project_id) for OpenStack instances!' if is_v3 and (!@options[:openstack_project_name] and !@options[:openstack_project_id])
|
|
48
|
+
raise 'You must specify either Openstack project name (:openstack_project_name) or Openstack project id (:openstack_project_id) not both!' if is_v3 and (@options[:openstack_project_name] and @options[:openstack_project_id])
|
|
49
|
+
raise 'You may specify either Openstack user domain (:openstack_user_domain) or Openstack user domain id (:openstack_user_domain_id) not both!' if is_v3 and (@options[:openstack_user_domain] and @options[:openstack_user_domain_id])
|
|
50
|
+
raise 'You may specify either Openstack project domain (:openstack_project_domain) or Openstack project domain id (:openstack_project_domain_id) not both!' if is_v3 and (@options[:openstack_project_domain] and @options[:openstack_project_domain_id])
|
|
51
|
+
raise 'Invalid option specified: v3 API expects :openstack_project_name or :openstack_project_id, not :openstack_tenant for OpenStack instances!' if is_v3 and @options[:openstack_tenant]
|
|
52
|
+
raise 'Invalid option specified: v2 API expects :openstack_tenant, not :openstack_project_name or :openstack_project_id for OpenStack instances!' if !is_v3 and (@options[:openstack_project_name] or @options[:openstack_project_id])
|
|
53
|
+
# Ensure that _id and non _id params are not mixed (due to bug in fog-openstack)
|
|
54
|
+
raise 'You must not mix _id values non _id (name) values. Please use the same type for (:openstack_project_), (:openstack_user_domain) and (:openstack_project_domain)!' if is_v3 and (@options[:openstack_project_name] or @options[:openstack_user_domain] or @options[:openstack_project_domain]) and (@options[:openstack_project_id] or @options[:openstack_user_domain_id] or @options[:openstack_project_domain_id])
|
|
45
55
|
|
|
46
56
|
# Keystone version 3 changed the parameter names
|
|
47
57
|
if !is_v3
|
|
48
58
|
extra_credentials = {:openstack_tenant => @options[:openstack_tenant]}
|
|
49
59
|
else
|
|
50
|
-
|
|
60
|
+
if @options[:openstack_project_id]
|
|
61
|
+
extra_credentials = {:openstack_project_id => @options[:openstack_project_id]}
|
|
62
|
+
else
|
|
63
|
+
extra_credentials = {:openstack_project_name => @options[:openstack_project_name]}
|
|
64
|
+
end
|
|
51
65
|
end
|
|
52
66
|
|
|
53
67
|
# Common keystone authentication credentials
|
|
@@ -62,8 +76,16 @@ module Beaker
|
|
|
62
76
|
|
|
63
77
|
# Keystone version 3 requires users and projects to be scoped
|
|
64
78
|
if is_v3
|
|
65
|
-
|
|
66
|
-
|
|
79
|
+
if @options[:openstack_user_domain_id]
|
|
80
|
+
@credentials[:openstack_user_domain_id] = @options[:openstack_user_domain_id]
|
|
81
|
+
else
|
|
82
|
+
@credentials[:openstack_user_domain] = @options[:openstack_user_domain] || 'Default'
|
|
83
|
+
end
|
|
84
|
+
if @options[:openstack_project_domain_id]
|
|
85
|
+
@credentials[:openstack_project_domain_id] = @options[:openstack_project_domain_id]
|
|
86
|
+
else
|
|
87
|
+
@credentials[:openstack_project_domain] = @options[:openstack_project_domain] || 'Default'
|
|
88
|
+
end
|
|
67
89
|
end
|
|
68
90
|
|
|
69
91
|
@compute_client ||= Fog::Compute.new(@credentials)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-openstack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Vox Pupuli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -44,28 +44,28 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '1.3'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '1.3'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rake
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 12.3.3
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
68
|
+
version: 12.3.3
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -165,15 +165,18 @@ dependencies:
|
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
166
|
version: 1.0.0
|
|
167
167
|
description: For use for the Beaker acceptance testing tool
|
|
168
|
-
email:
|
|
169
|
-
- rishi.javia@puppet.com, kevin.imber@puppet.com, tony.vu@puppet.com
|
|
168
|
+
email: voxpupuli@groups.io
|
|
170
169
|
executables:
|
|
171
170
|
- beaker-openstack
|
|
172
171
|
extensions: []
|
|
173
172
|
extra_rdoc_files: []
|
|
174
173
|
files:
|
|
174
|
+
- ".github/dependabot.yml"
|
|
175
|
+
- ".github/workflows/release.yml"
|
|
176
|
+
- ".github/workflows/test.yml"
|
|
175
177
|
- ".gitignore"
|
|
176
178
|
- ".simplecov"
|
|
179
|
+
- CHANGELOG.md
|
|
177
180
|
- Gemfile
|
|
178
181
|
- LICENSE
|
|
179
182
|
- README.md
|
|
@@ -185,7 +188,7 @@ files:
|
|
|
185
188
|
- openstack.md
|
|
186
189
|
- spec/beaker/hypervisor/openstack_spec.rb
|
|
187
190
|
- spec/spec_helper.rb
|
|
188
|
-
homepage: https://github.com/
|
|
191
|
+
homepage: https://github.com/voxpupuli/beaker-openstack
|
|
189
192
|
licenses:
|
|
190
193
|
- Apache2
|
|
191
194
|
metadata: {}
|
|
@@ -204,8 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
204
207
|
- !ruby/object:Gem::Version
|
|
205
208
|
version: '0'
|
|
206
209
|
requirements: []
|
|
207
|
-
|
|
208
|
-
rubygems_version: 2.5.1
|
|
210
|
+
rubygems_version: 3.2.22
|
|
209
211
|
signing_key:
|
|
210
212
|
specification_version: 4
|
|
211
213
|
summary: Beaker DSL Extension Helpers!
|