clc-chef-metal-vsphere 0.3.15 → 0.3.16

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: 65941817e8050f25e838c833e94d2c0c554bc312
4
- data.tar.gz: 15037d9d8719b95df328775ca65fdfec35610e53
3
+ metadata.gz: d464aa0043a0be506299d2fb8a26d16bb7eb917b
4
+ data.tar.gz: f2d96205badcfac32a1fbabace096f98e9dcef6e
5
5
  SHA512:
6
- metadata.gz: 4e78ed7552dba3e8f98db5273cfd60eb89f00fdfb9c5c54fa15640226d512c71dc91e75a684c6671b572b1ad4f820d778b7d10c806da0d84f00c7ddd123d5821
7
- data.tar.gz: dc7166e72a5dd38abcb3fcabba15fc2b7dc220927d8c6bd963d567068d5fe7151d0e934a0cccba1dbddae89b85d21f5cb5af34cfc00a23aeaf57c4bc6736e1fe
6
+ metadata.gz: 923c9de0efdd6076810b7b485a465be341cadb4cf53c1d849f50dd8f0ef58ef88c8a62e1bc2fbaf34163d50f18469c230f100bf4e551ccf4a805534e59344936
7
+ data.tar.gz: b8c024e18c2f2199e944f5d0706efa06c57c31236f1a397d5721f9a11f3a8361a35312bbc7c48becce019707938be7a01a4781cfc1b1b283cb36a2dc485a5864
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.15'
2
+ VERSION = '0.3.16'
3
3
  end
@@ -197,7 +197,6 @@ module ChefMetalVsphere
197
197
 
198
198
  wait_until_ready(action_handler, machine_spec, machine_options, vm)
199
199
 
200
-
201
200
  bootstrap_options = bootstrap_options_for(machine_spec, machine_options)
202
201
  is_static = false
203
202
  if has_static_ip(bootstrap_options)
@@ -441,7 +440,7 @@ module ChefMetalVsphere
441
440
 
442
441
  _self = self
443
442
 
444
- until remaining_wait_time(machine_spec, machine_options) || transport.available? do
443
+ until remaining_wait_time(machine_spec, machine_options) < 0 || transport.available? do
445
444
  print "."
446
445
  sleep 5
447
446
  end
@@ -38,8 +38,7 @@ describe "vsphere_driver" do
38
38
  include ChefMetalVsphere::Helpers
39
39
 
40
40
  before :all do
41
- #@vm_name = "cmvd-test-#{SecureRandom.hex}"
42
- @vm_name = "cmvd-test-41f91ed95145ffabc045df653b69ef1d"
41
+ @vm_name = "cmvd-test-#{SecureRandom.hex}"
43
42
  @metal_config = eval File.read(File.expand_path('../config.rb', __FILE__))
44
43
  Cheffish.honor_local_mode do
45
44
  chef_server = Cheffish.default_chef_server(@metal_config)
@@ -51,9 +50,6 @@ describe "vsphere_driver" do
51
50
  @metal_config[:machine_options][:convergence_options] = {:chef_server => chef_server}
52
51
  machine = @driver.ready_machine(action_handler, @machine_spec, @metal_config[:machine_options])
53
52
  @server_id = @machine_spec.location['server_id']
54
- machine.setup_convergence(action_handler)
55
- @machine_spec.save(action_handler)
56
- machine.converge(action_handler)
57
53
  @connection = vim(@metal_config[:driver_options])
58
54
  @vm = find_vm_by_id(@server_id, @connection)
59
55
  end
@@ -117,20 +113,20 @@ describe "vsphere_driver" do
117
113
  end
118
114
  end
119
115
 
120
- # context "destroy_machine" do
116
+ context "destroy_machine" do
121
117
 
122
- # it "removes the machine" do
123
- # Cheffish.honor_local_mode do
124
- # chef_server = Cheffish.default_chef_server(@metal_config)
125
- # driver = ChefMetal.driver_for_url("vsphere://#{@metal_config[:driver_options][:host]}", @metal_config)
126
- # action_handler = ChefMetal::ActionHandler.new
127
- # machine_spec = ChefMetal::ChefMachineSpec.new({'name' => @vm_name}, chef_server)
128
- # machine_spec.location = { 'driver_url' => driver.driver_url,
129
- # 'server_id' => @server_id}
130
- # driver.destroy_machine(action_handler, machine_spec, @metal_config[:machine_options])
131
- # end
132
- # vm = find_vm_by_id(@server_id, @connection)
133
- # expect(vm).to eq(nil)
134
- # end
135
- # end
118
+ it "removes the machine" do
119
+ Cheffish.honor_local_mode do
120
+ chef_server = Cheffish.default_chef_server(@metal_config)
121
+ driver = ChefMetal.driver_for_url("vsphere://#{@metal_config[:driver_options][:host]}", @metal_config)
122
+ action_handler = ChefMetal::ActionHandler.new
123
+ machine_spec = ChefMetal::ChefMachineSpec.new({'name' => @vm_name}, chef_server)
124
+ machine_spec.location = { 'driver_url' => driver.driver_url,
125
+ 'server_id' => @server_id}
126
+ driver.destroy_machine(action_handler, machine_spec, @metal_config[:machine_options])
127
+ end
128
+ vm = find_vm_by_id(@server_id, @connection)
129
+ expect(vm).to eq(nil)
130
+ end
131
+ end
136
132
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.12.1.alpha.3
47
+ version: 0.12.1.alpha.4
48
48
  type: :runtime
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: 0.12.1.alpha.3
54
+ version: 0.12.1.alpha.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement