kitchen-openstack 5.0.0 → 5.0.1

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
  SHA256:
3
- metadata.gz: 45ebfdb6c5d4785de57b8953b0e361869739ae718a40c7d4e9723113d22c7a59
4
- data.tar.gz: bab7ff030a9787f2e52ddccec8d1ef4d7c73859958d13e232f8429020d5b3f4d
3
+ metadata.gz: ed10521f2bd0acc22db46ff87e0279f2d919fbd66ed6a6088e4825d8a75c5d84
4
+ data.tar.gz: a0875746a6229f500b4c4e68e68f875527b1b5c90e0ab2616d79dc4035c2147f
5
5
  SHA512:
6
- metadata.gz: 21d13af2b2062a8a5b547ffd4fdf61f076f7f6178c0038f70359e42737295553b456df211a68e7c6b631df82de94399d414329ab651127b391c28f914b071efc
7
- data.tar.gz: 93dcedbec3563c85e9f8fd274378091570cd4338ee053b1da7fa366bc66feca1f42d507488c86403d937f741d1cfb354c67345b7571a2801046e8150529032df
6
+ metadata.gz: d46edbaac847718f7e3a9559c6003f91703bc5fd67c5d4609eab25dc6a0e0e54b495da0293a0f97746862fc0f04ccec675bdc118c2d89973910925b43ad1d81d
7
+ data.tar.gz: c4702f11e45567513496170e0283802929c5b7802186e6d3c14b80819130b1579231a59b263b4c3bfd3197cc5c5c6716c3dde032494d5e764626c05a279f6296
@@ -133,7 +133,6 @@ module Kitchen
133
133
 
134
134
  def openstack_server
135
135
  server_def = {
136
- provider: "OpenStack",
137
136
  connection_options: {},
138
137
  }
139
138
  required_server_settings.each { |s| server_def[s] = config[s] }
@@ -157,7 +156,7 @@ module Kitchen
157
156
  end
158
157
 
159
158
  def network
160
- Fog::Network.new(openstack_server)
159
+ Fog::OpenStack::Network.new(openstack_server)
161
160
  end
162
161
 
163
162
  def compute
@@ -174,7 +173,7 @@ module Kitchen
174
173
 
175
174
  def create_server
176
175
  server_def = init_configuration
177
- fail(ActionFailed, "Cannot specify both network_ref and network_id") if config[:network_id] && config[:network_ref] # rubocop:disable Style/SignalException
176
+ raise(ActionFailed, "Cannot specify both network_ref and network_id") if config[:network_id] && config[:network_ref]
178
177
 
179
178
  if config[:network_id]
180
179
  networks = [].concat([config[:network_id]])
@@ -209,8 +208,8 @@ module Kitchen
209
208
  end
210
209
 
211
210
  def init_configuration
212
- fail(ActionFailed, "Cannot specify both image_ref and image_id") if config[:image_id] && config[:image_ref] # rubocop:disable Style/SignalException
213
- fail(ActionFailed, "Cannot specify both flavor_ref and flavor_id") if config[:flavor_id] && config[:flavor_ref] # rubocop:disable Style/SignalException
211
+ raise(ActionFailed, "Cannot specify both image_ref and image_id") if config[:image_id] && config[:image_ref]
212
+ raise(ActionFailed, "Cannot specify both flavor_ref and flavor_id") if config[:flavor_id] && config[:flavor_ref]
214
213
 
215
214
  {
216
215
  name: config[:server_name],
@@ -233,7 +232,7 @@ module Kitchen
233
232
 
234
233
  def find_image(image_ref)
235
234
  image = find_matching(compute.images, image_ref)
236
- fail(ActionFailed, "Image not found") unless image # rubocop:disable Style/SignalException
235
+ raise(ActionFailed, "Image not found") unless image
237
236
 
238
237
  debug "Selected image: #{image.id} #{image.name}"
239
238
  image
@@ -241,7 +240,7 @@ module Kitchen
241
240
 
242
241
  def find_flavor(flavor_ref)
243
242
  flavor = find_matching(compute.flavors, flavor_ref)
244
- fail(ActionFailed, "Flavor not found") unless flavor # rubocop:disable Style/SignalException
243
+ raise(ActionFailed, "Flavor not found") unless flavor
245
244
 
246
245
  debug "Selected flavor: #{flavor.id} #{flavor.name}"
247
246
  flavor
@@ -249,7 +248,7 @@ module Kitchen
249
248
 
250
249
  def find_network(network_ref)
251
250
  net = find_matching(network.networks.all, network_ref)
252
- fail(ActionFailed, "Network not found") unless net # rubocop:disable Style/SignalException
251
+ raise(ActionFailed, "Network not found") unless net
253
252
 
254
253
  debug "Selected net: #{net.id} #{net.name}"
255
254
  net
@@ -315,7 +314,7 @@ module Kitchen
315
314
  i.ip if i.fixed_ip.nil? && i.instance_id.nil? && i.pool == pool
316
315
  end.compact
317
316
  if free_addrs.empty?
318
- fail ActionFailed, "No available IPs in pool <#{pool}>" # rubocop:disable Style/SignalException
317
+ raise ActionFailed, "No available IPs in pool <#{pool}>"
319
318
  end
320
319
 
321
320
  config[:floating_ip] = free_addrs[0]
@@ -368,7 +367,7 @@ module Kitchen
368
367
  pub, priv = parse_ips(pub, priv)
369
368
  pub[config[:public_ip_order].to_i] ||
370
369
  priv[config[:private_ip_order].to_i] ||
371
- fail(ActionFailed, "Could not find an IP") # rubocop:disable Style/SignalException
370
+ raise(ActionFailed, "Could not find an IP")
372
371
  end
373
372
 
374
373
  def filter_ips(addresses)
@@ -36,7 +36,7 @@ module Kitchen
36
36
  end
37
37
 
38
38
  def volume(openstack_server)
39
- Fog::Volume.new(openstack_server)
39
+ Fog::OpenStack::Volume.new(openstack_server)
40
40
  end
41
41
 
42
42
  def create_volume(config, os)
@@ -24,6 +24,6 @@ module Kitchen
24
24
  #
25
25
  # @author Jonathan Hartman <j@p4nt5.com>
26
26
  module Driver
27
- OPENSTACK_VERSION = "5.0.0"
27
+ OPENSTACK_VERSION = "5.0.1"
28
28
  end
29
29
  end
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: 5.0.0
4
+ version: 5.0.1
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: 2020-02-25 00:00:00.000000000 Z
12
+ date: 2020-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-kitchen
@@ -45,20 +45,6 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.0'
48
- - !ruby/object:Gem::Dependency
49
- name: unf
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
48
  - !ruby/object:Gem::Dependency
63
49
  name: ohai
64
50
  requirement: !ruby/object:Gem::Requirement
@@ -115,20 +101,6 @@ dependencies:
115
101
  - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
- - !ruby/object:Gem::Dependency
119
- name: cane
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
104
  - !ruby/object:Gem::Dependency
133
105
  name: countloc
134
106
  requirement: !ruby/object:Gem::Requirement
@@ -157,48 +129,6 @@ dependencies:
157
129
  - - ">="
158
130
  - !ruby/object:Gem::Version
159
131
  version: '0'
160
- - !ruby/object:Gem::Dependency
161
- name: simplecov
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: simplecov-console
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- type: :development
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- - !ruby/object:Gem::Dependency
189
- name: coveralls
190
- requirement: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
132
  - !ruby/object:Gem::Dependency
203
133
  name: github_changelog_generator
204
134
  requirement: !ruby/object:Gem::Requirement