cfoundry 0.6.0.rc2 → 0.6.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/cc_api_stub/domains.rb
CHANGED
@@ -16,6 +16,11 @@ module CcApiStub
|
|
16
16
|
response_body = Helper.load_fixtures("fake_cc_domain_spaces")
|
17
17
|
stub_get(%r{/v2/domains/[^/]+/spaces.*$}, {}, response(200, response_body))
|
18
18
|
end
|
19
|
+
|
20
|
+
def succeed_to_add_space
|
21
|
+
response_body = Helper.load_fixtures("fake_cc_created_domain")
|
22
|
+
stub_put(%r{/v2/domains/[^/]+/spaces/[^/]+$}, {}, response(201, response_body))
|
23
|
+
end
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
data/lib/cfoundry/version.rb
CHANGED
@@ -23,4 +23,11 @@ describe CcApiStub::Domains do
|
|
23
23
|
|
24
24
|
it_behaves_like "a stubbed get request"
|
25
25
|
end
|
26
|
+
|
27
|
+
describe ".succeed_to_add_space" do
|
28
|
+
let(:url) { "http://example.com/v2/domains/domain-id-1/spaces/space-id-1" }
|
29
|
+
subject { CcApiStub::Domains.succeed_to_add_space }
|
30
|
+
|
31
|
+
it_behaves_like "a stubbed put request", :code => 201
|
32
|
+
end
|
26
33
|
end
|
@@ -6,5 +6,10 @@
|
|
6
6
|
"updated_at": "2012-08-13 12:55:10 -0700"
|
7
7
|
},
|
8
8
|
"entity": {
|
9
|
+
"name": "created-domain.com",
|
10
|
+
"owning_organization_guid": "created-organization-id-1",
|
11
|
+
"wildcard": true,
|
12
|
+
"spaces_url": "/v2/domains/created-domain-id-1/spaces",
|
13
|
+
"owning_organization_url": "/v2/organizations/created-organization-id-1"
|
9
14
|
}
|
10
15
|
}
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1948675322
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 0.6.0.
|
11
|
+
- 3
|
12
|
+
version: 0.6.0.rc3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Cloud Foundry Team
|
@@ -18,10 +18,12 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2013-03-
|
21
|
+
date: 2013-03-20 00:00:00 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
|
-
|
24
|
+
name: multipart-post
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
27
|
none: false
|
26
28
|
requirements:
|
27
29
|
- - ~>
|
@@ -31,12 +33,12 @@ dependencies:
|
|
31
33
|
- 1
|
32
34
|
- 1
|
33
35
|
version: "1.1"
|
34
|
-
prerelease: false
|
35
36
|
type: :runtime
|
36
|
-
|
37
|
-
requirement: *id001
|
37
|
+
version_requirements: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
|
39
|
+
name: multi_json
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
42
44
|
- - ~>
|
@@ -46,12 +48,12 @@ dependencies:
|
|
46
48
|
- 1
|
47
49
|
- 3
|
48
50
|
version: "1.3"
|
49
|
-
prerelease: false
|
50
51
|
type: :runtime
|
51
|
-
|
52
|
-
requirement: *id002
|
52
|
+
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
54
|
+
name: rubyzip
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
57
|
none: false
|
56
58
|
requirements:
|
57
59
|
- - ~>
|
@@ -61,12 +63,12 @@ dependencies:
|
|
61
63
|
- 0
|
62
64
|
- 9
|
63
65
|
version: "0.9"
|
64
|
-
prerelease: false
|
65
66
|
type: :runtime
|
66
|
-
|
67
|
-
requirement: *id003
|
67
|
+
version_requirements: *id003
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
|
-
|
69
|
+
name: cf-uaa-lib
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
72
|
none: false
|
71
73
|
requirements:
|
72
74
|
- - ~>
|
@@ -77,12 +79,12 @@ dependencies:
|
|
77
79
|
- 3
|
78
80
|
- 10
|
79
81
|
version: 1.3.10
|
80
|
-
prerelease: false
|
81
82
|
type: :runtime
|
82
|
-
|
83
|
-
requirement: *id004
|
83
|
+
version_requirements: *id004
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
|
85
|
+
name: rake
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
88
|
none: false
|
87
89
|
requirements:
|
88
90
|
- - ~>
|
@@ -92,12 +94,12 @@ dependencies:
|
|
92
94
|
- 0
|
93
95
|
- 9
|
94
96
|
version: "0.9"
|
95
|
-
prerelease: false
|
96
97
|
type: :development
|
97
|
-
|
98
|
-
requirement: *id005
|
98
|
+
version_requirements: *id005
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
|
-
|
100
|
+
name: rspec
|
101
|
+
prerelease: false
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
101
103
|
none: false
|
102
104
|
requirements:
|
103
105
|
- - ~>
|
@@ -107,12 +109,12 @@ dependencies:
|
|
107
109
|
- 2
|
108
110
|
- 11
|
109
111
|
version: "2.11"
|
110
|
-
prerelease: false
|
111
112
|
type: :development
|
112
|
-
|
113
|
-
requirement: *id006
|
113
|
+
version_requirements: *id006
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
|
-
|
115
|
+
name: webmock
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
116
118
|
none: false
|
117
119
|
requirements:
|
118
120
|
- - ~>
|
@@ -122,12 +124,12 @@ dependencies:
|
|
122
124
|
- 1
|
123
125
|
- 9
|
124
126
|
version: "1.9"
|
125
|
-
prerelease: false
|
126
127
|
type: :development
|
127
|
-
|
128
|
-
requirement: *id007
|
128
|
+
version_requirements: *id007
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
|
-
|
130
|
+
name: rr
|
131
|
+
prerelease: false
|
132
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
131
133
|
none: false
|
132
134
|
requirements:
|
133
135
|
- - ~>
|
@@ -137,12 +139,12 @@ dependencies:
|
|
137
139
|
- 1
|
138
140
|
- 0
|
139
141
|
version: "1.0"
|
140
|
-
prerelease: false
|
141
142
|
type: :development
|
142
|
-
|
143
|
-
requirement: *id008
|
143
|
+
version_requirements: *id008
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
|
-
|
145
|
+
name: gem-release
|
146
|
+
prerelease: false
|
147
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
146
148
|
none: false
|
147
149
|
requirements:
|
148
150
|
- - ">="
|
@@ -151,12 +153,12 @@ dependencies:
|
|
151
153
|
segments:
|
152
154
|
- 0
|
153
155
|
version: "0"
|
154
|
-
prerelease: false
|
155
156
|
type: :development
|
156
|
-
|
157
|
-
requirement: *id009
|
157
|
+
version_requirements: *id009
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
|
-
|
159
|
+
name: timecop
|
160
|
+
prerelease: false
|
161
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
160
162
|
none: false
|
161
163
|
requirements:
|
162
164
|
- - ">="
|
@@ -165,10 +167,8 @@ dependencies:
|
|
165
167
|
segments:
|
166
168
|
- 0
|
167
169
|
version: "0"
|
168
|
-
prerelease: false
|
169
170
|
type: :development
|
170
|
-
|
171
|
-
requirement: *id010
|
171
|
+
version_requirements: *id010
|
172
172
|
description:
|
173
173
|
email:
|
174
174
|
- vcap-dev@googlegroups.com
|