vm_shepherd 1.6.0 → 1.6.1
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 +4 -4
- data/lib/vm_shepherd/aws_manager.rb +1 -1
- data/lib/vm_shepherd/retry_helper.rb +1 -1
- data/lib/vm_shepherd/version.rb +1 -1
- data/spec/vm_shepherd/vcloud_manager_spec.rb +10 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65cd3b777476ef982c70b4c99fc270ce34f0084a
|
4
|
+
data.tar.gz: b5f22dfd3e3111c58816f5e9260b53e1cfbd868a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c48b1d7f31e478ede8d86e5834689d22db887e879b6031fdcebf72c33067d6b80676f6313fbac27ab600e90c445d1d35ac5eb1009d5b3ea295d40df77f5b1ba
|
7
|
+
data.tar.gz: cc6ebc49f345869086b765fcd2971abf7b768737ae7d8404ae2a226dea441afc2b0bcac1ccbea5f958c85723bf67b250b76599eecc82ba6b4fd0bd0d72934499
|
data/lib/vm_shepherd/version.rb
CHANGED
@@ -47,9 +47,10 @@ module VmShepherd
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it 'expands the vapp_template into a TMP dir' do
|
50
|
-
|
50
|
+
command = "cd #{tmpdir} && tar xfv '#{expanded_vapp_template_path}'"
|
51
|
+
expect(vcloud_manager).to receive(:system).with(command)
|
51
52
|
|
52
|
-
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error
|
53
|
+
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error(RuntimeError, /#{command}/)
|
53
54
|
end
|
54
55
|
|
55
56
|
context 'when the template can be expanded' do
|
@@ -236,10 +237,14 @@ module VmShepherd
|
|
236
237
|
end
|
237
238
|
|
238
239
|
context 'when the vApp can NOT be deployed' do
|
240
|
+
let(:fake_deploy_error) { 'FAKE-VAPP-DEPLOY-ERROR' }
|
241
|
+
|
242
|
+
before { allow(VCloudSdk::Client).to receive(:new).and_raise('FAKE-VAPP-DEPLOY-ERROR') }
|
243
|
+
|
239
244
|
it 'removes the expanded vApp template' do
|
240
245
|
expect(FileUtils).to receive(:remove_entry_secure).with(tmpdir, force: true)
|
241
246
|
|
242
|
-
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error
|
247
|
+
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error(/#{fake_deploy_error}/)
|
243
248
|
end
|
244
249
|
end
|
245
250
|
end
|
@@ -257,7 +262,7 @@ module VmShepherd
|
|
257
262
|
it 'removes the expanded vApp template' do
|
258
263
|
expect(FileUtils).to receive(:remove_entry_secure).with(tmpdir, force: true)
|
259
264
|
|
260
|
-
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error
|
265
|
+
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error(RuntimeError, /#{tar_expand_cmd}/)
|
261
266
|
end
|
262
267
|
end
|
263
268
|
end
|
@@ -274,7 +279,7 @@ module VmShepherd
|
|
274
279
|
it 'removes the expanded vApp template' do
|
275
280
|
expect(FileUtils).to receive(:remove_entry_secure).with(tmpdir, force: true)
|
276
281
|
|
277
|
-
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error
|
282
|
+
expect { vcloud_manager.deploy(vapp_template_path, vapp_config) }.to raise_error(RuntimeError, /VM exists at FAKE_IP/)
|
278
283
|
end
|
279
284
|
end
|
280
285
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vm_shepherd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ops Manager Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.4.
|
198
|
+
rubygems_version: 2.4.7
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: A tool for booting and tearing down Ops Manager VMs on various Infrastructures.
|