ops_manager_ui_drivers 1.23.0 → 1.24.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: 38546c519210384c71a280137edab88f136c8aa9
4
- data.tar.gz: c51c4624d5a8e67772861f0f44df47ff24416dec
3
+ metadata.gz: c82da8e8dbe0ecc003323f6c97848955243779c4
4
+ data.tar.gz: 5864bcf6e5b1ceeb39873ee35b68cf3eac82ae95
5
5
  SHA512:
6
- metadata.gz: 7fbea091f551966af86e35f2b9f813771b5060ea8ad419d76bb98b5d5a2163aa8d3f94cdd3130e588e107c4750bc155fbcc4bc3bd844b00e3b09bef07a21272f
7
- data.tar.gz: f9b1caa6c8d7b44d43ee2850bedf930c369651fde0e2f1fe0aa620916930f6de397fb51dd15a73a34d57836c1c0c06c844d7a4c8322d9f27bf1013345befc246
6
+ metadata.gz: ead3674f3bfa4e09bc94313c2ac649840f2ae3b6df3e226d27979c6e6e1bee76a28d95f887cc3ae9107f811b3f122ce35e2bea0461fac5c9258d79c182e1fb31
7
+ data.tar.gz: 4a62dc2bf38ecdc1de9c9b8fdad82f8fe98e88c1706106e50d1f4d0566602914433edba0d10fbbfaac42937e4ef329ae5138d4d39bd25df634e4c49a6474b068
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '1.23.0'
2
+ VERSION = '1.24.0'
3
3
  end
@@ -8,12 +8,12 @@ module OpsManagerUiDrivers
8
8
  def add_product_to_install(product_name)
9
9
  browser.visit '/'
10
10
  browser.click_on "add-#{product_name}"
11
- browser.find("#show-#{product_name}-configure-action", wait: 10)
11
+ browser.find("#show-#{product_name.dasherize}-configure-action", wait: 10)
12
12
  end
13
13
 
14
14
  def product_added?(product_name)
15
15
  browser.visit '/'
16
- browser.all("#show-#{product_name}-configure-action").any?
16
+ browser.all("#show-#{product_name.dasherize}-configure-action").any?
17
17
  end
18
18
 
19
19
  private
@@ -6,9 +6,10 @@ module OpsManagerUiDrivers
6
6
  @allowed_ignorable_errors = []
7
7
  end
8
8
 
9
- def apply_updates
9
+ def apply_updates(validate: true)
10
10
  open_dashboard
11
11
  browser.click_on 'install-action'
12
+ return unless validate
12
13
  fail 'Install failed verification' if nonignorable_verification_failed?
13
14
  allow_cpu_verification_errors
14
15
  allow_privilege_verification_errors
@@ -34,9 +35,9 @@ module OpsManagerUiDrivers
34
35
 
35
36
  def delete_product(product_name)
36
37
  open_dashboard
37
- browser.click_on "open-delete-#{product_name}-modal"
38
+ browser.click_on "open-delete-#{product_name.dasherize}-modal"
38
39
  wait_for_modal_css_transition_to_complete
39
- browser.click_on "delete-#{product_name}-action"
40
+ browser.click_on "delete-#{product_name.dasherize}-action"
40
41
  end
41
42
 
42
43
  def import_product_from(full_path)
@@ -46,7 +46,7 @@ module OpsManagerUiDrivers
46
46
  def open_page
47
47
  browser.visit '/'
48
48
 
49
- browser.click_on "show-#{dasherized_product_name}-configure-action"
49
+ browser.click_on "show-#{product_name.dasherize}-configure-action"
50
50
  browser.click_on 'show-status-action'
51
51
  end
52
52
 
@@ -55,10 +55,6 @@ module OpsManagerUiDrivers
55
55
  browser.all('.status-loading', count: 0) # blocks until there are no spinners
56
56
  end
57
57
  end
58
-
59
- def dasherized_product_name
60
- product_name.to_s.gsub(/[_]/, '-')
61
- end
62
58
  end
63
59
  end
64
60
  end
@@ -8,12 +8,12 @@ module OpsManagerUiDrivers
8
8
  def add_product_to_install(product_name)
9
9
  browser.visit '/'
10
10
  browser.click_on "add-#{product_name}"
11
- browser.find("#show-#{product_name}-configure-action", wait: 10)
11
+ browser.find("#show-#{product_name.dasherize}-configure-action", wait: 10)
12
12
  end
13
13
 
14
14
  def product_added?(product_name)
15
15
  browser.visit '/'
16
- browser.all("#show-#{product_name}-configure-action").any?
16
+ browser.all("#show-#{product_name.dasherize}-configure-action").any?
17
17
  end
18
18
 
19
19
  private
@@ -46,7 +46,7 @@ module OpsManagerUiDrivers
46
46
  def open_page
47
47
  browser.visit '/'
48
48
 
49
- browser.click_on "show-#{dasherized_product_name}-configure-action"
49
+ browser.click_on "show-#{product_name.dasherize}-configure-action"
50
50
  browser.click_on 'show-status-action'
51
51
  end
52
52
 
