cf 5.4.5 → 5.4.7.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "5.4.5".freeze
2
+ VERSION = "5.4.7.rc1".freeze
3
3
  end
@@ -35,7 +35,7 @@ if ENV['CF_V2_RUN_INTEGRATION']
35
35
  expect(runner).to say "Domain>"
36
36
  runner.send_return
37
37
 
38
- expect(runner).to say /Binding #{app[0..-2]}\..* to #{app}.*OK/, 1
38
+ expect(runner).to say /Binding #{app[0..-2]}\..* to #{app}.*OK/
39
39
  end
40
40
  end
41
41
  end
@@ -59,11 +59,11 @@ applications:
59
59
  expect(runner).to say /Creating service #{user_provided_name}.*OK/
60
60
  expect(runner).to say /Binding #{user_provided_name} to #{app}... OK/
61
61
 
62
- expect(runner).to say "Uploading #{app}... OK", 180
63
- expect(runner).to say "Preparing to start #{app}... OK", 180
64
- expect(runner).to say "Checking status of app '#{app}'...", 180
62
+ expect(runner).to say "Uploading #{app}... OK"
63
+ expect(runner).to say "Preparing to start #{app}... OK"
64
+ expect(runner).to say "Checking status of app '#{app}'..."
65
65
  expect(runner).to say "1 of 1 instances running"
66
- expect(runner).to say "Push successful! App '#{app}' available at #{subdomain}.cfapps.io", 30
66
+ expect(runner).to say "Push successful! App '#{app}' available at #{subdomain}.cfapps.io"
67
67
  end
68
68
  end
69
69
 
@@ -37,7 +37,7 @@ if ENV["CF_V2_RUN_INTEGRATION"]
37
37
  # end
38
38
 
39
39
  BlueShell::Runner.run("#{cf_bin} delete-org #{new_org_name} --force --recursive") do |runner|
40
- expect(runner).to say "Deleting organization #{new_org_name}... OK", 15
40
+ expect(runner).to say "Deleting organization #{new_org_name}... OK"
41
41
  end
42
42
 
43
43
  BlueShell::Runner.run("#{cf_bin} target -o #{new_org_name}") do |runner|
@@ -111,18 +111,18 @@ if ENV["CF_V2_RUN_INTEGRATION"]
111
111
  expect(runner).to say "Create another service?> n"
112
112
  runner.send_keys "n"
113
113
 
114
- if runner.expect "Bind other services to application?> n", 15
114
+ if runner.expect "Bind other services to application?> n"
115
115
  runner.send_return
116
116
  end
117
117
 
118
- expect(runner).to say "Save configuration?> n", 20
118
+ expect(runner).to say "Save configuration?> n"
119
119
  runner.send_return
120
120
 
121
- expect(runner).to say "Uploading #{app}... OK", 180
122
- expect(runner).to say "Preparing to start #{app}... OK", 180
123
- expect(runner).to say "Checking status of app '#{app}'...", 180
121
+ expect(runner).to say "Uploading #{app}... OK"
122
+ expect(runner).to say "Preparing to start #{app}... OK"
123
+ expect(runner).to say "Checking status of app '#{app}'..."
124
124
  expect(runner).to say "1 of 1 instances running"
125
- expect(runner).to say "Push successful! App '#{app}' available at #{subdomain}.cfapps.io", 30
125
+ expect(runner).to say "Push successful! App '#{app}' available at #{subdomain}.cfapps.io"
126
126
  end
127
127
  end
128
128
 
@@ -138,7 +138,7 @@ if ENV["CF_V2_RUN_INTEGRATION"]
138
138
  end
139
139
 
140
140
  BlueShell::Runner.run("#{cf_bin} unbind-service #{service_name} #{app}") do |runner|
141
- expect(runner).to say "OK", 20
141
+ expect(runner).to say "OK"
142
142
  end
143
143
 
144
144
  BlueShell::Runner.run("#{cf_bin} set-env #{app} DEVELOP_ON_CLOUD_FOUNDRY all_day_erry_day") do |runner|
