ops_manager_ui_drivers 2.1.8 → 2.2.0
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: c0447f8ccb765f5530aa82bdbcce2fa47e74ac27
|
4
|
+
data.tar.gz: afd2acc2a52c6dd6c95612fc33a0f564a75a6fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc95ca3d94a145dda2512787ac4eb1ca39bc3960295cf473260c3b3324201b363740b31c8842fcc5021c24ba82885c09bc39acf6eb94443d5144ad7181a7a5f0
|
7
|
+
data.tar.gz: 473ccd837a80e8e44c885749e2935fb4ddba9cbd5939f989f8882fd954ccaf31aea78ea189c9d7b0a94ebc3185143885dc64a491de7e4d9ebe5647b7f53bc2cc
|
@@ -31,6 +31,32 @@ module OpsManagerUiDrivers
|
|
31
31
|
login(user: user, password: password) unless browser.has_selector?('#main-page-marker', wait: 1)
|
32
32
|
end
|
33
33
|
|
34
|
+
def setup_with_saml_provider(decryption_passphrase:, idp_metadata:)
|
35
|
+
browser.visit '/setup'
|
36
|
+
browser.choose 'SAML'
|
37
|
+
browser.fill_in 'setup[decryption_passphrase]', with: decryption_passphrase
|
38
|
+
browser.fill_in 'setup[decryption_passphrase_confirmation]', with: decryption_passphrase
|
39
|
+
browser.fill_in 'setup[idp_metadata]', with: idp_metadata
|
40
|
+
browser.check 'setup_eula_accepted'
|
41
|
+
browser.click_on 'create-setup-action'
|
42
|
+
end
|
43
|
+
|
44
|
+
def login_saml(username:, password:)
|
45
|
+
Timeout.timeout(150) do
|
46
|
+
while browser.current_path.include?('ensure_availability')
|
47
|
+
sleep 1
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
browser.fill_in 'username', with: username
|
52
|
+
browser.fill_in 'password', with: password
|
53
|
+
browser.click_on 'Login'
|
54
|
+
|
55
|
+
unless browser.has_selector?('#main-page-marker', wait: 4)
|
56
|
+
fail(RuntimeError, "failed to log in as #{username}/#{password}.")
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
34
60
|
def login(user:, password:)
|
35
61
|
Timeout.timeout(180) do
|
36
62
|
while browser.current_path.include?('ensure_availability')
|
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.
|
4
|
+
version: 2.2.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: 2016-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
301
|
rubyforge_project:
|
302
|
-
rubygems_version: 2.5.1
|
302
|
+
rubygems_version: 2.4.5.1
|
303
303
|
signing_key:
|
304
304
|
specification_version: 4
|
305
305
|
summary: Capybara helpers for configuring Pivotal Ops Manager
|