@@ -55,10 +55,6 @@ module OpsManagerUiDrivers
55
55
  browser.all('.status-loading', count: 0) # blocks until there are no spinners
56
56
  end
57
57
  end
58
-
59
- def dasherized_product_name
60
- product_name.to_s.gsub(/[_]/, '-')
61
- end
62
58
  end
63
59
  end
64
60
  end
@@ -8,12 +8,12 @@ module OpsManagerUiDrivers
8
8
  def add_product_to_install(product_name)
9
9
  browser.visit '/'
10
10
  browser.click_on "add-#{product_name}"
11
- browser.find("#show-#{product_name}-configure-action", wait: 10)
11
+ browser.find("#show-#{product_name.dasherize}-configure-action", wait: 10)
12
12
  end
13
13
 
14
14
  def product_added?(product_name)
15
15
  browser.visit '/'
16
- browser.all("#show-#{product_name}-configure-action").any?
16
+ browser.all("#show-#{product_name.dasherize}-configure-action").any?
17
17
  end
18
18
 
19
19
  private
@@ -46,7 +46,7 @@ module OpsManagerUiDrivers
46
46
  def open_page
47
47
  browser.visit '/'
48
48
 
49
- browser.click_on "show-#{dasherized_product_name}-configure-action"
49
+ browser.click_on "show-#{product_name.dasherize}-configure-action"
50
50
  browser.click_on 'show-status-action'
51
51
  end
52
52
 
@@ -55,10 +55,6 @@ module OpsManagerUiDrivers
55
55
  browser.all('.status-loading', count: 0) # blocks until there are no spinners
56
56
  end
57
57
  end
58
-
59
- def dasherized_product_name
60
- product_name.to_s.gsub(/[_]/, '-')
61
- end
62
58
  end
63
59
  end
64
60
  end
@@ -8,18 +8,21 @@ module OpsManagerUiDrivers
8
8
  def add_product_to_install(product_name)
9
9
  browser.visit '/'
10
10
  browser.click_on "add-#{product_name}"
11
- browser.find("#show-#{product_name}-configure-action", wait: 10)
11
+ browser.find("#show-#{product_name.dasherize}-configure-action", wait: 10)
12
12
  end
13
13
 
14
14
  def product_added?(product_name)
15
15
  browser.visit '/'
16
- browser.all("#show-#{product_name}-configure-action").any?
16
+ browser.all("#show-#{product_name.dasherize}-configure-action").any?
17
17
  end
18
18
 
19
19
  private
20
20
 
21
21
  attr_reader :browser
22
22
 
23
+ def dasherized_product_name(product_name)
24
+ product_name.to_s.gsub(/[_]/, '-')
25
+ end
23
26
  end
24
27
  end
25
28
  end
@@ -60,7 +60,7 @@ module OpsManagerUiDrivers
60
60
 
61
61
  def open_form
62
62
  browser.visit '/'
63
- browser.click_on "show-#{product_name}-configure-action"
63
+ browser.click_on "show-#{product_name.dasherize}-configure-action"
64
64
  browser.click_on "show-#{product_name}-azs-and-network-assignment-action"
65
65
  end
66
66
 
@@ -7,6 +7,11 @@ module OpsManagerUiDrivers
7
7
  open_dashboard
8
8
  @browser.find('a#delete_unused_products').trigger('click')
9
9
  end
10
+
11
+ def deleted_product?(product_name)
12
+ open_dashboard
13
+ browser.first("#show-#{product_name.dasherize}-information-action").present?
14
+ end
10
15
  end
11
16
  end
12
17
  end
@@ -46,7 +46,7 @@ module OpsManagerUiDrivers
46
46
  def open_page
47
47
  browser.visit '/'
48
48
 
49
- browser.click_on "show-#{dasherized_product_name}-configure-action"
49
+ browser.click_on "show-#{product_name.dasherize}-configure-action"
50
50
  browser.click_on 'show-status-action'
51
51
  end
52
52
 
@@ -55,10 +55,6 @@ module OpsManagerUiDrivers
55
55
  browser.all('.status-loading', count: 0) # blocks until there are no spinners
56
56
  end
57
57
  end
58
-
59
- def dasherized_product_name
60
- product_name.to_s.gsub(/[_]/, '-')
61
- end
62
58
  end
63
59
  end
64
60
  end
@@ -80,7 +80,7 @@ module OpsManagerUiDrivers
80
80
  def availability_zone_guid_for_name(az_name)
81
81
  browser.visit '/'
82
82
  browser.click_on 'show-p-bosh-configure-action'
83
- browser.click_on 'show-director-availability-zone-assignment-action'
83
+ browser.click_on 'show-director-az-and-network-assignment-action'
84
84
 
85
85
  availability_zone_options = find_az_field
86
86
  availability_zone_options.each do |element|
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
+ spec.add_dependency 'activesupport'
21
22
  spec.add_dependency 'capybara'
22
23
  spec.add_dependency 'capybara-webkit'
23
24
  spec.add_dependency 'selenium-webdriver'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.24.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: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: capybara
15
29
  requirement: !ruby/object:Gem::Requirement