@@ -73,7 +73,7 @@ if ENV['CF_V2_RUN_INTEGRATION']
73
73
  let(:service_name) { "some-provided-instance-#{Time.now.to_i}" }
74
74
 
75
75
  it "can bind and unbind user-provided services to apps" do
76
- push_app(app_folder, app_name, start_command: "'bundle exec ruby env_test.rb -p $PORT'", timeout: 90)
76
+ push_app(app_folder, app_name, start_command: "'bundle exec ruby env_test.rb -p $PORT'")
77
77
  create_service_instance("user-provided", service_name, credentials: { hostname: "myservice.com"} )
78
78
 
79
79
  BlueShell::Runner.run("#{cf_bin} bind-service") do |runner|
@@ -71,14 +71,14 @@ if ENV['CF_V2_RUN_INTEGRATION']
71
71
  end
72
72
 
73
73
  it "can create an app in a space, then delete it recursively" do
74
- BlueShell::Runner.run("#{cf_bin} create-space #{new_space}") { |runner| runner.wait_for_exit(30) }
75
- BlueShell::Runner.run("#{cf_bin} switch-space #{new_space}") { |runner| runner.wait_for_exit(30) }
74
+ BlueShell::Runner.run("#{cf_bin} create-space #{new_space}") { |runner| runner.wait_for_exit }
75
+ BlueShell::Runner.run("#{cf_bin} switch-space #{new_space}") { |runner| runner.wait_for_exit }
76
76
 
77
77
  push_app("hello-sinatra", app)
78
78
 
79
79
  BlueShell::Runner.run("#{cf_bin} delete-space #{new_space} --force") do |runner|
80
80
  expect(runner).to say("If you want to delete the space along with all dependent objects, rerun the command with the '--recursive' flag.")
81
- runner.wait_for_exit(30)
81
+ runner.wait_for_exit
82
82
  end.should_not be_successful
83
83
 
84
84
  BlueShell::Runner.run("#{cf_bin} spaces") do |runner|
@@ -50,17 +50,17 @@ if ENV['CF_V2_RUN_INTEGRATION']
50
50
 
51
51
  expect(runner).to say(/Switching to space #{space_2}/)
52
52
 
53
- runner.wait_for_exit 15
53
+ runner.wait_for_exit
54
54
  end
55
55
 
56
56
  BlueShell::Runner.run("#{cf_bin} target -s #{space}") do |runner|
57
57
  expect(runner).to say("Switching to space #{space}")
58
- runner.wait_for_exit 15
58
+ runner.wait_for_exit
59
59
  end
60
60
 
61
61
  BlueShell::Runner.run("#{cf_bin} target -s #{space_2}") do |runner|
62
62
  expect(runner).to say("Switching to space #{space_2}")
63
- runner.wait_for_exit 15
63
+ runner.wait_for_exit
64
64
  end
65
65
  end
66
66
  end
@@ -46,6 +46,7 @@ RSpec.configure do |c|
46
46
 
47
47
  c.before(:all) do
48
48
  WebMock.disable_net_connect!(:allow_localhost => true)
49
+ BlueShell.timeout = 90
49
50
  end
50
51
 
51
52
  c.before do
@@ -11,20 +11,20 @@ module FeaturesHelper
11
11
  cmd = "#{cf_bin} login #{username} --password #{password} -o #{organization}"
12
12
  cmd += " -s #{space}"
13
13
  BlueShell::Runner.run(cmd) do |runner|
14
- runner.wait_for_exit 60
14
+ runner.wait_for_exit
15
15
  end
16
16
  end
17
17
 
18
18
  def logout
19
19
  BlueShell::Runner.run("#{cf_bin} logout") do |runner|
20
- runner.wait_for_exit 60
20
+ runner.wait_for_exit
21
21
  end
22
22
  end
23
23
 
24
24
  def set_target
25
25
  target = ENV['CF_V2_TEST_TARGET']
26
26
  BlueShell::Runner.run("#{cf_bin} target #{target}") do |runner|
27
- runner.wait_for_exit 20
27
+ runner.wait_for_exit
28
28
  end
29
29
  end
30
30
 
@@ -61,38 +61,40 @@ module FeaturesHelper
61
61
  push_cmd += " --command #{opts[:start_command]}" if opts[:start_command]
62
62
 
63
63
  Dir.chdir("#{SPEC_ROOT}/assets/#{app_folder}") do
64
- BlueShell::Runner.run(push_cmd) do |runner|
65
- expect(runner).to say "Name>"
66
- runner.send_keys deployed_app_name
64
+ BlueShell.with_timeout 180 do
65
+ BlueShell::Runner.run(push_cmd) do |runner|
66
+ expect(runner).to say "Name>"
67
+ runner.send_keys deployed_app_name
67
68
 
68
- expect(runner).to say "Instances> 1", 15
69
- runner.send_return
70
-
71
- expect(runner).to say "Memory Limit>"
72
- runner.send_keys "128M"
69
+ expect(runner).to say "Instances> 1"
70
+ runner.send_return
73
71
 
74
- expect(runner).to say "Creating #{deployed_app_name}... OK"
72
+ expect(runner).to say "Memory Limit>"
73
+ runner.send_keys "128M"
75
74
 
76
- expect(runner).to say "Subdomain> #{deployed_app_name}"
77
- runner.send_return
75
+ expect(runner).to say "Creating #{deployed_app_name}... OK"
78
76
 
79
- expect(runner).to say "1:"
80
- expect(runner).to say "Domain>"
81
- runner.send_keys "1"
77
+ expect(runner).to say "Subdomain> #{deployed_app_name}"
78
+ runner.send_return
82
79
 
83
- expect(runner).to say /Creating route #{deployed_app_name}\..*\.\.\. OK/
84
- expect(runner).to say /Binding #{deployed_app_name}\..* to #{deployed_app_name}\.\.\. OK/
80
+ expect(runner).to say "1:"
81
+ expect(runner).to say "Domain>"
82
+ runner.send_keys "1"
85
83
 
86
- expect(runner).to say "Create services for application?> n"
87
- runner.send_return
84
+ expect(runner).to say(/Creating route #{deployed_app_name}\..*\.\.\. OK/)
85
+ expect(runner).to say(/Binding #{deployed_app_name}\..* to #{deployed_app_name}\.\.\. OK/)
88
86
 
89
- if runner.expect "Bind other services to application?> n", 15
87
+ expect(runner).to say "Create services for application?> n"
90
88
  runner.send_return
91
- end
92
89
 
93
- expect(runner).to say "Push successful!"
90
+ if runner.expect "Bind other services to application?> n"
91
+ runner.send_return
92
+ end
93
+
94
+ expect(runner).to say "Push successful!"
94
95
 
95
- runner.wait_for_exit opts[:timeout] || 30
96
+ runner.wait_for_exit
97
+ end
96
98
  end
97
99
  end
98
100
  end
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: 5.4.5
5
- prerelease:
4
+ version: 5.4.7.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-12-13 00:00:00.000000000 Z
13
+ date: 2014-01-22 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: 4.7.1.rc1
54
+ version: 4.7.2.rc1
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  requirements:
60
60
  - - ~>
61
61
  - !ruby/object:Gem::Version
62
- version: 4.7.1.rc1
62
+ version: 4.7.2.rc1
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: interact
65
65
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ dependencies:
179
179
  requirements:
180
180
  - - ! '>='
181
181
  - !ruby/object:Gem::Version
182
- version: 0.2.2
182
+ version: 0.3.0
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
@@ -187,7 +187,7 @@ dependencies:
187
187
  requirements:
188
188
  - - ! '>='
189
189
  - !ruby/object:Gem::Version
190
- version: 0.2.2
190
+ version: 0.3.0
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: factory_girl
193
193
  requirement: !ruby/object:Gem::Requirement
@@ -680,9 +680,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
680
680
  required_rubygems_version: !ruby/object:Gem::Requirement
681
681
  none: false
682
682
  requirements:
683
- - - ! '>='
683
+ - - ! '>'
684
684
  - !ruby/object:Gem::Version
685
- version: '0'
685
+ version: 1.3.1
686
686
  requirements: []
687
687
  rubyforge_project: cf
688
688
  rubygems_version: 1.8.23