cf 4.2.8.rc1 → 4.2.8.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/cf/cli/service/services.rb +1 -1
- data/lib/cf/version.rb +1 -1
- data/spec/cf/cli/service/services_spec.rb +7 -6
- data/spec/features/services_spec.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGFmMTYzNDMzMzMwYTdiODgyNDI3OGNmOThjZjliMmI1MjdiZGU2OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGU3YjQ1NTQxMDc3MzMzMzE3NzljODdiZTQ0MTgzZDg4NmM2YTE3Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmFmNWIzZGU1MmRmNmNjZTFiODVmYjViNjg5YjVmM2EyNGQwNjc3MTFmNjg5
|
10
|
+
MTU0YjFiOTEzZTlkNDU1MmE3YTk4Njg5ZWNlYzU0YjNmZjM1MDAxY2U5YzYx
|
11
|
+
NzI4ZjQzNzYyNWRhYmJkYzJiYmMzYjU0NzdjODZkNGE2YmEyMGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTQzYmExMGQ0MjY0Zjk3ZGY5ZmU2NmUyYzhhMzU2ZjAyNTQzMjE0NDlmMjFk
|
14
|
+
MjAyZTA0YjkzYTQ2YzEzMTMwZjg2MzcyOTY2NDkzZTlhNWFhZTc0MzM1YWJj
|
15
|
+
Mzc3YzdhOTU2MWQ1MzYwZDlmNWNlMmZiZWVjMWJiNjBiMjlmYTA=
|
data/lib/cf/version.rb
CHANGED
@@ -82,6 +82,7 @@ module CF
|
|
82
82
|
context "when one of the services does not have a service plan" do
|
83
83
|
let(:service_instances) { [service1, service2]}
|
84
84
|
let(:service2) { build(:service_instance, :service_plan => nil, :service_bindings => [service_binding]) }
|
85
|
+
|
85
86
|
it 'still produces a table of service' do
|
86
87
|
subject
|
87
88
|
stdout.rewind
|
@@ -96,15 +97,15 @@ module CF
|
|
96
97
|
provider.*?\s+ # provider
|
97
98
|
service_version\s+ # version
|
98
99
|
service-plan-.*?\s+ # plan
|
99
|
-
app-name-\d+\s+
|
100
|
+
app-name-\d+\s+ # bound apps
|
100
101
|
/x
|
101
102
|
|
102
103
|
expect(output).to match /service-instance-.+?\s+ # name
|
103
|
-
|
104
|
-
none\s+
|
105
|
-
none\s+
|
106
|
-
none\s+
|
107
|
-
app-name-\d+\s+
|
104
|
+
user-provided\s+ # service
|
105
|
+
none\s+ # provider
|
106
|
+
none\s+ # version
|
107
|
+
none\s+ # plan
|
108
|
+
app-name-\d+\s+ # bound apps
|
108
109
|
/x
|
109
110
|
end
|
110
111
|
end
|
@@ -8,11 +8,10 @@ if ENV['CF_V2_RUN_INTEGRATION']
|
|
8
8
|
|
9
9
|
describe "listing services" do
|
10
10
|
it "shows all service instances in the space" do
|
11
|
-
pending "Need a test environment to run this against. A1 should soon contain the necessary changes - DS & RT"
|
12
11
|
service1 = "some-provided-instance-#{Time.now.to_i}"
|
13
12
|
service2 = "cf-managed-instance-#{Time.now.to_i}"
|
14
13
|
create_service_instance("user-provided", service1, credentials: { hostname: "myservice.com"} )
|
15
|
-
create_service_instance("
|
14
|
+
create_service_instance("dummy-dev", service2, plan: "small")
|
16
15
|
|
17
16
|
BlueShell::Runner.run("#{cf_bin} services") do |runner|
|
18
17
|
expect(runner).to say /#{service1}\s+none\s+none\s+none\s+none\s+.*/
|
@@ -40,7 +39,6 @@ if ENV['CF_V2_RUN_INTEGRATION']
|
|
40
39
|
let(:service_name) { "my-private-db-#{Random.rand(1000) + 1000}"}
|
41
40
|
|
42
41
|
it "can create a service instance" do
|
43
|
-
pending "Need a test environment to run this against. A1 should soon contain the necessary changes - DS & RT"
|
44
42
|
BlueShell::Runner.run("#{cf_bin} create-service") do |runner|
|
45
43
|
expect(runner).to say "What kind?"
|
46
44
|
runner.send_keys "user-provided"
|
@@ -64,12 +62,11 @@ Key"
|
|
64
62
|
|
65
63
|
describe "binding to a service" do
|
66
64
|
let(:app_folder) { "env" }
|
67
|
-
let(:app_name) { "services_env_test_app" }
|
65
|
+
let(:app_name) { "services_env_test_app-#{Time.now.to_i}" }
|
68
66
|
|
69
67
|
let(:service_name) { "some-provided-instance-#{Time.now.to_i}" }
|
70
68
|
|
71
|
-
|
72
|
-
pending "Unbind needs to work -- RT + WR"
|
69
|
+
it "can bind and unbind user-provided services to apps" do
|
73
70
|
push_app(app_folder, app_name, start_command: "'bundle exec ruby env_test.rb -p $PORT'", timeout: 90)
|
74
71
|
create_service_instance("user-provided", service_name, credentials: { hostname: "myservice.com"} )
|
75
72
|
|
@@ -87,7 +84,10 @@ Key"
|
|
87
84
|
expect(runner).to say "Which application?"
|
88
85
|
runner.send_keys app_name
|
89
86
|
|
87
|
+
expect(runner).to say "Which service?>"
|
88
|
+
runner.send_keys service_name
|
90
89
|
|
90
|
+
expect(runner).to say "Unbinding #{service_name} from #{app_name}... OK"
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.8.
|
4
|
+
version: 4.2.8.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloud Foundry Team
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|