new_cfoundry 4.9.1 → 4.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/VERSION +1 -1
- data/cfoundry.gemspec +1 -1
- data/lib/cfoundry/v2/model.rb +8 -6
- data/spec/cfoundry/auth_token_spec.rb +2 -2
- data/spec/cfoundry/rest_client_spec.rb +6 -6
- data/spec/cfoundry/v2/domain_spec.rb +3 -3
- data/spec/cfoundry/v2/model_spec.rb +57 -19
- data/spec/cfoundry/v2/service_plan_spec.rb +2 -2
- data/spec/cfoundry/v2/user_spec.rb +2 -2
- data/spec/cfoundry/validator_spec.rb +19 -19
- metadata +101 -95
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81542bb7be0c44a2809b3db5d62828116960a12d
|
4
|
+
data.tar.gz: 6930795ec6e5eb197885b9f8b63e24760734289a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7cc869bc3e0cfc11794135895231ddca169fcff29454f6c2605ab7d582b6398f4ed8bd6ee9b4ed803e4210544e102096feef7f26b285436b8cfc28939df528a
|
7
|
+
data.tar.gz: e20f1c87f7d070f8ecf2ddee408ec5f2a82ae8b1c73d52f76ca67ce909346bceb5b73f1553ca62f8eeb30a8e07b514173375befc002910c3040860b9ba15b880
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.9.
|
1
|
+
4.9.2
|
data/cfoundry.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_development_dependency "factory_girl"
|
32
32
|
s.add_development_dependency "gem-release"
|
33
33
|
s.add_development_dependency "json_pure", "~> 1.8"
|
34
|
-
s.add_development_dependency "rake", ">= 0.9"
|
34
|
+
s.add_development_dependency "rake", ">= 0.9", "< 11.0"
|
35
35
|
s.add_development_dependency "rspec", "~> 2.14"
|
36
36
|
s.add_development_dependency "shoulda-matchers", "~> 2.5.0"
|
37
37
|
s.add_development_dependency "timecop", "~> 0.6.1"
|
data/lib/cfoundry/v2/model.rb
CHANGED
@@ -76,8 +76,8 @@ module CFoundry::V2
|
|
76
76
|
@changes = {}
|
77
77
|
end
|
78
78
|
|
79
|
-
def create
|
80
|
-
create!
|
79
|
+
def create(options = {})
|
80
|
+
create!(options)
|
81
81
|
true
|
82
82
|
rescue CFoundry::APIError => e
|
83
83
|
if e.instance_of? CFoundry::APIError
|
@@ -94,7 +94,7 @@ module CFoundry::V2
|
|
94
94
|
|
95
95
|
# this does a bit of extra processing to allow for
|
96
96
|
# `delete!' followed by `create!'
|
97
|
-
def create!
|
97
|
+
def create!(options = {})
|
98
98
|
payload = {}
|
99
99
|
|
100
100
|
@manifest ||= {}
|
@@ -123,7 +123,8 @@ module CFoundry::V2
|
|
123
123
|
@manifest = @client.base.post("v2", create_endpoint_name,
|
124
124
|
:content => :json,
|
125
125
|
:accept => :json,
|
126
|
-
:payload => payload
|
126
|
+
:payload => payload,
|
127
|
+
:params => options
|
127
128
|
)
|
128
129
|
|
129
130
|
@guid = @manifest[:metadata][:guid]
|
@@ -137,11 +138,12 @@ module CFoundry::V2
|
|
137
138
|
plural_object_name
|
138
139
|
end
|
139
140
|
|
140
|
-
def update!
|
141
|
+
def update!(options ={})
|
141
142
|
@manifest = @client.base.put("v2", plural_object_name, guid,
|
142
143
|
:content => :json,
|
143
144
|
:accept => :json,
|
144
|
-
:payload => @diff
|
145
|
+
:payload => @diff,
|
146
|
+
:params => options
|
145
147
|
)
|
146
148
|
|
147
149
|
@diff.clear
|
@@ -135,7 +135,7 @@ describe CFoundry::AuthToken do
|
|
135
135
|
|
136
136
|
it "returns true" do
|
137
137
|
Timecop.freeze do
|
138
|
-
expect(subject.expires_soon?).to
|
138
|
+
expect(subject.expires_soon?).to be_truthy
|
139
139
|
end
|
140
140
|
end
|
141
141
|
end
|
@@ -145,7 +145,7 @@ describe CFoundry::AuthToken do
|
|
145
145
|
|
146
146
|
it "returns false" do
|
147
147
|
Timecop.freeze do
|
148
|
-
expect(subject.expires_soon?).to
|
148
|
+
expect(subject.expires_soon?).to be_falsey
|
149
149
|
end
|
150
150
|
end
|
151
151
|
end
|
@@ -306,8 +306,8 @@ describe CFoundry::RestClient do
|
|
306
306
|
|
307
307
|
it "should return an instance of the plain Net:HTTP class" do
|
308
308
|
expect(subject).to be_instance_of(Net::HTTP)
|
309
|
-
expect(subject.use_ssl?).to
|
310
|
-
expect(subject.proxy?).to_not
|
309
|
+
expect(subject.use_ssl?).to be_falsey
|
310
|
+
expect(subject.proxy?).to_not be_truthy
|
311
311
|
end
|
312
312
|
end
|
313
313
|
|
@@ -324,8 +324,8 @@ describe CFoundry::RestClient do
|
|
324
324
|
let(:target_uri) { "https://example.com" }
|
325
325
|
it "should return an instance of the plain Net:HTTP class with use_ssl" do
|
326
326
|
expect(subject).to be_instance_of(Net::HTTP)
|
327
|
-
expect(subject.use_ssl?).to
|
328
|
-
expect(subject.proxy?).to_not
|
327
|
+
expect(subject.use_ssl?).to be_truthy
|
328
|
+
expect(subject.proxy?).to_not be_truthy
|
329
329
|
end
|
330
330
|
end
|
331
331
|
|
@@ -333,7 +333,7 @@ describe CFoundry::RestClient do
|
|
333
333
|
let(:proxy_options) { ["exapmle.com", 8080, nil, nil] }
|
334
334
|
|
335
335
|
it "should return an instance of the proxy class" do
|
336
|
-
expect(subject.proxy?).to
|
336
|
+
expect(subject.proxy?).to be_truthy
|
337
337
|
expect(subject.proxy_address).to eql("exapmle.com")
|
338
338
|
expect(subject.proxy_port).to eql(8080)
|
339
339
|
end
|
@@ -343,7 +343,7 @@ describe CFoundry::RestClient do
|
|
343
343
|
let(:proxy_options) { ["exapmle.com", "8080", "user", "pass"] }
|
344
344
|
|
345
345
|
it "should return an instance of the proxy class" do
|
346
|
-
expect(subject.proxy?).to
|
346
|
+
expect(subject.proxy?).to be_truthy
|
347
347
|
expect(subject.proxy_user).to eql("user")
|
348
348
|
expect(subject.proxy_pass).to eql("pass")
|
349
349
|
end
|
@@ -37,7 +37,7 @@ module CFoundry
|
|
37
37
|
|
38
38
|
context "when the domain is persisted and has no owning organization" do
|
39
39
|
it "returns true" do
|
40
|
-
expect(domain.system?).to
|
40
|
+
expect(domain.system?).to be_truthy
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -45,7 +45,7 @@ module CFoundry
|
|
45
45
|
let(:params) { {:guid => nil} }
|
46
46
|
|
47
47
|
it "returns false" do
|
48
|
-
expect(domain.system?).to
|
48
|
+
expect(domain.system?).to be_falsey
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -54,7 +54,7 @@ module CFoundry
|
|
54
54
|
let(:org) { build(:organization) }
|
55
55
|
|
56
56
|
it "returns false" do
|
57
|
-
expect(domain.system?).to
|
57
|
+
expect(domain.system?).to be_falsey
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
@@ -25,13 +25,18 @@ module CFoundry
|
|
25
25
|
|
26
26
|
describe "create" do
|
27
27
|
it "uses #create!" do
|
28
|
-
expect(model).to receive(:create!)
|
28
|
+
expect(model).to receive(:create!).with({})
|
29
29
|
model.create
|
30
30
|
end
|
31
31
|
|
32
|
+
it "passes options along to create!" do
|
33
|
+
expect(model).to receive(:create!).with(:accepts_incomplete => true)
|
34
|
+
model.create(:accepts_incomplete => true)
|
35
|
+
end
|
36
|
+
|
32
37
|
context "without errors" do
|
33
38
|
it "returns true" do
|
34
|
-
expect(model).to receive(:create!)
|
39
|
+
expect(model).to receive(:create!).with({})
|
35
40
|
expect(model.create).to eq(true)
|
36
41
|
end
|
37
42
|
end
|
@@ -78,13 +83,29 @@ module CFoundry
|
|
78
83
|
model.foo = "bar"
|
79
84
|
end
|
80
85
|
|
81
|
-
|
82
|
-
|
83
|
-
:
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
86
|
+
context "without options" do
|
87
|
+
it "posts to the model's create url with appropriate arguments and empty params hash" do
|
88
|
+
expect(client.base).to receive(:post).with("v2", :odd_endpoint,
|
89
|
+
:content => :json,
|
90
|
+
:accept => :json,
|
91
|
+
:payload => {:foo => "bar"},
|
92
|
+
:params => {}
|
93
|
+
) { {:metadata => {}} }
|
94
|
+
model.create!
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
context "with options" do
|
99
|
+
it "sends create with appropriate arguments and options" do
|
100
|
+
options = {:excellent => "billandted"}
|
101
|
+
expect(client.base).to receive(:post).with("v2", :odd_endpoint,
|
102
|
+
:content => :json,
|
103
|
+
:accept => :json,
|
104
|
+
:payload => {:foo => "bar"},
|
105
|
+
:params => options
|
106
|
+
) { {:metadata => {}} }
|
107
|
+
model.create!(options)
|
108
|
+
end
|
88
109
|
end
|
89
110
|
|
90
111
|
it "clears diff" do
|
@@ -133,14 +154,31 @@ module CFoundry
|
|
133
154
|
}
|
134
155
|
end
|
135
156
|
|
136
|
-
|
137
|
-
model
|
138
|
-
|
139
|
-
:
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
157
|
+
context "without options" do
|
158
|
+
it "updates using the client with the v2 api, its plural model name, object guid, diff object, and empty params hash" do
|
159
|
+
model.foo = "bar"
|
160
|
+
expect(client.base).to receive(:put).with("v2", :test_models, guid,
|
161
|
+
:content => :json,
|
162
|
+
:accept => :json,
|
163
|
+
:payload => {:foo => "bar"},
|
164
|
+
:params => {}
|
165
|
+
)
|
166
|
+
model.update!
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
context "with options" do
|
171
|
+
it "sends update with the object guid, diff object and options" do
|
172
|
+
model.foo = "bar"
|
173
|
+
options = {:excellent => "billandted"}
|
174
|
+
expect(client.base).to receive(:put).with("v2", :test_models, guid,
|
175
|
+
:content => :json,
|
176
|
+
:accept => :json,
|
177
|
+
:payload => {:foo => "bar"},
|
178
|
+
:params => options
|
179
|
+
)
|
180
|
+
model.update!(options)
|
181
|
+
end
|
144
182
|
end
|
145
183
|
|
146
184
|
it "updates the updated_at timestamp" do
|
@@ -379,7 +417,7 @@ module CFoundry
|
|
379
417
|
|
380
418
|
it "has next_page set to true" do
|
381
419
|
results = client.test_models_first_page
|
382
|
-
expect(results[:next_page]).to
|
420
|
+
expect(results[:next_page]).to be_truthy
|
383
421
|
expect(results[:results].length).to eq(1)
|
384
422
|
expect(results[:results].first).to be_a TestModel
|
385
423
|
end
|
@@ -390,7 +428,7 @@ module CFoundry
|
|
390
428
|
|
391
429
|
it "has next_page set to false" do
|
392
430
|
results = client.test_models_first_page
|
393
|
-
expect(results[:next_page]).to
|
431
|
+
expect(results[:next_page]).to be_falsey
|
394
432
|
end
|
395
433
|
end
|
396
434
|
end
|
@@ -42,11 +42,11 @@ EOF
|
|
42
42
|
end
|
43
43
|
|
44
44
|
it "has free/paid indicator attribute" do
|
45
|
-
expect(subject.free).to
|
45
|
+
expect(subject.free).to be_truthy
|
46
46
|
end
|
47
47
|
|
48
48
|
it "has a boolean 'public' attribute" do
|
49
|
-
expect(subject.public).to
|
49
|
+
expect(subject.public).to be_truthy
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -16,7 +16,7 @@ module CFoundry
|
|
16
16
|
it "also removes the user from uaa" do
|
17
17
|
expect_any_instance_of(CFoundry::UAAClient).to receive(:delete_user)
|
18
18
|
|
19
|
-
expect(subject.delete!).to
|
19
|
+
expect(subject.delete!).to be_truthy
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -203,4 +203,4 @@ EOF
|
|
203
203
|
end
|
204
204
|
end
|
205
205
|
end
|
206
|
-
end
|
206
|
+
end
|
@@ -6,12 +6,12 @@ module CFoundry
|
|
6
6
|
|
7
7
|
describe "value_matches?" do
|
8
8
|
it "returns true on nil values" do
|
9
|
-
expect(validator.value_matches?(nil, :something)).to
|
9
|
+
expect(validator.value_matches?(nil, :something)).to be_truthy
|
10
10
|
end
|
11
11
|
|
12
12
|
context "with a type of Class" do
|
13
13
|
it "returns true when value is of type class" do
|
14
|
-
expect(validator.value_matches?(1, Integer)).to
|
14
|
+
expect(validator.value_matches?(1, Integer)).to be_truthy
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -23,50 +23,50 @@ module CFoundry
|
|
23
23
|
|
24
24
|
context "with type of url" do
|
25
25
|
it "requires http or https urls" do
|
26
|
-
expect(validator.value_matches?("http:whatever", :url)).to
|
27
|
-
expect(validator.value_matches?("https:whatever", :url)).to
|
28
|
-
expect(validator.value_matches?("htt_no:whatever", :url)).to
|
26
|
+
expect(validator.value_matches?("http:whatever", :url)).to be_truthy
|
27
|
+
expect(validator.value_matches?("https:whatever", :url)).to be_truthy
|
28
|
+
expect(validator.value_matches?("htt_no:whatever", :url)).to be_falsey
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
context "with type of https_url" do
|
33
33
|
it "requires http or https urls" do
|
34
|
-
expect(validator.value_matches?("https:whatever", :https_url)).to
|
35
|
-
expect(validator.value_matches?("http:whatever", :https_url)).to
|
34
|
+
expect(validator.value_matches?("https:whatever", :https_url)).to be_truthy
|
35
|
+
expect(validator.value_matches?("http:whatever", :https_url)).to be_falsey
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
context "with type boolean" do
|
40
40
|
it "returns true on presence of true or false" do
|
41
|
-
expect(validator.value_matches?(true, :boolean)).to
|
42
|
-
expect(validator.value_matches?(false, :boolean)).to
|
43
|
-
expect(validator.value_matches?("no boolean", :boolean)).to
|
41
|
+
expect(validator.value_matches?(true, :boolean)).to be_truthy
|
42
|
+
expect(validator.value_matches?(false, :boolean)).to be_truthy
|
43
|
+
expect(validator.value_matches?("no boolean", :boolean)).to be_falsey
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
context "with an Array" do
|
48
48
|
it "returns true when all elements are of same type" do
|
49
|
-
expect(validator.value_matches?(["https:whatever"], [String])).to
|
50
|
-
expect(validator.value_matches?(["https:whatever"], [Integer])).to
|
49
|
+
expect(validator.value_matches?(["https:whatever"], [String])).to be_truthy
|
50
|
+
expect(validator.value_matches?(["https:whatever"], [Integer])).to be_falsey
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
context "with a hash" do
|
55
55
|
it "returns true when specified types match" do
|
56
|
-
expect(validator.value_matches?({:name => "thing"}, {:name => String})).to
|
57
|
-
expect(validator.value_matches?({:name => "thing", :unspecified => 1}, {:name => String})).to
|
58
|
-
expect(validator.value_matches?({:name => 1}, {:name => String})).to
|
56
|
+
expect(validator.value_matches?({:name => "thing"}, {:name => String})).to be_truthy
|
57
|
+
expect(validator.value_matches?({:name => "thing", :unspecified => 1}, {:name => String})).to be_truthy
|
58
|
+
expect(validator.value_matches?({:name => 1}, {:name => String})).to be_falsey
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
62
|
it "returns true when type is nil" do
|
63
|
-
expect(validator.value_matches?("some value", nil)).to
|
63
|
+
expect(validator.value_matches?("some value", nil)).to be_truthy
|
64
64
|
end
|
65
65
|
|
66
66
|
context "with a symbol" do
|
67
67
|
it "returns true when the value is of specified type" do
|
68
|
-
expect(validator.value_matches?("some value", :string)).to
|
69
|
-
expect(validator.value_matches?("some value", :integer)).to
|
68
|
+
expect(validator.value_matches?("some value", :string)).to be_truthy
|
69
|
+
expect(validator.value_matches?("some value", :integer)).to be_falsey
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
@@ -91,4 +91,4 @@ module CFoundry
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
94
|
-
end
|
94
|
+
end
|
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.9.
|
4
|
+
version: 4.9.2
|
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: 2017-
|
12
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -192,6 +192,9 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0.9'
|
195
|
+
- - "<"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '11.0'
|
195
198
|
type: :development
|
196
199
|
prerelease: false
|
197
200
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -199,6 +202,9 @@ dependencies:
|
|
199
202
|
- - ">="
|
200
203
|
- !ruby/object:Gem::Version
|
201
204
|
version: '0.9'
|
205
|
+
- - "<"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '11.0'
|
202
208
|
- !ruby/object:Gem::Dependency
|
203
209
|
name: rspec
|
204
210
|
requirement: !ruby/object:Gem::Requirement
|
@@ -577,131 +583,131 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
577
583
|
version: '0'
|
578
584
|
requirements: []
|
579
585
|
rubyforge_project:
|
580
|
-
rubygems_version: 2.
|
586
|
+
rubygems_version: 2.4.5.3
|
581
587
|
signing_key:
|
582
588
|
specification_version: 4
|
583
589
|
summary: High-level library for working with the Cloud Foundry API. This is fork from
|
584
590
|
https://github.com/cloudfoundry-attic/cfoundry
|
585
591
|
test_files:
|
586
592
|
- 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
593
|
- 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
594
|
- spec/cfoundry/upload_helpers_spec.rb
|
608
|
-
- spec/cfoundry/
|
595
|
+
- spec/cfoundry/errors_spec.rb
|
596
|
+
- spec/cfoundry/client_spec.rb
|
597
|
+
- spec/cfoundry/uaaclient_spec.rb
|
598
|
+
- spec/cfoundry/v2/domain_spec.rb
|
599
|
+
- spec/cfoundry/v2/model_spec.rb
|
609
600
|
- spec/cfoundry/v2/organization_spec.rb
|
610
|
-
- spec/cfoundry/v2/
|
601
|
+
- spec/cfoundry/v2/app_usage_event_spec.rb
|
602
|
+
- spec/cfoundry/v2/app_instance_spec.rb
|
611
603
|
- spec/cfoundry/v2/quota_definition_spec.rb
|
612
|
-
- spec/cfoundry/v2/
|
613
|
-
- spec/cfoundry/v2/
|
614
|
-
- spec/cfoundry/v2/
|
615
|
-
- spec/cfoundry/v2/client_spec.rb
|
616
|
-
- spec/cfoundry/v2/route_spec.rb
|
617
|
-
- spec/cfoundry/v2/model_spec.rb
|
604
|
+
- spec/cfoundry/v2/service_plan_spec.rb
|
605
|
+
- spec/cfoundry/v2/model_magic_spec.rb
|
606
|
+
- spec/cfoundry/v2/user_provided_service_instance_spec.rb
|
618
607
|
- spec/cfoundry/v2/app_spec.rb
|
619
608
|
- spec/cfoundry/v2/base_spec.rb
|
620
|
-
- spec/cfoundry/v2/
|
609
|
+
- spec/cfoundry/v2/route_spec.rb
|
610
|
+
- spec/cfoundry/v2/client_spec.rb
|
611
|
+
- spec/cfoundry/v2/user_spec.rb
|
621
612
|
- spec/cfoundry/v2/model_magic/has_summary_spec.rb
|
622
|
-
- spec/cfoundry/v2/model_magic/
|
613
|
+
- spec/cfoundry/v2/model_magic/to_many_spec.rb
|
623
614
|
- spec/cfoundry/v2/model_magic/attribute_spec.rb
|
624
|
-
- spec/cfoundry/v2/
|
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
|
615
|
+
- spec/cfoundry/v2/model_magic/to_one_spec.rb
|
630
616
|
- spec/cfoundry/v2/event_spec.rb
|
631
|
-
- spec/cfoundry/
|
632
|
-
- spec/cfoundry/
|
617
|
+
- spec/cfoundry/v2/managed_service_instance_spec.rb
|
618
|
+
- spec/cfoundry/v2/app_event_spec.rb
|
619
|
+
- spec/cfoundry/v2/space_spec.rb
|
620
|
+
- spec/cfoundry/v2/service_spec.rb
|
621
|
+
- spec/cfoundry/trace_helpers_spec.rb
|
622
|
+
- spec/cfoundry/baseclient_spec.rb
|
623
|
+
- spec/cfoundry/rest_client_spec.rb
|
633
624
|
- spec/cfoundry/auth_token_spec.rb
|
634
625
|
- spec/integration/client_spec.rb
|
635
|
-
- spec/
|
636
|
-
- spec/support/shared_examples/cc_api_stub_request_examples.rb
|
637
|
-
- spec/support/shared_examples/client_login_examples.rb
|
638
|
-
- spec/support/factory_girl.rb
|
639
|
-
- spec/support/test_model_builder.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
|
626
|
+
- spec/fixtures/fake_cc_frameworks.json
|
657
627
|
- spec/fixtures/fake_cc_app_usage_events.json
|
658
|
-
- spec/fixtures/
|
628
|
+
- spec/fixtures/fake_cc_service_bindings.json
|
629
|
+
- spec/fixtures/fake_cc_runtimes.json
|
630
|
+
- spec/fixtures/fake_cc_space_apps.json
|
631
|
+
- spec/fixtures/fake_cc_managed_service_instance.json
|
632
|
+
- spec/fixtures/fake_cc_space_summary.json
|
633
|
+
- spec/fixtures/fake_cc_user_provided_service_instance.json
|
634
|
+
- spec/fixtures/fake_cc_service_instance.json
|
635
|
+
- spec/fixtures/fake_cc_created_space.json
|
636
|
+
- spec/fixtures/fake_cc_empty_search.json
|
659
637
|
- spec/fixtures/fake_cc_created_organization.json
|
660
|
-
- spec/fixtures/
|
661
|
-
- spec/fixtures/
|
662
|
-
- spec/fixtures/
|
638
|
+
- spec/fixtures/fake_cc_organization_spaces.json
|
639
|
+
- spec/fixtures/fake_cc_stats.json
|
640
|
+
- spec/fixtures/fake_cc_user.json
|
663
641
|
- spec/fixtures/fake_cc_organization_users.json
|
664
|
-
- spec/fixtures/fake_cc_created_user.json
|
665
|
-
- spec/fixtures/fake_cc_frameworks.json
|
666
642
|
- spec/fixtures/fake_cc_spaces.json
|
667
|
-
- spec/fixtures/
|
668
|
-
- spec/fixtures/
|
669
|
-
- spec/fixtures/
|
643
|
+
- spec/fixtures/fake_cc_domain.json
|
644
|
+
- spec/fixtures/fake_cc_events.json
|
645
|
+
- spec/fixtures/fake_cc_created_service_instance.json
|
646
|
+
- spec/fixtures/fake_cc_application.json
|
647
|
+
- spec/fixtures/empty_file
|
648
|
+
- spec/fixtures/fake_cc_created_user.json
|
649
|
+
- spec/fixtures/fake_cc_user_organizations.json
|
670
650
|
- spec/fixtures/fake_cc_organization_summary.json
|
671
|
-
- spec/fixtures/fake_cc_empty_search.json
|
672
651
|
- spec/fixtures/fake_cc_organization_domains.json
|
673
|
-
- spec/fixtures/
|
674
|
-
- spec/fixtures/fake_cc_created_service_instance.json
|
652
|
+
- spec/fixtures/fake_cc_route.json
|
675
653
|
- spec/fixtures/fake_cc_organization.json
|
676
|
-
- spec/fixtures/fake_cc_service_binding.json
|
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
654
|
- spec/fixtures/fake_cc_created_route.json
|
683
|
-
- spec/fixtures/
|
684
|
-
- spec/fixtures/fake_cc_service_instance.json
|
685
|
-
- spec/fixtures/fake_cc_organization_search.json
|
686
|
-
- spec/fixtures/fake_cc_services.json
|
655
|
+
- spec/fixtures/fake_cc_service_binding.json
|
687
656
|
- spec/fixtures/fake_cc_service_instances.json
|
657
|
+
- spec/fixtures/fake_cc_services.json
|
658
|
+
- spec/fixtures/fake_cc_created_domain.json
|
688
659
|
- spec/fixtures/fake_cc_domain_spaces.json
|
660
|
+
- spec/fixtures/fake_cc_user_with_managers.json
|
661
|
+
- spec/fixtures/fake_cc_organization_search.json
|
662
|
+
- spec/fixtures/fake_cc_created_application.json
|
663
|
+
- spec/fixtures/fake_cc_space.json
|
689
664
|
- spec/fixtures/fake_cc_application_summary.json
|
690
|
-
- spec/fixtures/
|
691
|
-
- spec/fixtures/
|
692
|
-
- spec/
|
665
|
+
- spec/fixtures/apps/with_dotfiles/xyz
|
666
|
+
- spec/fixtures/apps/with_cfignore/non_ignored_file.txt
|
667
|
+
- spec/fixtures/apps/with_cfignore/ignored_dir/file_in_ignored_dir.txt
|
668
|
+
- spec/fixtures/apps/with_cfignore/ignored_file.txt
|
669
|
+
- spec/fixtures/apps/with_cfignore/non_ignored_dir/file_in_non_ignored_dir.txt
|
670
|
+
- spec/fixtures/apps/with_cfignore/non_ignored_dir/ignored_file.txt
|
671
|
+
- spec/fixtures/apps/with_cfignore/non_ignored_dir/toplevel_ignored.txt
|
672
|
+
- spec/fixtures/apps/with_cfignore/toplevel_ignored.txt
|
673
|
+
- spec/fixtures/apps/with_cfignore/ambiguous_ignored
|
674
|
+
- spec/fixtures/apps/with_external_symlink/foo
|
675
|
+
- spec/fixtures/apps/with_nested_directories/xyz
|
676
|
+
- spec/fixtures/apps/with_nested_directories/foo/bar/baz/fizz
|
677
|
+
- spec/fixtures/apps/with_ignored_external_symlink/foo
|
678
|
+
- spec/factories/organizations_factory.rb
|
679
|
+
- spec/factories/user_provided_service_instances_factory.rb
|
680
|
+
- spec/factories/app_events_factory.rb
|
681
|
+
- spec/factories/domains_factory.rb
|
682
|
+
- spec/factories/routes_factory.rb
|
683
|
+
- spec/factories/service_instances_factory.rb
|
684
|
+
- spec/factories/app_usage_events_factory.rb
|
685
|
+
- spec/factories/service_plans_factory.rb
|
686
|
+
- spec/factories/users_factory.rb
|
687
|
+
- spec/factories/apps_factory.rb
|
688
|
+
- spec/factories/services_factory.rb
|
689
|
+
- spec/factories/clients_factory.rb
|
690
|
+
- spec/factories/events_factory.rb
|
691
|
+
- spec/factories/quota_definitions_factory.rb
|
692
|
+
- spec/factories/spaces_factory.rb
|
693
693
|
- spec/cc_api_stub/frameworks_spec.rb
|
694
|
-
- spec/cc_api_stub/
|
694
|
+
- spec/cc_api_stub/runtimes_spec.rb
|
695
695
|
- spec/cc_api_stub/domains_spec.rb
|
696
|
-
- spec/cc_api_stub/
|
696
|
+
- spec/cc_api_stub/applications_spec.rb
|
697
|
+
- spec/cc_api_stub/spaces_spec.rb
|
698
|
+
- spec/cc_api_stub/events_spec.rb
|
699
|
+
- spec/cc_api_stub/routes_spec.rb
|
697
700
|
- spec/cc_api_stub/service_bindings_spec.rb
|
701
|
+
- spec/cc_api_stub/services_spec.rb
|
698
702
|
- spec/cc_api_stub/users_spec.rb
|
703
|
+
- spec/cc_api_stub/service_instances_spec.rb
|
704
|
+
- spec/cc_api_stub/app_usage_events_spec.rb
|
699
705
|
- spec/cc_api_stub/space_users_spec.rb
|
700
706
|
- 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
707
|
- spec/cc_api_stub/organization_users_spec.rb
|
708
|
+
- spec/cc_api_stub/organizations_spec.rb
|
709
|
+
- spec/support/test_model_builder.rb
|
710
|
+
- spec/support/shared_examples/model_summary_examples.rb
|
711
|
+
- spec/support/shared_examples/cc_api_stub_request_examples.rb
|
712
|
+
- spec/support/shared_examples/client_login_examples.rb
|
713
|
+
- spec/support/factory_girl.rb
|