new_cfoundry 4.8.3 → 4.9.0

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: 1db0e9895e11eccd067274b7989b8c7d630da182
4
- data.tar.gz: 0777ad44dc209588fa57c28e48ac3aafbc82eb36
3
+ metadata.gz: 3bfc22466bdb9775e0158b58a4ecf048f40eaaaa
4
+ data.tar.gz: 644a3ce2d136afde2d0d4a9bbb560f512e840166
5
5
  SHA512:
6
- metadata.gz: 8038fb2fd9388649c229c1c614b00a4f0bc52b019721e2128b17ee752be739f5f844351990c934a1d2e4c5636805db71f66da0611dc3941cc4fc80287cb48faf
7
- data.tar.gz: d6eadc54a8ce1530182213597db2800b0f978942bee0c9d33521f29b38ca4f5bd79ba85215b952a25a12749b1c462872b3089928a46f91454a84c27922ea20ad
6
+ metadata.gz: 4c92002ef239613b182ba525b90225389e32383af92ffa3847018e4cf68c1548af41c8f26ccc8fcfc2a966c64d6698c853c97a7f48b5d963e793bf240f3b52f8
7
+ data.tar.gz: 992dc26336b5e38f3e362719dcdb065c38ef85875baeb12204b5db7ec0d451f0e1a603925dac99fcd73388f24f1854808945bf3b5593eecdbcd426f2b6cdaaa8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.8.3
1
+ 4.9.0
@@ -1,14 +1,11 @@
1
1
  module CFoundry
2
2
  module ProxyOptions
3
3
  def proxy_options_for(uri)
4
- ssl = uri.is_a?(URI::HTTPS)
5
- proxy_to_use = (ssl ? https_proxy : http_proxy)
4
+ proxy_uri = uri.find_proxy
6
5
 
7
- if proxy_to_use.blank?
6
+ if proxy_uri.nil?
8
7
  []
9
8
  else
10
- proxy_to_use = "proto://#{proxy_to_use}" unless proxy_to_use =~ /:\/\//
11
- proxy_uri = URI.parse(proxy_to_use)
12
9
  proxy_user, proxy_password = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
13
10
  [proxy_uri.host, proxy_uri.port, proxy_user, proxy_password]
14
11
  end
@@ -14,6 +14,7 @@ module CFoundry::V2
14
14
  to_many :domains
15
15
  to_many :service_instances
16
16
  to_many :services
17
+ to_many :routes
17
18
 
18
19
  to_many_support :developers
19
20
  to_many_support :managers
@@ -238,12 +238,14 @@ describe CFoundry::BaseClient do
238
238
 
239
239
  it "sets proxy options if available" do
240
240
  stub_request(:get, "https://example.com/something")
241
- subject.https_proxy = "user:password@https-proxy.example.com:1234"
241
+ original_proxy_env = ENV["https_proxy"]
242
+ ENV["https_proxy"] = "http://user:password@https-proxy.example.com:1234"
242
243
  allow(Net::HTTP).to receive(:start).and_call_original
243
244
 
244
245
  subject.stream_url("https://example.com/something")
245
246
 
246
247
  expect(Net::HTTP).to have_received(:start).with(anything, anything, 'https-proxy.example.com', 1234, 'user', 'password', anything)
248
+ ENV["https_proxy"] = original_proxy_env
247
249
  end
248
250
 
249
251
  it "raises NotFound if response is 404" do
@@ -295,6 +295,15 @@ describe CFoundry::RestClient do
295
295
  subject { CFoundry::RestClient::HTTPFactory.create(URI.parse(target_uri), proxy_options) }
296
296
 
297
297
  context "when no proxy URI is set" do
298
+ before do
299
+ @original_no_proxy_env = ENV["NO_PROXY"]
300
+ ENV["NO_PROXY"] = "example.com"
301
+ end
302
+
303
+ after do
304
+ ENV["NO_PROXY"] = @original_no_proxy_env
305
+ end
306
+
298
307
  it "should return an instance of the plain Net:HTTP class" do
299
308
  expect(subject).to be_instance_of(Net::HTTP)
300
309
  expect(subject.use_ssl?).to be_false
@@ -303,6 +312,15 @@ describe CFoundry::RestClient do
303
312
  end
304
313
 
305
314
  context "when the target is an https URI" do
315
+ before do
316
+ @original_no_proxy_env = ENV["NO_PROXY"]
317
+ ENV["NO_PROXY"] = "example.com"
318
+ end
319
+
320
+ after do
321
+ ENV["NO_PROXY"] = @original_no_proxy_env
322
+ end
323
+
306
324
  let(:target_uri) { "https://example.com" }
307
325
  it "should return an instance of the plain Net:HTTP class with use_ssl" do
308
326
  expect(subject).to be_instance_of(Net::HTTP)
