ops_manager_ui_drivers 0.14.0 → 0.14.1

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: 080f9d370a42fcef12f7b8ffaff0e020c8864ccf
4
- data.tar.gz: 9098e4f44d9776474fafdd74a8a69f03a1f2fd9c
3
+ metadata.gz: 31df948aa369c9d3df3c2fc08e4d7c5b2a7f28a7
4
+ data.tar.gz: dc617daa3a97e4f631fe142350c10308aefc241b
5
5
  SHA512:
6
- metadata.gz: 0f2afa77f68650997c77da3f498c172cef972eba46b54834f54e6c9320bc5543390f1521ba4900ea5e6719da220bde96827e6d648db5635a9a830f32018d3b6f
7
- data.tar.gz: 43d0022256d0fa0c2c220f708da6b4c79c00512587d5731b3a6d42deb275340e1796b9865b6a531e2e55670595932d07dca063dff6f235afe72f22e23eca67fe
6
+ metadata.gz: bfa2fabd275f2a861d4c6279469eb4c01eb7e9601bdf79cc9794f4555116b2758edba1f2086556e61218676f1f38cf050c132f62bbe1aa39bd471c5ea0794a0d
7
+ data.tar.gz: 9e1796812536fc8955eef88f6de6cfdf1c297a5aa5d6a8a8c3666e2506aaaaff0144bc26917b4ccd21d55c07bba09f2dbf5609ca71ea1bb4eb8b704b3a546f7c
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '0.14.0'
2
+ VERSION = '0.14.1'
3
3
  end
@@ -1,5 +1,3 @@
1
- require 'ops_manager_ui_drivers/version15/settings'
2
-
3
1
  module OpsManagerUiDrivers
4
2
  module Version15
5
3
  class OpsManagerDirector
@@ -8,6 +8,7 @@ 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")
11
12
  end
12
13
 
13
14
  def product_added?(product_name)
@@ -163,7 +163,7 @@ module OpsManagerUiDrivers
163
163
  end
164
164
 
165
165
  def configure_vm_passwords(use_generated_passwords: true)
166
- browser.click_on 'VM Passwords'
166
+ browser.click_on 'Security'
167
167
  if use_generated_passwords
168
168
  browser.choose('Generate passwords')
169
169
  else
@@ -51,6 +51,11 @@ module OpsManagerUiDrivers
51
51
  browser.all("li.#{product_name} input#component_version[value='#{product_version}']", {visible: false}).any?
52
52
  end
53
53
 
54
+ def product_complete?(product_name)
55
+ open_dashboard
56
+ browser.all("a#show-#{product_name}-configure-action[data-progress='100']").any?
57
+ end
58
+
54
59
  def upgrade_product(product_name)
55
60
  open_dashboard
56
61
  browser.find(".product.#{product_name} p").trigger(:mouseover)
@@ -100,6 +105,27 @@ module OpsManagerUiDrivers
100
105
  end
101
106
  end
102
107
 
108
+ def most_recent_install_log
109
+ open_dashboard
110
+ if browser.all('#installation-logs li a', visible: false).any?
111
+ base_url = browser.first('#installation-logs li a', visible: false)[:href]
112
+ browser.visit "#{base_url}.text"
113
+ browser.source
114
+ end
115
+ end
116
+
117
+ def revert_pending_changes
118
+ open_dashboard
119
+ browser.click_on 'open-revert-installation-modal-action'
120
+ wait_for_modal_css_transition_to_complete
121
+ browser.click_on 'revert-installation-action'
122
+ end
123
+
124
+ def revert_available?
125
+ open_dashboard
126
+ browser.all('#open-revert-installation-modal-action').any?
127
+ end
128
+
103
129
  private
104
130
 
105
131
  attr_reader :browser
@@ -161,17 +187,6 @@ module OpsManagerUiDrivers
161
187
  def open_dashboard
162
188
  browser.visit '/'
163
189
  end
164
-
165
- def revert_pending_changes
166
- open_dashboard
167
- browser.click_on 'open-revert-installation-modal-action'
168
- wait_for_modal_css_transition_to_complete
169
- browser.click_on 'revert-installation-action'
170
- end
171
-
172
- def revert_available?
173
- browser.all('#open-revert-installation-modal-action').any?
174
- end
175
190
  end
176
191
  end
177
192
  end
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: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.