ops_manager_ui_drivers 2.8.0 → 2.9.0

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: 2df4665e2794f4fb8d841916d8110f75fd7ae353
4
- data.tar.gz: 2958962cb63548c37e345c916e771aa109b93de1
3
+ metadata.gz: e1a4167df987635c34fc852144036ae61533976c
4
+ data.tar.gz: d36c02806a2e46a1652a0284c7076c0a7e3b3b6d
5
5
  SHA512:
6
- metadata.gz: 99c9e545d05c2893d9e9702c4ef275b7dc91831168c7e666e359f00d09a0dbc9cae45b03484e041d3ce0047cb8ab990d14893562adf0c1e73cd5c3995845c8b3
7
- data.tar.gz: a0666388e203ec24a19ab6502c1a09b81bbc7d4602e83822e3277dd99984cd49be90ff7187cddda6cb89a5fa6b51f062456366ab71efe793a78f9c266dd39529
6
+ metadata.gz: 74e7dbd020e458a3003f999f78456e85419be55ac72b2be2ba56530e05f42b284d9aa963fa98759a655d4f9071e27161377ef8d66cc709134ec1915524402ae6
7
+ data.tar.gz: 60d61a40886ae180f5298346a046f5a531f7f0bddeb0807b11746c381619672743037b49beef1c2a0d4020f844da162cf2d8ad4e59898590cb450c03d7467d97
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.8.0'
2
+ VERSION = '2.9.0'
3
3
  end
@@ -28,6 +28,46 @@ module OpsManagerUiDrivers
28
28
  open_dashboard
29
29
  browser.first("#show-#{product_name}-information-action").present?
30
30
  end
31
+
32
+ def apply_updates(validate: true, errands: {})
33
+ open_dashboard
34
+ check_errands(errands)
35
+
36
+ browser.click_on 'install-action'
37
+ if validate
38
+ fail 'Install failed verification' if nonignorable_verification_failed?
39
+ allow_cpu_verification_errors
40
+ allow_privilege_verification_errors
41
+ allow_icmp_verification_errors #this is only for AWS; consider moving out
42
+
43
+ ignore_allowable_errors
44
+ assert_installation_started
45
+ end
46
+
47
+ ApplyUpdatesResult.new(browser: @browser)
48
+ end
49
+
50
+ def enabled_errands(product_name)
51
+ open_dashboard
52
+ browser.execute_script "$('li.expandable > a.title').click()"
53
+ browser.all("input[type='checkbox'][name^='enabled_errands[#{product_name}-'][checked='checked']").map do |checkbox|
54
+ checkbox.value
55
+ end
56
+ end
57
+
58
+ private
59
+
60
+ def check_errands(errands)
61
+ browser.execute_script "$('li.expandable > a.title').click()"
62
+
63
+ errands.each do |product_name, errand_types|
64
+ errand_types.each do |_errand_type, errand_selections|
65
+ errand_selections.each do |identifier, enabled|
66
+ browser.execute_script "$('input[type=checkbox][name^=\"enabled_errands[#{product_name}-\"][value=\"#{identifier}\"]').prop('checked', #{enabled.to_json})"
67
+ end
68
+ end
69
+ end
70
+ end
31
71
  end
32
72
  end
33
73
  end
@@ -22,9 +22,18 @@ module OpsManagerUiDrivers
22
22
 
23
23
  def enabled_errands
24
24
  open_form
25
- browser.all("input[type='checkbox'][name='errands_collection[enabled_names][]'][checked]").map do |checkbox|
26
- checkbox.value
25
+
26
+ result = []
27
+
28
+ browser.all("input[type='checkbox'][name='post_deploy_errands[enabled_names][]'][checked='checked']").map do |checkbox|
29
+ result << checkbox.value
27
30
  end
31
+
32
+ browser.all("input[type='checkbox'][name='pre_delete_errands[enabled_names][]'][checked='checked']").map do |checkbox|
33
+ result << checkbox.value
34
+ end
35
+
36
+ result
28
37
  end
29
38
 
30
39
  def save_form(validate: true)
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.8.0
4
+ version: 2.9.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-03-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.5.1
289
+ rubygems_version: 2.4.5.1
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Capybara helpers for configuring Pivotal Ops Manager