@@ -145,6 +145,16 @@ json
145
145
  expect(WebMock).to have_requested(:put, "http://api.example.com/v2/spaces/#{space.guid}/developers")
146
146
  end
147
147
  end
148
+
149
+ describe "#list_routes_for_space" do
150
+ let(:domain) { build(:domain, :name => "my-domain") }
151
+ let(:route) { build(:route, :domain => domain) }
152
+
153
+ it "returns the domain that the user has specified" do
154
+ allow(space).to receive(:routes).and_return([route])
155
+ expect(space.routes[0].domain.name).to eq("my-domain")
156
+ end
157
+ end
148
158
  end
149
159
  end
150
160
  end
@@ -0,0 +1,4 @@
1
+ cf-errors
2
+ =========
3
+
4
+ Shared error codes and messages for Cloud Foundry
@@ -0,0 +1,189 @@
1
+ 100:
2
+ name: BadRequest
3
+ http_code: 400
4
+ message: "Bad request"
5
+
6
+ 101:
7
+ name: DatabaseError
8
+ http_code: 500
9
+ message: "Error talking with the database"
10
+
11
+ 102:
12
+ name: LockingError
13
+ http_code: 400
14
+ message: "Optimistic locking failure"
15
+
16
+ 111:
17
+ name: SystemError
18
+ http_code: 500
19
+ message: "System Exception Encountered"
20
+
21
+ 200:
22
+ name: Forbidden
23
+ http_code: 403
24
+ message: "Operation not permitted"
25
+
26
+ 201:
27
+ name: UserNotFound
28
+ http_code: 403
29
+ message: "User not found"
30
+
31
+ 202:
32
+ name: HttpsRequired
33
+ http_code: 403
34
+ message: "HTTPS required"
35
+
36
+ 300:
37
+ name: AppInvalid
38
+ http_code: 400
39
+ message: "Invalid application description"
40
+
41
+ 301:
42
+ name: AppNotFound
43
+ http_code: 404
44
+ message: "Application not found"
45
+
46
+ 302:
47
+ name: AppNoResources
48
+ http_code: 404
49
+ message: "Couldn't find a place to run an app"
50
+
51
+ 303:
52
+ name: AppFileNotFound
53
+ http_code: 404
54
+ message: "Could not find : '%s'"
55
+
56
+ 304:
57
+ name: AppInstanceNotFound
58
+ http_code: 400
59
+ message: "Could not find instance: '%s'"
60
+
61
+ 305:
62
+ name: AppStopped
63
+ http_code: 400
64
+ message: "Operation not permitted on a stopped app"
65
+
66
+ 306:
67
+ name: AppFileError
68
+ http_code: 500
69
+ message: "Error retrieving file '%s'"
70
+
71
+ 307:
72
+ name: AppInvalidRuntime
73
+ http_code: 400
74
+ message: "Invalid runtime specification [%s] for framework: '%s'"
75
+
76
+ 308:
77
+ name: AppInvalidFramework
78
+ http_code: 400
79
+ message: "Invalid framework description: '%s'"
80
+
81
+ 309:
82
+ name: AppDebugDisallowed
83
+ http_code: 400
84
+ message: "Cloud controller has disallowed debugging."
85
+
86
+ 310:
87
+ name: AppStagingError
88
+ http_code: 500
89
+ message: "Staging failed: '%s'"
90
+
91
+ 400:
92
+ name: ResourcesUnknownPackageType
93
+ http_code: 400
94
+ message: 'Unknown package type requested: "%"'
95
+
96
+ 401:
97
+ name: ResourcesMissingResource
98
+ http_code: 400
99
+ message: "Could not find the requested resource"
100
+
101
+ 402:
102
+ name: ResourcesPackagingFailed
103
+ http_code: 500
104
+ message: "App packaging failed: '%s'"
105
+
106
+ 500:
107
+ name: ServiceNotFound
108
+ http_code: 404
109
+ message: "Service not found"
110
+
111
+ 501:
112
+ name: BindingNotFound
113
+ http_code: 404
114
+ message: "Binding not found"
115
+
116
+ 502:
117
+ name: TokenNotFound
118
+ http_code: 404
119
+ message: "Token not found"
120
+
121
+ 503:
122
+ name: ServiceGatewayError
123
+ http_code: 502
124
+ message: "Unexpected response from service gateway"
125
+
126
+ 504:
127
+ name: AccountTooManyServices
128
+ http_code: 403
129
+ message: "Too many Services provisioned: %s, you're allowed: %s"
130
+
131
+ 505:
132
+ name: ExtensionNotImpl
133
+ http_code: 501
134
+ message: "Service extension %s is not implemented."
135
+
136
+ 506:
137
+ name: UnsupportedVersion
138
+ http_code: 404
139
+ message: "Unsupported service version %s."
140
+
141
+ 507:
142
+ name: SdsError
143
+ http_code: 500
144
+ message: "Get error from serialization_data_server: '%s'"
145
+
146
+ 508:
147
+ name: SdsNotFound
148
+ http_code: 500
149
+ message: "No available active serialization data server"
150
+
151
+ 600:
152
+ name: AccountNotEnoughMemory
153
+ http_code: 403
154
+ message: "Not enough memory capacity, you're allowed: %s"
155
+
156
+ 601:
157
+ name: AccountAppsTooMany
158
+ http_code: 403
159
+ message: "Too many applications: %s, you're allowed: %s"
160
+
161
+ 602:
162
+ name: AccountAppTooManyUris
163
+ http_code: 403
164
+ message: "Too many URIs: %s, you're allowed: %s"
165
+
166
+ 700:
167
+ name: UriInvalid
168
+ http_code: 400
169
+ message: 'Invalid URI: "%s"'
170
+
171
+ 701:
172
+ name: UriAlreadyTaken
173
+ http_code: 400
174
+ message: 'The URI: "%s" has already been taken or reserved'
175
+
176
+ 702:
177
+ name: UriNotAllowed
178
+ http_code: 403
179
+ message: "External URIs are not enabled for this account"
180
+
181
+ 800:
182
+ name: StagingTimedOut
183
+ http_code: 500
184
+ message: "Timed out waiting for staging to complete"
185
+
186
+ 801:
187
+ name: StagingFailed
188
+ http_code: 500
189
+ message: "Staging failed"
@@ -0,0 +1,384 @@
1
+ 1000:
2
+ name: InvalidAuthToken
3
+ http_code: 401
4
+ message: "Invalid Auth Token"
5
+
6
+ 1001:
7
+ name: MessageParseError
8
+ http_code: 400
9
+ message: "Request invalid due to parse error: %s"
10
+
11
+ 1002:
12
+ name: InvalidRelation
13
+ http_code: 400
14
+ message: "Invalid relation: %s"
15
+
16
+ 10000:
17
+ name: NotFound
18
+ http_code: 404
19
+ message: "Unknown request"
20
+
21
+ 10001:
22
+ name: ServerError
23
+ http_code: 500
24
+ message: "Server error"
25
+
26
+ 10002:
27
+ name: NotAuthenticated
28
+ http_code: 401
29
+ message: "Authentication error"
30
+
31
+ 10003:
32
+ name: NotAuthorized
33
+ http_code: 403
34
+ message: "You are not authorized to perform the requested action"
35
+
36
+ 10004:
37
+ name: InvalidRequest
38
+ http_code: 400
39
+ message: "The request is invalid"
40
+
41
+ 10005:
42
+ name: BadQueryParameter
43
+ http_code: 400
44
+ message: "The query parameter is invalid: %s"
45
+
46
+ 10006:
47
+ name: AssociationNotEmpty
48
+ http_code: 400
49
+ message: "Please delete the %s associations for your %s."
50
+
51
+ 20001:
52
+ name: UserInvalid
53
+ http_code: 400
54
+ message: "The user info is invalid: %s"
55
+
56
+ 20002:
57
+ name: UaaIdTaken
58
+ http_code: 400
59
+ message: "The UAA ID is taken: %s"
60
+
61
+ 20003:
62
+ name: UserNotFound
63
+ http_code: 404
64
+ message: "The user could not be found: %s"
65
+
66
+ 30001:
67
+ name: OrganizationInvalid
68
+ http_code: 400
69
+ message: "The organization info is invalid: %s"
70
+
71
+ 30002:
72
+ name: OrganizationNameTaken
73
+ http_code: 400
74
+ message: "The organization name is taken: %s"
75
+
76
+ 30003:
77
+ name: OrganizationNotFound
78
+ http_code: 404
79
+ message: "The organization could not be found: %s"
80
+
81
+ 40001:
82
+ name: SpaceInvalid
83
+ http_code: 400
84
+ message: "The app space info is invalid: %s"
85
+
86
+ 40002:
87
+ name: SpaceNameTaken
88
+ http_code: 400
89
+ message: "The app space name is taken: %s"
90
+
91
+ 40003:
92
+ name: SpaceUserNotInOrg
93
+ http_code: 400
94
+ message: "The app space and the user are not in the same org: %s"
95
+
96
+ 40004:
97
+ name: SpaceNotFound
98
+ http_code: 404
99
+ message: "The app space could not be found: %s"
100
+
101
+ 50001:
102
+ name: ServiceAuthTokenInvalid
103
+ http_code: 400
104
+ message: "The service auth token is invalid: %s"
105
+
106
+ 50002:
107
+ name: ServiceAuthTokenLabelTaken
108
+ http_code: 400
109
+ message: "The service auth token label is taken: %s"
110
+
111
+ 50003:
112
+ name: ServiceAuthTokenNotFound
113
+ http_code: 404
114
+ message: "The service auth token could not be found: %s"
115
+
116
+ 60001:
117
+ name: ServiceInstanceNameInvalid
118
+ http_code: 400
119
+ message: "The service instance name is taken: %s"
120
+
121
+ 60002:
122
+ name: ServiceInstanceNameTaken
123
+ http_code: 400
124
+ message: "The service instance name is taken: %s"
125
+
126
+ 60003:
127
+ name: ServiceInstanceServiceBindingWrongSpace
128
+ http_code: 400
129
+ message: "The service instance and the service binding are in different app spaces: %s"
130
+
131
+ 60003:
132
+ name: ServiceInstanceInvalid
133
+ http_code: 400
134
+ message: "The service instance is invalid: %s"
135
+
136
+ 60004:
137
+ name: ServiceInstanceNotFound
138
+ http_code: 404
139
+ message: "The service instance could not be found: %s"
140
+
141
+ 60005:
142
+ name: ServiceInstanceFreeQuotaExceeded
143
+ http_code: 400
144
+ message: "You have exceeded your organization's services limit. Please login to your account and upgrade."
145
+
146
+ 60006:
147
+ name: ServiceInstancePaidQuotaExceeded
148
+ http_code: 400
149
+ message: "You have exceeded your organization's services limit. Please file a support ticket to request additional resources."
150
+
151
+ 60007:
152
+ name: ServiceInstanceServicePlanNotAllowed
153
+ http_code: 400
154
+ message: "The service instance cannot be created because paid service plans are not allowed."
155
+
156
+ 70001:
157
+ name: RuntimeInvalid
158
+ http_code: 400
159
+ message: "The runtime is invalid: %s"
160
+
161
+ 70002:
162
+ name: RuntimeNameTaken
163
+ http_code: 400
164
+ message: "The runtime name is taken: %s"
165
+
166
+ 70003:
167
+ name: RuntimeNotFound
168
+ http_code: 404
169
+ message: "The runtime could not be found: %s"
170
+
171
+ 80001:
172
+ name: FrameworkInvalid
173
+ http_code: 400
174
+ message: "The framework is invalid: %s"
175
+
176
+ 80002:
177
+ name: FrameworkNameTaken
178
+ http_code: 400
179
+ message: "The framework name is taken: %s"
180
+
181
+ 80003:
182
+ name: FrameworkNotFound
183
+ http_code: 404
184
+ message: "The framework could not be found: %s"
185
+
186
+ 90001:
187
+ name: ServiceBindingInvalid
188
+ http_code: 400
189
+ message: "The service binding is invalid: %s"
190
+
191
+ 90002:
192
+ name: ServiceBindingDifferentSpaces
193
+ http_code: 400
194
+ message: "The app and the service are not in the same app space: %s"
195
+
196
+ 90003:
197
+ name: ServiceBindingAppServiceTaken
198
+ http_code: 400
199
+ message: "The app space binding to service is taken: %s"
200
+
201
+ 90004:
202
+ name: ServiceBindingNotFound
203
+ http_code: 404
204
+ message: "The service binding could not be found: %s"
205
+
206
+ 100001:
207
+ name: AppInvalid
208
+ http_code: 400
209
+ message: "The app is invalid: %s"
210
+
211
+ 100002:
212
+ name: AppNameTaken
213
+ http_code: 400
214
+ message: "The app name is taken: %s"
215
+
216
+ 100004:
217
+ name: AppNotFound
218
+ http_code: 404
219
+ message: "The app name could not be found: %s"
220
+
221
+ 100005:
222
+ name: AppMemoryQuotaExceeded
223
+ http_code: 400
224
+ message: "You have exceeded your organization's memory limit. Please login to your account and upgrade. If you are trying to scale down and you are receiving this error, you can either delete an app or contact support."
225
+
226
+ 110001:
227
+ name: ServicePlanInvalid
228
+ http_code: 400
229
+ message: "The service plan is invalid: %s"
230
+
231
+ 110002:
232
+ name: ServicePlanNameTaken
233
+ http_code: 400
234
+ message: "The service plan name is taken: %s"
235
+
236
+ 110003:
237
+ name: ServicePlanNotFound
238
+ http_code: 404
239
+ message: "The service plan could not be found: %s"
240
+
241
+ 120001:
242
+ name: ServiceInvalid
243
+ http_code: 400
244
+ message: "The service is invalid: %s"
245
+
246
+ 120002:
247
+ name: ServiceLabelTaken
248
+ http_code: 400
249
+ message: "The service lable is taken: %s"
250
+
251
+ 120003:
252
+ name: ServiceNotFound
253
+ http_code: 404
254
+ message: "The service could not be found: %s"
255
+
256
+ 130001:
257
+ name: DomainInvalid
258
+ http_code: 400
259
+ message: "The domain is invalid: %s"
260
+
261
+ 130002:
262
+ name: DomainNotFound
263
+ http_code: 404
264
+ message: "The domain could not be found: %s"
265
+
266
+ 130003:
267
+ name: DomainNameTaken
268
+ http_code: 400
269
+ message: "The domain name is taken: %s"
270
+
271
+ 140001:
272
+ name: LegacyApiWithoutDefaultSpace
273
+ http_code: 400
274
+ message: "A legacy api call requring a default app space was called, but no default app space is set for the user."
275
+
276
+ 150001:
277
+ name: AppPackageInvalid
278
+ http_code: 400
279
+ message: "The app package is invalid: %s"
280
+
281
+ 150002:
282
+ name: AppPackageNotFound
283
+ http_code: 404
284
+ message: "The app package could not be found: %s"
285
+
286
+ 160001:
287
+ name: AppBitsUploadInvalid
288
+ http_code: 400
289
+ message: "The app upload is invalid: %s"
290
+
291
+ 170001:
292
+ name: StagingError
293
+ http_code: 400
294
+ message: "Staging error: %s"
295
+
296
+ 170002:
297
+ name: NotStaged
298
+ http_code: 400
299
+ message: "App has not finished staging"
300
+
301
+ 180001:
302
+ name: SnapshotNotFound
303
+ http_code: 404
304
+ message: "Snapshot could not be found: %s"
305
+
306
+ 180002:
307
+ name: ServiceGatewayError
308
+ http_code: 503
309
+ message: "Service gateway internal error: %s"
310
+
311
+ 180003:
312
+ name: ServiceNotImplemented
313
+ http_code: 501
314
+ message: "Operation not supported for service"
315
+
316
+ 180004:
317
+ name: SDSNotAvailable
318
+ http_code: 501
319
+ message: "No serialization service backends available"
320
+
321
+ 190001:
322
+ name: FileError
323
+ http_code: 400
324
+ message: "File error: %s"
325
+
326
+ 200001:
327
+ name: StatsError
328
+ http_code: 400
329
+ message: "Stats error: %s"
330
+
331
+ 210001:
332
+ name: RouteInvalid
333
+ http_code: 400
334
+ message: "The route is invalid: %s"
335
+
336
+ 210002:
337
+ name: RouteNotFound
338
+ http_code: 404
339
+ message: "The route could not be found: %s"
340
+
341
+ 210003:
342
+ name: RouteHostTaken
343
+ http_code: 400
344
+ message: "The host is taken: %s"
345
+
346
+ 220001:
347
+ name: InstancesError
348
+ http_code: 400
349
+ message: "Instances error: %s"
350
+
351
+ 230001:
352
+ name: BillingEventQueryInvalid
353
+ http_code: 400
354
+ message: "Billing event query start_date and/or end_date are missing or invalid"
355
+
356
+ 240001:
357
+ name: QuotaDefinitionNotFound
358
+ http_code: 404
359
+ message: "Quota Definition could not be found: %s"
360
+
361
+ 240002:
362
+ name: QuotaDefinitionNameTaken
363
+ http_code: 400
364
+ message: "Quota Definition is taken: %s"
365
+
366
+ 240003:
367
+ name: QuotaDefinitionInvalid
368
+ http_code: 400
369
+ message: "Quota Definition is invalid: %s"
370
+
371
+ 250001:
372
+ name: StackInvalid
373
+ http_code: 400
374
+ message: "The stack is invalid: %s"
375
+
376
+ 250002:
377
+ name: StackNameTaken
378
+ http_code: 400
379
+ message: "The stack name is taken: %s"
380
+
381
+ 250003:
382
+ name: StackNotFound
383
+ http_code: 404
384
+ message: "The stack could not be found: %s"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.3
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CI-Platform-Team
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-26 00:00:00.000000000 Z
12
+ date: 2017-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -554,6 +554,9 @@ files:
554
554
  - spec/support/shared_examples/client_login_examples.rb
555
555
  - spec/support/shared_examples/model_summary_examples.rb
556
556
  - spec/support/test_model_builder.rb
557
+ - vendor/errors/README.md
558
+ - vendor/errors/v1.yml
559
+ - vendor/errors/v2.yml
557
560
  homepage: http://github.com/kirikak2/cfoundry
558
561
  licenses:
559
562
  - Apache 2.0
@@ -574,131 +577,131 @@ required_rubygems_version: !ruby/object:Gem::Requirement
574
577
  version: '0'
575
578
  requirements: []
576
579
  rubyforge_project:
577
- rubygems_version: 2.4.8
580
+ rubygems_version: 2.2.2
578
581
  signing_key:
579
582
  specification_version: 4
580
583
  summary: High-level library for working with the Cloud Foundry API. This is fork from
581
584
  https://github.com/cloudfoundry-attic/cfoundry
582
585
  test_files:
586
+ - spec/spec_helper.rb
587
+ - spec/factories/clients_factory.rb
588
+ - spec/factories/events_factory.rb
589
+ - spec/factories/services_factory.rb
590
+ - spec/factories/app_events_factory.rb
591
+ - spec/factories/app_usage_events_factory.rb
592
+ - spec/factories/user_provided_service_instances_factory.rb
593
+ - spec/factories/users_factory.rb
594
+ - spec/factories/service_instances_factory.rb
595
+ - spec/factories/apps_factory.rb
596
+ - spec/factories/domains_factory.rb
597
+ - spec/factories/quota_definitions_factory.rb
598
+ - spec/factories/spaces_factory.rb
599
+ - spec/factories/organizations_factory.rb
600
+ - spec/factories/service_plans_factory.rb
601
+ - spec/factories/routes_factory.rb
602
+ - spec/cfoundry/trace_helpers_spec.rb
603
+ - spec/cfoundry/validator_spec.rb
604
+ - spec/cfoundry/rest_client_spec.rb
605
+ - spec/cfoundry/baseclient_spec.rb
606
+ - spec/cfoundry/client_spec.rb
607
+ - spec/cfoundry/upload_helpers_spec.rb
608
+ - spec/cfoundry/v2/app_event_spec.rb
583
609
  - spec/cfoundry/v2/organization_spec.rb
