cfoundry 4.3.11 → 4.3.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cc_api_stub/applications.rb +4 -0
- data/lib/cc_api_stub/spaces.rb +4 -0
- data/lib/cfoundry/version.rb +1 -1
- metadata +4 -4
@@ -43,6 +43,10 @@ module CcApiStub
|
|
43
43
|
stub_get(%r{/v2/apps/[^/]+/service_bindings/?(?:\?.+)?$}, {}, response(200, response_body))
|
44
44
|
end
|
45
45
|
|
46
|
+
def fail_to_find(app_id)
|
47
|
+
stub_get(%r{/v2/apps/#{app_id}}, {}, response(404, {:code => 100004, :description => "The app name could not be found:"}))
|
48
|
+
end
|
49
|
+
|
46
50
|
private
|
47
51
|
|
48
52
|
def object_endpoint(id = nil)
|
data/lib/cc_api_stub/spaces.rb
CHANGED
@@ -28,6 +28,10 @@ module CcApiStub
|
|
28
28
|
stub_get(%r{/v2/spaces/[^/]+/apps\?inline-relations-depth=1}, {}, response(200, response))
|
29
29
|
end
|
30
30
|
|
31
|
+
def fail_to_find(space_id)
|
32
|
+
stub_get(%r{/v2/spaces/#{space_id}}, {}, response(404, {:code => 40004, :description => "The app space could not be found:"}))
|
33
|
+
end
|
34
|
+
|
31
35
|
def space_fixture_hash
|
32
36
|
{
|
33
37
|
:metadata => {
|
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-09-
|
13
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -462,7 +462,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
462
462
|
version: '0'
|
463
463
|
segments:
|
464
464
|
- 0
|
465
|
-
hash:
|
465
|
+
hash: 3721534131775982099
|
466
466
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
467
467
|
none: false
|
468
468
|
requirements:
|
@@ -471,7 +471,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
471
471
|
version: '0'
|
472
472
|
segments:
|
473
473
|
- 0
|
474
|
-
hash:
|
474
|
+
hash: 3721534131775982099
|
475
475
|
requirements: []
|
476
476
|
rubyforge_project: cfoundry
|
477
477
|
rubygems_version: 1.8.25
|