cf 4.1.3 → 4.1.4.rc1
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.
- data/lib/cf/version.rb +1 -1
- metadata +8 -13
- data/spec/features/push_flow_spec.rb +0 -116
data/lib/cf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 4.1.4.rc1
|
|
5
|
+
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Cloud Foundry Team
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-07-
|
|
13
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: addressable
|
|
@@ -51,7 +51,7 @@ dependencies:
|
|
|
51
51
|
requirements:
|
|
52
52
|
- - ! '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.3.
|
|
54
|
+
version: 2.3.6.rc1
|
|
55
55
|
- - <
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: '3.0'
|
|
@@ -62,7 +62,7 @@ dependencies:
|
|
|
62
62
|
requirements:
|
|
63
63
|
- - ! '>='
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 2.3.
|
|
65
|
+
version: 2.3.6.rc1
|
|
66
66
|
- - <
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '3.0'
|
|
@@ -581,7 +581,6 @@ files:
|
|
|
581
581
|
- spec/features/create_user_spec.rb
|
|
582
582
|
- spec/features/login_spec.rb
|
|
583
583
|
- spec/features/org_spec.rb
|
|
584
|
-
- spec/features/push_flow_spec.rb
|
|
585
584
|
- spec/features/services_spec.rb
|
|
586
585
|
- spec/features/space_spec.rb
|
|
587
586
|
- spec/features/switching_targets_spec.rb
|
|
@@ -618,16 +617,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
618
617
|
version: '0'
|
|
619
618
|
segments:
|
|
620
619
|
- 0
|
|
621
|
-
hash: -
|
|
620
|
+
hash: -1156574643444996630
|
|
622
621
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
623
622
|
none: false
|
|
624
623
|
requirements:
|
|
625
|
-
- - ! '
|
|
624
|
+
- - ! '>'
|
|
626
625
|
- !ruby/object:Gem::Version
|
|
627
|
-
version:
|
|
628
|
-
segments:
|
|
629
|
-
- 0
|
|
630
|
-
hash: -1727428118927324347
|
|
626
|
+
version: 1.3.1
|
|
631
627
|
requirements: []
|
|
632
628
|
rubyforge_project: cf
|
|
633
629
|
rubygems_version: 1.8.25
|
|
@@ -763,7 +759,6 @@ test_files:
|
|
|
763
759
|
- spec/features/create_user_spec.rb
|
|
764
760
|
- spec/features/login_spec.rb
|
|
765
761
|
- spec/features/org_spec.rb
|
|
766
|
-
- spec/features/push_flow_spec.rb
|
|
767
762
|
- spec/features/services_spec.rb
|
|
768
763
|
- spec/features/space_spec.rb
|
|
769
764
|
- spec/features/switching_targets_spec.rb
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
require "spec_helper"
|
|
2
|
-
require "webmock/rspec"
|
|
3
|
-
|
|
4
|
-
if ENV['CF_V2_RUN_INTEGRATION']
|
|
5
|
-
describe 'A new user tries to use CF against v2', :ruby19 => true do
|
|
6
|
-
include CF::Interactive
|
|
7
|
-
|
|
8
|
-
let(:run_id) { TRAVIS_BUILD_ID.to_s + Time.new.to_f.to_s.gsub(".", "_") }
|
|
9
|
-
let(:app) { "hello-sinatra-#{run_id}" }
|
|
10
|
-
let(:service_name) { "dummy-service-#{run_id}" }
|
|
11
|
-
|
|
12
|
-
before do
|
|
13
|
-
FileUtils.rm_rf File.expand_path(CF::CONFIG_DIR)
|
|
14
|
-
WebMock.allow_net_connect!
|
|
15
|
-
Interact::Progress::Dots.start!
|
|
16
|
-
login
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
after do
|
|
20
|
-
`#{cf_bin} unbind-service -f --no-script #{service_name} #{app}`
|
|
21
|
-
`#{cf_bin} delete-service -f --no-script #{service_name}`
|
|
22
|
-
`#{cf_bin} delete #{app} -f --routes --no-script`
|
|
23
|
-
logout
|
|
24
|
-
Interact::Progress::Dots.stop!
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
it 'pushes a simple sinatra app using defaults as much as possible' do
|
|
28
|
-
BlueShell::Runner.run("#{cf_bin} app #{app}") do |runner|
|
|
29
|
-
expect(runner).to say "Unknown app '#{app}'."
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
Dir.chdir("#{SPEC_ROOT}/assets/hello-sinatra") do
|
|
33
|
-
BlueShell::Runner.run("#{cf_bin} push") do |runner|
|
|
34
|
-
expect(runner).to say "Name>"
|
|
35
|
-
runner.send_keys app
|
|
36
|
-
|
|
37
|
-
expect(runner).to say "Instances> 1"
|
|
38
|
-
runner.send_return
|
|
39
|
-
|
|
40
|
-
expect(runner).to_not say "Custom startup command> "
|
|
41
|
-
|
|
42
|
-
expect(runner).to say "Memory Limit>"
|
|
43
|
-
runner.send_keys "128M"
|
|
44
|
-
|
|
45
|
-
expect(runner).to say "Creating #{app}... OK"
|
|
46
|
-
|
|
47
|
-
expect(runner).to say "Subdomain> #{app}"
|
|
48
|
-
runner.send_return
|
|
49
|
-
|
|
50
|
-
expect(runner).to say "1:"
|
|
51
|
-
expect(runner).to say "Domain>"
|
|
52
|
-
runner.send_keys "1"
|
|
53
|
-
|
|
54
|
-
expect(runner).to say(/Creating route #{app}\..*\.\.\. OK/)
|
|
55
|
-
expect(runner).to say(/Binding #{app}\..* to #{app}\.\.\. OK/)
|
|
56
|
-
|
|
57
|
-
expect(runner).to say "Create services for application?> n"
|
|
58
|
-
runner.send_keys "y"
|
|
59
|
-
|
|
60
|
-
# create a service here
|
|
61
|
-
expect(runner).to say "What kind?>"
|
|
62
|
-
runner.send_keys "dummy n/a"
|
|
63
|
-
|
|
64
|
-
expect(runner).to say "Name?>"
|
|
65
|
-
runner.send_keys service_name
|
|
66
|
-
|
|
67
|
-
expect(runner).to say "Which plan?>"
|
|
68
|
-
runner.send_keys "small"
|
|
69
|
-
|
|
70
|
-
expect(runner).to say /Creating service #{service_name}.*OK/
|
|
71
|
-
expect(runner).to say /Binding .+ to .+ OK/
|
|
72
|
-
|
|
73
|
-
expect(runner).to say "Create another service?> n"
|
|
74
|
-
runner.send_return
|
|
75
|
-
|
|
76
|
-
# skip this
|
|
77
|
-
if runner.expect "Bind other services to application?> n", 15
|
|
78
|
-
runner.send_return
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
expect(runner).to say "Save configuration?> n", 20
|
|
82
|
-
runner.send_return
|
|
83
|
-
|
|
84
|
-
expect(runner).to say "Uploading #{app}... OK", 180
|
|
85
|
-
expect(runner).to say "Starting #{app}... OK", 180
|
|
86
|
-
expect(runner).to say "Checking #{app}...", 180
|
|
87
|
-
expect(runner).to say "1/1 instances"
|
|
88
|
-
expect(runner).to say "OK", 30
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
BlueShell::Runner.run("#{cf_bin} services") do |runner|
|
|
93
|
-
expect(runner).to say /name\s+service\s+provider\s+version\s+plan\s+bound apps/
|
|
94
|
-
expect(runner).to say /dummy-service-.+?\s+ # name
|
|
95
|
-
dummy\s+ # service
|
|
96
|
-
dummy\s+ # provider
|
|
97
|
-
n\/a\s+ # version
|
|
98
|
-
small\s+ # plan
|
|
99
|
-
#{app} # bound apps
|
|
100
|
-
/x
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
BlueShell::Runner.run("#{cf_bin} unbind-service #{service_name} #{app}") do |runner|
|
|
104
|
-
expect(runner).to say "OK", 20
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
BlueShell::Runner.run("#{cf_bin} delete #{app}") do |runner|
|
|
108
|
-
expect(runner).to say "Really delete #{app}?>"
|
|
109
|
-
runner.send_keys "y"
|
|
110
|
-
expect(runner).to say "Deleting #{app}... OK"
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
else
|
|
115
|
-
$stderr.puts 'Skipping v2 integration specs; please provide necessary environment variables'
|
|
116
|
-
end
|