ops_manager_ui_drivers 2.4.1 → 2.4.2

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: 5d97b578f5fd1bde218082fdfd11280490f0ffa8
4
- data.tar.gz: dddc02e8341654f373c4b2a4ff0e9efebbd37523
3
+ metadata.gz: 10b185ebd4621120332f0e757c7fdabc2d4eecf1
4
+ data.tar.gz: 2484ab34b3339e6e84691ae2fdcd7945af334263
5
5
  SHA512:
6
- metadata.gz: e63b016b8aff49024aabc7b385fdc7f424ebdf6146ef2816e43a2d1e93f6fbd551b02c646093537f49a76d2ecbd069bd0fec2434e8cc65dd5f5a947b9583a7f1
7
- data.tar.gz: bddd671d39cd67694c1bed37fcaf2c56fc5a27852ea2ee62280eef6c4c10b423959c195625b025bdb99d4c0fca2ef4cb329849a32a3c6bf6664bc6d91e3663f6
6
+ metadata.gz: 76791e3d7cae791fafa8e049377322eb2702b928a3dc64742366b5eaa53b48f0c5585c5061994c66cb674ed54ce67b47af387d3cde84f83b5684235ef30a7983
7
+ data.tar.gz: 20205bfac70266e61904ca62a29347ef5777e7145d2b161722077c2152c206af98870e506861242ff20865314b3b08855781ab812cf4c1cb69326fffa14679d7
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.4.1'
2
+ VERSION = '2.4.2'
3
3
  end
@@ -20,7 +20,7 @@ module OpsManagerUiDrivers
20
20
 
21
21
  def setup_and_login(user:, password:, decryption_passphrase: password)
22
22
  browser.visit '/setup'
23
- browser.click_on 'Local Authentication'
23
+ browser.click_on 'Internal Authentication'
24
24
  browser.fill_in 'setup[admin_user_name]', with: user, wait: 4
25
25
  browser.fill_in 'setup[admin_password]', with: password
26
26
  browser.fill_in 'setup[admin_password_confirmation]', with: password
@@ -0,0 +1,41 @@
1
+ module OpsManagerUiDrivers
2
+ module Version17
3
+
4
+ class UserSettings
5
+ def initialize(browser:)
6
+ @browser = browser
7
+ end
8
+
9
+ def switch_to_internal_authentication(user: , password:)
10
+ browser.visit '/settings/edit'
11
+ browser.fill_in 'change_auth_service[admin_user_name]', with: user
12
+ browser.fill_in 'change_auth_service[admin_password]', with: password
13
+ browser.fill_in 'change_auth_service[admin_password_confirmation]', with: password
14
+ browser.click_on 'update-auth-service-action'
15
+ wait_for_availability!
16
+ end
17
+
18
+ def switch_to_saml_authentication(idp_metadata:)
19
+ browser.visit '/settings/edit'
20
+ browser.fill_in 'change_auth_service[saml_idp_metadata]', with: idp_metadata
21
+ browser.click_on 'update-auth-service-action'
22
+ wait_for_availability!
23
+ end
24
+
25
+ def wait_for_availability!
26
+ Timeout.timeout(150) do
27
+ while browser.current_path.include?('ensure_availability')
28
+ sleep 1
29
+ end
30
+ end
31
+ end
32
+
33
+ private
34
+
35
+ attr_reader :browser
36
+ end
37
+ end
38
+ end
39
+
40
+
41
+
@@ -12,6 +12,10 @@ module OpsManagerUiDrivers
12
12
  Version17::Setup.new(browser: browser)
13
13
  end
14
14
 
15
+ def settings_page
16
+ Version17::UserSettings.new(browser: browser)
17
+ end
18
+
15
19
  def product_dashboard
16
20
  Version17::ProductDashboard.new(browser: browser)
17
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
@@ -262,6 +262,7 @@ files:
262
262
  - lib/ops_manager_ui_drivers/version17/settings.rb
263
263
  - lib/ops_manager_ui_drivers/version17/setup.rb
264
264
  - lib/ops_manager_ui_drivers/version17/state_change_progress.rb
265
+ - lib/ops_manager_ui_drivers/version17/user_settings.rb
265
266
  - lib/ops_manager_ui_drivers/version17/web_ui.rb
266
267
  - lib/ops_manager_ui_drivers/wait_helper.rb
267
268
  - ops_manager_ui_drivers.gemspec
@@ -285,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
286
  version: '0'
286
287
  requirements: []
287
288
  rubyforge_project:
288
- rubygems_version: 2.5.1
289
+ rubygems_version: 2.4.5.1
289
290
  signing_key:
290
291
  specification_version: 4
291
292
  summary: Capybara helpers for configuring Pivotal Ops Manager