ops_manager_ui_drivers 1.8.3 → 1.9.0
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 +4 -4
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version14/ops_manager_director.rb +1 -1
- data/lib/ops_manager_ui_drivers/version14/product_configuration.rb +1 -1
- data/lib/ops_manager_ui_drivers/version14/state_change_progress.rb +2 -0
- data/lib/ops_manager_ui_drivers/version15/ops_manager_director.rb +2 -2
- data/lib/ops_manager_ui_drivers/version15/product_configuration.rb +1 -1
- data/lib/ops_manager_ui_drivers/version15/product_dashboard.rb +1 -1
- data/lib/ops_manager_ui_drivers/version15/state_change_progress.rb +2 -0
- data/lib/ops_manager_ui_drivers/version16/ops_manager_director.rb +2 -2
- data/lib/ops_manager_ui_drivers/version16/product_configuration.rb +1 -1
- data/lib/ops_manager_ui_drivers/version16/product_dashboard.rb +1 -1
- data/lib/ops_manager_ui_drivers/version16/product_form.rb +1 -1
- data/lib/ops_manager_ui_drivers/version16/state_change_progress.rb +2 -0
- data/lib/ops_manager_ui_drivers/version17/ops_manager_director.rb +2 -2
- data/lib/ops_manager_ui_drivers/version17/product_configuration.rb +1 -1
- data/lib/ops_manager_ui_drivers/version17/product_dashboard.rb +1 -1
- data/lib/ops_manager_ui_drivers/version17/state_change_progress.rb +2 -0
- data/lib/ops_manager_ui_drivers/wait_helper.rb +30 -28
- data/ops_manager_ui_drivers.gemspec +2 -2
- metadata +11 -12
- data/.rubocop.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1e809044fafeafe95fc652e761f6fabcad5b2b
|
4
|
+
data.tar.gz: c60b9e9e4a63b0bcff76301eb240a251f018768f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4abb047f50738ce8c47a0bd8b6c24856c56ed10963b302754b01b5f35c11ca198fd79667579a465cc4878a443ef3a997a25a98cf8eaba79e29b50ec614431f2
|
7
|
+
data.tar.gz: 431b28472731026e52258a346406e8b3b6898332c5f688971410ea51c0f3e3c48c610b7b9c7c403f3df1fa2479707218e9e8eb29a6251b6d0086c6be799dd32d
|
@@ -174,7 +174,7 @@ module OpsManagerUiDrivers
|
|
174
174
|
browser.select deployment_network
|
175
175
|
end
|
176
176
|
browser.click_on 'Save'
|
177
|
-
browser.
|
177
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully assigned infrastructure network') }
|
178
178
|
end
|
179
179
|
|
180
180
|
def assign_network(deployment_network:)
|
@@ -12,7 +12,7 @@ module OpsManagerUiDrivers
|
|
12
12
|
visit_product_page
|
13
13
|
browser.click_on "show-#{product_name}-stemcell-assignment-action"
|
14
14
|
browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
|
15
|
-
browser.
|
15
|
+
browser.poll_up_to_times(20) {
|
16
16
|
browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
|
17
17
|
}
|
18
18
|
end
|
@@ -146,7 +146,7 @@ module OpsManagerUiDrivers
|
|
146
146
|
browser.select deployment_network
|
147
147
|
end
|
148
148
|
browser.click_on 'Save'
|
149
|
-
browser.
|
149
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully assigned infrastructure network') }
|
150
150
|
end
|
151
151
|
|
152
152
|
def assign_network(deployment_network:)
|
@@ -164,7 +164,7 @@ module OpsManagerUiDrivers
|
|
164
164
|
browser.choose('Use default BOSH password')
|
165
165
|
end
|
166
166
|
browser.click_on 'Save'
|
167
|
-
browser.
|
167
|
+
browser.poll_up_to_times(20) { browser.assert_text('Settings updated') }
|
168
168
|
end
|
169
169
|
|
170
170
|
private
|
@@ -12,7 +12,7 @@ module OpsManagerUiDrivers
|
|
12
12
|
visit_product_page
|
13
13
|
browser.click_on "show-#{product_name}-stemcell-assignment-action"
|
14
14
|
browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
|
15
|
-
browser.
|
15
|
+
browser.poll_up_to_times(20) {
|
16
16
|
browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
|
17
17
|
}
|
18
18
|
end
|
@@ -25,7 +25,7 @@ module OpsManagerUiDrivers
|
|
25
25
|
browser.click_on 'close-warning'
|
26
26
|
browser.attach_file 'import[file]', file_path
|
27
27
|
browser.click_on 'import-settings'
|
28
|
-
browser.
|
28
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully imported installation.') }
|
29
29
|
end
|
30
30
|
|
31
31
|
def upgrade_microbosh
|
@@ -146,7 +146,7 @@ module OpsManagerUiDrivers
|
|
146
146
|
browser.select deployment_network
|
147
147
|
end
|
148
148
|
browser.click_on 'Save'
|
149
|
-
browser.
|
149
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully assigned infrastructure network') }
|
150
150
|
end
|
151
151
|
|
152
152
|
def assign_network(deployment_network:)
|
@@ -164,7 +164,7 @@ module OpsManagerUiDrivers
|
|
164
164
|
browser.choose('Use default BOSH password')
|
165
165
|
end
|
166
166
|
browser.click_on 'Save'
|
167
|
-
browser.
|
167
|
+
browser.poll_up_to_times(20) { browser.assert_text('Settings updated') }
|
168
168
|
end
|
169
169
|
|
170
170
|
private
|
@@ -12,7 +12,7 @@ module OpsManagerUiDrivers
|
|
12
12
|
visit_product_page
|
13
13
|
browser.click_on "show-#{product_name}-stemcell-assignment-action"
|
14
14
|
browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
|
15
|
-
browser.
|
15
|
+
browser.poll_up_to_times(20) {
|
16
16
|
browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
|
17
17
|
}
|
18
18
|
end
|
@@ -25,7 +25,7 @@ module OpsManagerUiDrivers
|
|
25
25
|
browser.click_on 'close-warning'
|
26
26
|
browser.attach_file 'import[file]', file_path
|
27
27
|
browser.click_on 'import-settings'
|
28
|
-
browser.
|
28
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully imported installation.') }
|
29
29
|
end
|
30
30
|
|
31
31
|
def delete_product(product_name)
|
@@ -16,7 +16,7 @@ module OpsManagerUiDrivers
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def generate_self_signed_cert(wildcard_domain)
|
19
|
-
browser.click_on 'Generate RSA Certificate'
|
19
|
+
browser.click_on 'Generate Self-Signed RSA Certificate'
|
20
20
|
browser.within '#rsa-certificate-form' do
|
21
21
|
browser.fill_in 'rsa_certificate[domains]', with: wildcard_domain
|
22
22
|
browser.click_on 'save-rsa-certificate-action'
|
@@ -146,7 +146,7 @@ module OpsManagerUiDrivers
|
|
146
146
|
browser.select deployment_network
|
147
147
|
end
|
148
148
|
browser.click_on 'Save'
|
149
|
-
browser.
|
149
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully assigned infrastructure network') }
|
150
150
|
end
|
151
151
|
|
152
152
|
def assign_network(deployment_network:)
|
@@ -164,7 +164,7 @@ module OpsManagerUiDrivers
|
|
164
164
|
browser.choose('Use default BOSH password')
|
165
165
|
end
|
166
166
|
browser.click_on 'Save'
|
167
|
-
browser.
|
167
|
+
browser.poll_up_to_times(20) { browser.assert_text('Settings updated') }
|
168
168
|
end
|
169
169
|
|
170
170
|
private
|
@@ -12,7 +12,7 @@ module OpsManagerUiDrivers
|
|
12
12
|
visit_product_page
|
13
13
|
browser.click_on "show-#{product_name}-stemcell-assignment-action"
|
14
14
|
browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
|
15
|
-
browser.
|
15
|
+
browser.poll_up_to_times(20) {
|
16
16
|
browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
|
17
17
|
}
|
18
18
|
end
|
@@ -25,7 +25,7 @@ module OpsManagerUiDrivers
|
|
25
25
|
browser.click_on 'close-warning'
|
26
26
|
browser.attach_file 'import[file]', file_path
|
27
27
|
browser.click_on 'import-settings'
|
28
|
-
browser.
|
28
|
+
browser.poll_up_to_times(20) { browser.assert_text('Successfully imported installation.') }
|
29
29
|
end
|
30
30
|
|
31
31
|
def delete_product(product_name)
|
@@ -1,56 +1,58 @@
|
|
1
1
|
require 'time'
|
2
|
-
require 'benchmark'
|
3
2
|
|
4
3
|
module OpsManagerUiDrivers
|
5
4
|
module WaitHelper
|
6
|
-
SLEEP_INTERVAL =
|
5
|
+
SLEEP_INTERVAL = 0.5
|
7
6
|
|
8
7
|
EarlyFailException = Class.new(Exception)
|
9
8
|
|
10
|
-
def wait(retries_left=20, interval=0.5, &blk)
|
11
|
-
blk.call
|
12
|
-
rescue EarlyFailException
|
13
|
-
raise
|
14
|
-
rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
|
15
|
-
Logger.debug "------- retries_left=#{retries_left}"
|
16
|
-
retries_left -= 1
|
17
|
-
if retries_left > 0
|
18
|
-
sleep(interval)
|
19
|
-
retry
|
20
|
-
else
|
21
|
-
Logger.debug "------- propagate error=#{e}"
|
22
|
-
raise
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
9
|
def fail_early(msg)
|
27
10
|
fail(EarlyFailException.new(msg))
|
28
11
|
end
|
29
12
|
|
30
13
|
def poll_up_to_mins(minutes, &blk)
|
31
|
-
|
32
|
-
|
33
|
-
|
14
|
+
title = "Polling for #{minutes} mins"
|
15
|
+
|
16
|
+
Logger.debug "--- BEGIN #{title}"
|
17
|
+
retry_until(minutes_to_time(minutes), &blk)
|
18
|
+
ensure
|
19
|
+
Logger.debug "--- END #{title}"
|
34
20
|
end
|
35
21
|
|
36
|
-
|
22
|
+
def poll_up_to_times(times, &blk)
|
23
|
+
title = "Polling for #{times} times"
|
37
24
|
|
38
|
-
def wait_debug(title, &blk)
|
39
25
|
Logger.debug "--- BEGIN #{title}"
|
40
|
-
|
41
|
-
x.report { blk.call }
|
42
|
-
end
|
26
|
+
retry_times(times, &blk)
|
43
27
|
ensure
|
44
28
|
Logger.debug "--- END #{title}"
|
45
29
|
end
|
46
30
|
|
47
|
-
|
31
|
+
private
|
32
|
+
|
33
|
+
def retry_times(retries, &blk)
|
34
|
+
blk.call
|
35
|
+
rescue EarlyFailException
|
36
|
+
raise
|
37
|
+
rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
|
38
|
+
retries -= 1
|
39
|
+
Logger.debug "------- retries_left=#{retries}"
|
40
|
+
if retries > 0
|
41
|
+
sleep(SLEEP_INTERVAL)
|
42
|
+
retry
|
43
|
+
else
|
44
|
+
Logger.debug "------- propagate error=#{e}"
|
45
|
+
raise
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def retry_until(end_time, &blk)
|
48
50
|
blk.call
|
49
51
|
rescue EarlyFailException
|
50
52
|
raise
|
51
53
|
rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
|
52
54
|
seconds_left = (end_time - Time.now).round
|
53
|
-
Logger.debug "-------
|
55
|
+
Logger.debug "------- seconds_left=#{seconds_left}"
|
54
56
|
if seconds_left > SLEEP_INTERVAL
|
55
57
|
sleep(SLEEP_INTERVAL)
|
56
58
|
retry
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency 'capybara-webkit'
|
23
23
|
spec.add_dependency 'selenium-webdriver'
|
24
24
|
|
25
|
-
spec.add_development_dependency 'bundler'
|
25
|
+
spec.add_development_dependency 'bundler'
|
26
26
|
spec.add_development_dependency 'codeclimate-test-reporter'
|
27
27
|
spec.add_development_dependency 'pry'
|
28
|
-
spec.add_development_dependency 'rake'
|
28
|
+
spec.add_development_dependency 'rake'
|
29
29
|
spec.add_development_dependency 'rubocop'
|
30
30
|
spec.add_development_dependency 'rspec'
|
31
31
|
spec.add_development_dependency 'recursive-open-struct'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops_manager_ui_drivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: codeclimate-test-reporter
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +159,6 @@ extra_rdoc_files: []
|
|
159
159
|
files:
|
160
160
|
- ".gitignore"
|
161
161
|
- ".rspec"
|
162
|
-
- ".rubocop.yml"
|
163
162
|
- ".travis.yml"
|
164
163
|
- Gemfile
|
165
164
|
- LICENSE
|
@@ -282,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
281
|
version: '0'
|
283
282
|
requirements: []
|
284
283
|
rubyforge_project:
|
285
|
-
rubygems_version: 2.4.
|
284
|
+
rubygems_version: 2.4.8
|
286
285
|
signing_key:
|
287
286
|
specification_version: 4
|
288
287
|
summary: Capybara helpers for configuring Pivotal Ops Manager
|
data/.rubocop.yml
DELETED