ops_manager_ui_drivers 2.6.3 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89ff3f325e322d12572ea0b35347e849b5b48deb
4
- data.tar.gz: 75906e9c6a2604e4ae09372cb8c6e05f1ac2482c
3
+ metadata.gz: 89bfefe4070dcb38708547d1ef9d2afef5c99109
4
+ data.tar.gz: fd7e0d828e653c8acadb8e2df43d19dd09f18e8a
5
5
  SHA512:
6
- metadata.gz: c94deead0c323308b52e6cbd2f92c496c90ce313382eb5bc4a22344b872072b89007ff7d20f8e8e51de0e05502faf846a91f5c426594bdd3ee38b146a5227e9a
7
- data.tar.gz: 1045c6ec7d6f6d6ccc53fe19c47d1a57e55d15d376d1ff67f6e0a39ba8edf51fc0f8bc0c5a7a5cd0e1a6b1e232d6f079ef62ed83514a8d3483f1be274d4a2099
6
+ metadata.gz: 25c1bee1975c134f54370f982e2c66783f8d1d75a89114e69c1f2b659051d51eef2e921800a60900c2c1e37f8bfcbd84464b1c5217510ba78e12ad03a2901d72
7
+ data.tar.gz: 9331e3093061cd4db5dd98b0ffdf21374112f7ef08b3eea066b7c9f2dd4ebdc6b313c318a014d4999a939719799efcae3498523b492760d1c748ae9ce58268b2
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.6.3'
2
+ VERSION = '2.6.4'
3
3
  end
@@ -1,22 +1,25 @@
1
1
  module OpsManagerUiDrivers
2
2
  module Version14
3
3
  class ProductDashboard
4
+
4
5
  def initialize(browser:)
5
- @browser = browser
6
+ @browser = browser
6
7
  @allowed_ignorable_errors = []
7
8
  end
8
9
 
9
10
  def apply_updates(validate: true)
10
11
  open_dashboard
11
12
  browser.click_on 'install-action'
12
- return unless validate
13
- fail 'Install failed verification' if nonignorable_verification_failed?
14
- allow_cpu_verification_errors
15
- allow_privilege_verification_errors
16
- allow_icmp_verification_errors #this is only for AWS; consider moving out
17
-
18
- ignore_allowable_errors
19
- assert_installation_started
13
+ if validate
14
+ fail 'Install failed verification' if nonignorable_verification_failed?
15
+ allow_cpu_verification_errors
16
+ allow_privilege_verification_errors
17
+ allow_icmp_verification_errors #this is only for AWS; consider moving out
18
+
19
+ ignore_allowable_errors
20
+ assert_installation_started
21
+ end
22
+ ApplyUpdatesResult.new(browser: @browser)
20
23
  end
21
24
 
22
25
  def import_installation_file(file_path)
@@ -186,6 +189,37 @@ module OpsManagerUiDrivers
186
189
  def open_dashboard
187
190
  browser.visit '/'
188
191
  end
192
+
193
+ class ApplyUpdatesResult
194
+ include WaitHelper
195
+
196
+ def initialize(browser:)
197
+ @browser = browser
198
+ end
199
+
200
+ def has_ignorable_errors?
201
+ browser.has_button?('Ignore errors and start the install')
202
+ end
203
+
204
+ def has_nonignorable_errors?
205
+ browser.has_text?('Stop and fix errors') && !has_ignorable_errors?
206
+ end
207
+
208
+ def has_install_issues?(retries: 30)
209
+ wait_for_page_to_have_text 'Install Issues', retries: retries
210
+ end
211
+
212
+ def completed_successfully?(retries: 30)
213
+ wait_for_page_to_have_text 'successfully applied', retries: retries
214
+ end
215
+
216
+ def wait_for_page_to_have_text(text, retries:)
217
+ poll_up_to_times(retries) { browser.expect(browser.page.text).to browser.include(text) }
218
+ end
219
+
220
+ private
221
+ attr_reader :browser
222
+ end
189
223
  end
190
224
  end
191
225
  end
@@ -139,6 +139,7 @@ module OpsManagerUiDrivers
139
139
  'security_group' => @test_settings.dig('ops_manager', 'openstack', 'security_group_name'),
140
140
  'key_pair_name' => @test_settings.dig('ops_manager', 'openstack', 'key_pair_name'),
141
141
  'ssh_private_key' => @test_settings.dig('ops_manager', 'openstack', 'ssh_private_key'),
142
+ 'api_ssl_cert' => @test_settings.dig('ops_manager', 'openstack', 'api_ssl_cert'),
142
143
  'region' => @test_settings.dig('ops_manager', 'openstack', 'region'),
143
144
  'disable_dhcp' => @test_settings.dig('ops_manager', 'openstack', 'disable_dhcp'),
144
145
  }
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: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport