dpl 1.8.33.travis.1976.5 → 1.8.33.travis.1999.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/cloud_foundry.rb +3 -1
- data/spec/provider/cloudfoundry_spec.rb +12 -0
- 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: 4bc193f8a38f67db9080730e670247fac0b23eae
|
4
|
+
data.tar.gz: 719ab9f88e9d053192bd4d195e2ff0cbdb4188da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc060feb51b1266bc9e67a26034ab8b3e9f22fb01330839f8264704da029da8a06a6f780a575e6b01defc959e10ab4054c233636a3e075bed9d55fe8687da74
|
7
|
+
data.tar.gz: b5edcaf3c17adee05cce12f44b7b7dcb3828799eab9f63ac6137e7a8c5d609b702b9fd169c418a390fad1930b1517064248ca3ac04f689fb34ee79814cedf8e2
|
@@ -43,6 +43,10 @@ describe DPL::Provider::CloudFoundry do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
describe "#push_app" do
|
46
|
+
before do
|
47
|
+
allow(provider.context).to receive(:shell).and_return(true)
|
48
|
+
end
|
49
|
+
|
46
50
|
example "With manifest" do
|
47
51
|
expect(provider.context).to receive(:shell).with('./cf push -f worker-manifest.yml')
|
48
52
|
expect(provider.context).to receive(:shell).with('./cf logout')
|
@@ -55,5 +59,13 @@ describe DPL::Provider::CloudFoundry do
|
|
55
59
|
expect(provider.context).to receive(:shell).with('./cf logout')
|
56
60
|
provider.push_app
|
57
61
|
end
|
62
|
+
|
63
|
+
example 'Failed to push' do
|
64
|
+
allow(provider.context).to receive(:shell).and_return(false)
|
65
|
+
|
66
|
+
expect(provider.context).to receive(:shell).with('./cf push -f worker-manifest.yml')
|
67
|
+
expect(provider.context).to receive(:shell).with('./cf logout')
|
68
|
+
expect{provider.push_app}.to raise_error(DPL::Error, 'Failed to push app')
|
69
|
+
end
|
58
70
|
end
|
59
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.33.travis.
|
4
|
+
version: 1.8.33.travis.1999.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: 1.3.1
|
240
240
|
requirements: []
|
241
241
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
242
|
+
rubygems_version: 2.6.11
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: deploy tool
|