ops_manager_ui_drivers 1.9.2 → 1.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa0952707c9d36b0116c6613e477495c26cdf237
4
- data.tar.gz: 74c547d63d42c024710f26d619964c4d24a258b2
3
+ metadata.gz: 4f510acbdcf2d2aeb6537e4b179dce9576cfb126
4
+ data.tar.gz: 2c3eef6b7e094a9e9639698a872b1d5c230fb890
5
5
  SHA512:
6
- metadata.gz: 96191f45c29967f89259218fee714f37f04af449ec5010b711f97bc2dd81ac8b21f7c875f4eb13c181360213a3ded16781af6379ea2e02063016f366032081dc
7
- data.tar.gz: f26f55e4d758fb3985901c4ee583f175c840a91f69a23147bf2cde3162d2472755fbe783ec472c3afa3b48b8151fec8a838471b2ad734c07973698e0ff0bc150
6
+ metadata.gz: 3f24e839459606a081a67560fce35b84d0309874d00888fb1d65cc373ae25423040c4a91c66c3b09aa285b5bf7e2d074760a3d778aa1e0e63136a5f78d9c537e
7
+ data.tar.gz: d63ba52c09622e244cb80cf56e222082013f59deeb1ebfc1d85e7fa509f503633a2bc0b4dc33e186e844fdb72c2f1ea6cd3c21793453ca253127db8dedbe0d82
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '1.9.2'
2
+ VERSION = '1.9.3'
3
3
  end
@@ -12,6 +12,7 @@ module OpsManagerUiDrivers
12
12
  browser.fill_in 'user[password_confirmation]', with: password
13
13
  browser.check 'user_eula_accepted'
14
14
  browser.click_on 'create-user-action'
15
+ verify_login(user, password)
15
16
  end
16
17
 
17
18
  def login(user: nil, password: nil)
@@ -19,6 +20,7 @@ module OpsManagerUiDrivers
19
20
  browser.fill_in 'login[user_name]', with: user, wait: 4
20
21
  browser.fill_in 'login[password]', with: password
21
22
  browser.click_on 'login-action'
23
+ verify_login(user, password)
22
24
  end
23
25
 
24
26
  def setup_or_login(user:, password:)
@@ -35,6 +37,11 @@ module OpsManagerUiDrivers
35
37
 
36
38
  attr_reader :browser
37
39
 
40
+ def verify_login(user, password)
41
+ unless browser.first('#main-page-marker')
42
+ fail(RuntimeError, "failed to log in as #{user}/#{password}.")
43
+ end
44
+ end
38
45
  end
39
46
  end
40
47
  end
@@ -1,44 +1,8 @@
1
+ require 'ops_manager_ui_drivers/version14/setup'
2
+
1
3
  module OpsManagerUiDrivers
2
4
  module Version15
3
- class Setup
4
- def initialize(browser: nil)
5
- @browser = browser
6
- end
7
-
8
- def setup_and_login(user:, password:)
9
- browser.visit '/setup'
10
- browser.fill_in 'user[user_name]', with: user, wait: 4
11
- browser.fill_in 'user[password]', with: password
12
- browser.fill_in 'user[password_confirmation]', with: password
13
- browser.check 'user_eula_accepted'
14
- browser.click_on 'create-user-action'
15
- end
16
-
17
- def login(user: nil, password: nil)
18
- browser.visit '/login'
19
- browser.fill_in 'login[user_name]', with: user, wait: 4
20
- browser.fill_in 'login[password]', with: password
21
- browser.click_on 'login-action'
22
-
23
- unless browser.first('#main-page-marker')
24
- fail RuntimeError.new("failed to log in as #{user}/#{password}.")
25
- end
26
- end
27
-
28
- def setup_or_login(user:, password:)
29
- browser.visit '/'
30
-
31
- if browser.current_path == '/setup'
32
- setup_and_login(user: user, password: password)
33
- elsif browser.current_path == '/login'
34
- login(user: user, password: password)
35
- end
36
- end
37
-
38
- private
39
-
40
- attr_reader :browser
41
-
5
+ class Setup < Version14::Setup
42
6
  end
43
7
  end
44
8
  end
@@ -1,10 +1,8 @@
1
+ require 'ops_manager_ui_drivers/version15/setup'
2
+
1
3
  module OpsManagerUiDrivers
2
4
  module Version16
3
- class Setup
4
- def initialize(browser: nil)
5
- @browser = browser
6
- end
7
-
5
+ class Setup < Version15::Setup
8
6
  def setup_and_login(user:, password:)
9
7
  browser.visit '/setup'
10
8
  browser.fill_in 'setup[user_name]', with: user, wait: 4
@@ -12,33 +10,9 @@ module OpsManagerUiDrivers
12
10
  browser.fill_in 'setup[password_confirmation]', with: password
13
11
  browser.check 'setup_eula_accepted'
14
12
  browser.click_on 'create-setup-action'
13
+ verify_login(user, password)
15
14
  end
16
15
 
17
- def login(user: nil, password: nil)
18
- browser.visit '/login'
19
- browser.fill_in 'login[user_name]', with: user, wait: 4
20
- browser.fill_in 'login[password]', with: password
21
- browser.click_on 'login-action'
22
-
23
- unless browser.first('#main-page-marker')
24
- fail RuntimeError.new("failed to log in as #{user}/#{password}.")
25
- end
26
- end
27
-
28
- def setup_or_login(user:, password:)
29
- browser.visit '/'
30
-
31
- if browser.current_path == '/setup'
32
- setup_and_login(user: user, password: password)
33
- elsif browser.current_path == '/login'
34
- login(user: user, password: password)
35
- end
36
- end
37
-
38
- private
39
-
40
- attr_reader :browser
41
-
42
16
  end
43
17
  end
44
18
  end
@@ -1,44 +1,8 @@
1
+ require 'ops_manager_ui_drivers/version16/setup'
2
+
1
3
  module OpsManagerUiDrivers
2
4
  module Version17
3
- class Setup
4
- def initialize(browser: nil)
5
- @browser = browser
6
- end
7
-
8
- def setup_and_login(user:, password:)
9
- browser.visit '/setup'
10
- browser.fill_in 'setup[user_name]', with: user, wait: 4
11
- browser.fill_in 'setup[password]', with: password
12
- browser.fill_in 'setup[password_confirmation]', with: password
13
- browser.check 'setup_eula_accepted'
14
- browser.click_on 'create-setup-action'
15
- end
16
-
17
- def login(user: nil, password: nil)
18
- browser.visit '/login'
19
- browser.fill_in 'login[user_name]', with: user, wait: 4
20
- browser.fill_in 'login[password]', with: password
21
- browser.click_on 'login-action'
22
-
23
- unless browser.first('#main-page-marker')
24
- fail RuntimeError.new("failed to log in as #{user}/#{password}.")
25
- end
26
- end
27
-
28
- def setup_or_login(user:, password:)
29
- browser.visit '/'
30
-
31
- if browser.current_path == '/setup'
32
- setup_and_login(user: user, password: password)
33
- elsif browser.current_path == '/login'
34
- login(user: user, password: password)
35
- end
36
- end
37
-
38
- private
39
-
40
- attr_reader :browser
41
-
5
+ class Setup < Version16::Setup
42
6
  end
43
7
  end
44
8
  end
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.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-02 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  version: '0'
282
282
  requirements: []
283
283
  rubyforge_project:
284
- rubygems_version: 2.4.8
284
+ rubygems_version: 2.5.0
285
285
  signing_key:
286
286
  specification_version: 4
287
287
  summary: Capybara helpers for configuring Pivotal Ops Manager