610
+ - spec/cfoundry/v2/user_provided_service_instance_spec.rb
584
611
  - spec/cfoundry/v2/quota_definition_spec.rb
585
- - spec/cfoundry/v2/route_spec.rb
586
- - spec/cfoundry/v2/model_magic_spec.rb
612
+ - spec/cfoundry/v2/space_spec.rb
613
+ - spec/cfoundry/v2/managed_service_instance_spec.rb
614
+ - spec/cfoundry/v2/user_spec.rb
587
615
  - spec/cfoundry/v2/client_spec.rb
588
- - spec/cfoundry/v2/app_instance_spec.rb
616
+ - spec/cfoundry/v2/route_spec.rb
589
617
  - spec/cfoundry/v2/model_spec.rb
590
- - spec/cfoundry/v2/app_event_spec.rb
591
- - spec/cfoundry/v2/event_spec.rb
592
- - spec/cfoundry/v2/user_provided_service_instance_spec.rb
593
618
  - spec/cfoundry/v2/app_spec.rb
594
- - spec/cfoundry/v2/service_plan_spec.rb
595
- - spec/cfoundry/v2/user_spec.rb
596
- - spec/cfoundry/v2/app_usage_event_spec.rb
619
+ - spec/cfoundry/v2/base_spec.rb
597
620
  - spec/cfoundry/v2/model_magic/to_many_spec.rb
