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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10b185ebd4621120332f0e757c7fdabc2d4eecf1
|
4
|
+
data.tar.gz: 2484ab34b3339e6e84691ae2fdcd7945af334263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76791e3d7cae791fafa8e049377322eb2702b928a3dc64742366b5eaa53b48f0c5585c5061994c66cb674ed54ce67b47af387d3cde84f83b5684235ef30a7983
|
7
|
+
data.tar.gz: 20205bfac70266e61904ca62a29347ef5777e7145d2b161722077c2152c206af98870e506861242ff20865314b3b08855781ab812cf4c1cb69326fffa14679d7
|
@@ -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 '
|
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
|
+
|
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.
|
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
|