621
+ - spec/cfoundry/v2/model_magic/has_summary_spec.rb
598
622
  - spec/cfoundry/v2/model_magic/to_one_spec.rb
599
623
  - spec/cfoundry/v2/model_magic/attribute_spec.rb
600
- - spec/cfoundry/v2/model_magic/has_summary_spec.rb
601
- - spec/cfoundry/v2/service_spec.rb
602
624
  - spec/cfoundry/v2/domain_spec.rb
603
- - spec/cfoundry/v2/base_spec.rb
604
- - spec/cfoundry/v2/managed_service_instance_spec.rb
605
- - spec/cfoundry/v2/space_spec.rb
606
- - spec/cfoundry/baseclient_spec.rb
607
- - spec/cfoundry/auth_token_spec.rb
625
+ - spec/cfoundry/v2/app_instance_spec.rb
626
+ - spec/cfoundry/v2/service_spec.rb
627
+ - spec/cfoundry/v2/model_magic_spec.rb
628
+ - spec/cfoundry/v2/service_plan_spec.rb
629
+ - spec/cfoundry/v2/app_usage_event_spec.rb
630
+ - spec/cfoundry/v2/event_spec.rb
608
631
  - spec/cfoundry/uaaclient_spec.rb
609
- - spec/cfoundry/validator_spec.rb
610
- - spec/cfoundry/client_spec.rb
611
- - spec/cfoundry/upload_helpers_spec.rb
612
632
  - spec/cfoundry/errors_spec.rb
613
- - spec/cfoundry/rest_client_spec.rb
614
- - spec/cfoundry/trace_helpers_spec.rb
615
- - spec/support/factory_girl.rb
616
- - spec/support/shared_examples/cc_api_stub_request_examples.rb
633
+ - spec/cfoundry/auth_token_spec.rb
634
+ - spec/integration/client_spec.rb
617
635
  - spec/support/shared_examples/model_summary_examples.rb
636
+ - spec/support/shared_examples/cc_api_stub_request_examples.rb
618
637
  - spec/support/shared_examples/client_login_examples.rb
638
+ - spec/support/factory_girl.rb
619
639
  - spec/support/test_model_builder.rb
620
- - spec/integration/client_spec.rb
621
- - spec/spec_helper.rb
622
- - spec/factories/events_factory.rb
623
- - spec/factories/service_plans_factory.rb
624
- - spec/factories/organizations_factory.rb
625
- - spec/factories/clients_factory.rb
626
- - spec/factories/quota_definitions_factory.rb
627
- - spec/factories/domains_factory.rb
628
- - spec/factories/apps_factory.rb
629
- - spec/factories/services_factory.rb
630
- - spec/factories/users_factory.rb
631
- - spec/factories/user_provided_service_instances_factory.rb
632
- - spec/factories/app_usage_events_factory.rb
633
- - spec/factories/routes_factory.rb
634
- - spec/factories/service_instances_factory.rb
635
- - spec/factories/app_events_factory.rb
636
- - spec/factories/spaces_factory.rb
637
- - spec/cc_api_stub/applications_spec.rb
638
- - spec/cc_api_stub/runtimes_spec.rb
639
- - spec/cc_api_stub/spaces_spec.rb
640
- - spec/cc_api_stub/frameworks_spec.rb
641
- - spec/cc_api_stub/space_users_spec.rb
642
- - spec/cc_api_stub/events_spec.rb
643
- - spec/cc_api_stub/services_spec.rb
644
- - spec/cc_api_stub/service_instances_spec.rb
645
- - spec/cc_api_stub/app_usage_events_spec.rb
646
- - spec/cc_api_stub/domains_spec.rb
647
- - spec/cc_api_stub/organizations_spec.rb
648
- - spec/cc_api_stub/login_spec.rb
649
- - spec/cc_api_stub/routes_spec.rb
650
- - spec/cc_api_stub/organization_users_spec.rb
651
- - spec/cc_api_stub/users_spec.rb
652
- - spec/cc_api_stub/service_bindings_spec.rb
640
+ - spec/fixtures/apps/with_cfignore/ambiguous_ignored
641
+ - spec/fixtures/apps/with_cfignore/ignored_file.txt
642
+ - spec/fixtures/apps/with_cfignore/non_ignored_file.txt
643
+ - spec/fixtures/apps/with_cfignore/non_ignored_dir/ignored_file.txt
644
+ - spec/fixtures/apps/with_cfignore/non_ignored_dir/file_in_non_ignored_dir.txt
645
+ - spec/fixtures/apps/with_cfignore/non_ignored_dir/toplevel_ignored.txt
646
+ - spec/fixtures/apps/with_cfignore/ignored_dir/file_in_ignored_dir.txt
647
+ - spec/fixtures/apps/with_cfignore/toplevel_ignored.txt
648
+ - spec/fixtures/apps/with_ignored_external_symlink/foo
649
+ - spec/fixtures/apps/with_external_symlink/foo
650
+ - spec/fixtures/apps/with_nested_directories/xyz
651
+ - spec/fixtures/apps/with_nested_directories/foo/bar/baz/fizz
652
+ - spec/fixtures/apps/with_dotfiles/xyz
653
+ - spec/fixtures/fake_cc_created_space.json
654
+ - spec/fixtures/fake_cc_application.json
655
+ - spec/fixtures/fake_cc_space_summary.json
656
+ - spec/fixtures/fake_cc_space_apps.json
653
657
  - spec/fixtures/fake_cc_app_usage_events.json
654
- - spec/fixtures/fake_cc_services.json
655
- - spec/fixtures/fake_cc_service_binding.json
656
- - spec/fixtures/fake_cc_user_with_managers.json
657
- - spec/fixtures/fake_cc_application_summary.json
658
- - spec/fixtures/fake_cc_organization_users.json
658
+ - spec/fixtures/fake_cc_user.json
659
659
  - spec/fixtures/fake_cc_created_organization.json
660
- - spec/fixtures/fake_cc_runtimes.json
661
- - spec/fixtures/fake_cc_organization.json
662
- - spec/fixtures/fake_cc_user_organizations.json
663
- - spec/fixtures/empty_file
660
+ - spec/fixtures/fake_cc_created_application.json
664
661
  - spec/fixtures/fake_cc_route.json
662
+ - spec/fixtures/fake_cc_user_organizations.json
663
+ - spec/fixtures/fake_cc_organization_users.json
664
+ - spec/fixtures/fake_cc_created_user.json
665
+ - spec/fixtures/fake_cc_frameworks.json
665
666
  - spec/fixtures/fake_cc_spaces.json
666
- - spec/fixtures/fake_cc_service_bindings.json
667
- - spec/fixtures/fake_cc_service_instance.json
668
- - spec/fixtures/fake_cc_created_route.json
669
- - spec/fixtures/fake_cc_events.json
670
- - spec/fixtures/fake_cc_organization_domains.json
671
- - spec/fixtures/fake_cc_created_application.json
672
- - spec/fixtures/fake_cc_domain_spaces.json
673
- - spec/fixtures/fake_cc_organization_search.json
674
- - spec/fixtures/fake_cc_user_provided_service_instance.json
667
+ - spec/fixtures/fake_cc_created_domain.json
668
+ - spec/fixtures/fake_cc_space.json
675
669
  - spec/fixtures/fake_cc_stats.json
676
- - spec/fixtures/fake_cc_application.json
677
- - spec/fixtures/fake_cc_service_instances.json
678
- - spec/fixtures/fake_cc_space_summary.json
679
670
  - spec/fixtures/fake_cc_organization_summary.json
680
- - spec/fixtures/fake_cc_frameworks.json
681
- - spec/fixtures/fake_cc_created_user.json
682
- - spec/fixtures/fake_cc_created_domain.json
683
- - spec/fixtures/fake_cc_domain.json
684
671
  - spec/fixtures/fake_cc_empty_search.json
685
- - spec/fixtures/fake_cc_space_apps.json
686
- - spec/fixtures/fake_cc_space.json
687
- - spec/fixtures/fake_cc_created_space.json
688
- - spec/fixtures/fake_cc_user.json
672
+ - spec/fixtures/fake_cc_organization_domains.json
673
+ - spec/fixtures/empty_file
674
+ - spec/fixtures/fake_cc_created_service_instance.json
675
+ - spec/fixtures/fake_cc_organization.json
676
+ - spec/fixtures/fake_cc_service_binding.json
689
677
  - spec/fixtures/fake_cc_managed_service_instance.json
678
+ - spec/fixtures/fake_cc_service_bindings.json
679
+ - spec/fixtures/fake_cc_events.json
680
+ - spec/fixtures/fake_cc_user_with_managers.json
681
+ - spec/fixtures/fake_cc_runtimes.json
682
+ - spec/fixtures/fake_cc_created_route.json
690
683
  - spec/fixtures/fake_cc_organization_spaces.json
691
- - spec/fixtures/fake_cc_created_service_instance.json
692
- - spec/fixtures/apps/with_nested_directories/foo/bar/baz/fizz
693
- - spec/fixtures/apps/with_nested_directories/xyz
694
- - spec/fixtures/apps/with_cfignore/non_ignored_file.txt
695
- - spec/fixtures/apps/with_cfignore/ambiguous_ignored
696
- - spec/fixtures/apps/with_cfignore/ignored_file.txt
697
- - spec/fixtures/apps/with_cfignore/ignored_dir/file_in_ignored_dir.txt
698
- - spec/fixtures/apps/with_cfignore/toplevel_ignored.txt
699
- - spec/fixtures/apps/with_cfignore/non_ignored_dir/ignored_file.txt
700
- - spec/fixtures/apps/with_cfignore/non_ignored_dir/file_in_non_ignored_dir.txt
701
- - spec/fixtures/apps/with_cfignore/non_ignored_dir/toplevel_ignored.txt
702
- - spec/fixtures/apps/with_external_symlink/foo
703
- - spec/fixtures/apps/with_dotfiles/xyz
704
- - spec/fixtures/apps/with_ignored_external_symlink/foo
684
+ - spec/fixtures/fake_cc_service_instance.json
685
+ - spec/fixtures/fake_cc_organization_search.json
686
+ - spec/fixtures/fake_cc_services.json
687
+ - spec/fixtures/fake_cc_service_instances.json
688
+ - spec/fixtures/fake_cc_domain_spaces.json
689
+ - spec/fixtures/fake_cc_application_summary.json
690
+ - spec/fixtures/fake_cc_user_provided_service_instance.json
691
+ - spec/fixtures/fake_cc_domain.json
692
+ - spec/cc_api_stub/applications_spec.rb
693
+ - spec/cc_api_stub/frameworks_spec.rb
694
+ - spec/cc_api_stub/events_spec.rb
695
+ - spec/cc_api_stub/domains_spec.rb
696
+ - spec/cc_api_stub/app_usage_events_spec.rb
697
+ - spec/cc_api_stub/service_bindings_spec.rb
698
+ - spec/cc_api_stub/users_spec.rb
699
+ - spec/cc_api_stub/space_users_spec.rb
700
+ - spec/cc_api_stub/login_spec.rb
701
+ - spec/cc_api_stub/routes_spec.rb
702
+ - spec/cc_api_stub/runtimes_spec.rb
703
+ - spec/cc_api_stub/services_spec.rb
704
+ - spec/cc_api_stub/organizations_spec.rb
705
+ - spec/cc_api_stub/spaces_spec.rb
706
+ - spec/cc_api_stub/service_instances_spec.rb
707
+ - spec/cc_api_stub/organization_users_spec.rb