Class: OpsManagerUiDrivers::Version110::ProductDashboard

Instance Method Summary collapse

Methods inherited from OpsManagerUiDrivers::Version18::ProductDashboard

#delete_installation_available?, #delete_unused_products, #delete_whole_installation, #product_available?, #reset_state, #upgrade_product

Methods inherited from OpsManagerUiDrivers::Version17::ProductDashboard

#delete_product, #delete_unused_products, #deleted_product?, #enabled_errands, #import_installation_file, #most_recent_install_log, #product_available?

Methods included from AnimationHelper

#disable_css_transitions!

Methods inherited from OpsManagerUiDrivers::Version16::ProductDashboard

#upgrade_microbosh

Methods inherited from OpsManagerUiDrivers::Version15::ProductDashboard

#import_installation_file, #most_recent_install_log, #product_complete?, #product_on_dashboard?

Methods inherited from OpsManagerUiDrivers::Version14::ProductDashboard

#delete_installation_available?, #delete_product, #delete_whole_installation, #deletion_in_progress?, #import_installation_file, #import_product_from, #initialize, #product_available?, #product_configuration_percentage, #reset_state, #revert_available?, #revert_pending_changes, #upgrade_microbosh, #upgrade_product, #version_for_product, #wait_for_installation_to_be_deleted

Constructor Details

This class inherits a constructor from OpsManagerUiDrivers::Version14::ProductDashboard

Instance Method Details

#apply_updates(validate: true, errands: {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ops_manager_ui_drivers/version110/product_dashboard.rb', line 6

def apply_updates(validate: true, errands: {})
  open_dashboard
  select_errand_states(errands)

  browser.click_on 'install-action'
  if validate
    fail 'Install failed verification' if nonignorable_verification_failed?
    allow_cpu_verification_errors
    allow_privilege_verification_errors
    allow_icmp_verification_errors #this is only for AWS; consider moving out

    ignore_allowable_errors
    assert_installation_started
  end

  ApplyUpdatesResult.new(browser: @browser)
end

#errands_with_state(product_name, errand_state) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/ops_manager_ui_drivers/version110/product_dashboard.rb', line 24

def errands_with_state(product_name, errand_state)
  option_value = translate_errand_state(errand_state)
  open_dashboard
  browser.execute_script "$('li.expandable > a.title').click()"
  browser.all("[ name ^= 'errands[#{product_name}-' ]").
    select { |select| select[:value] == option_value }.
    map { |select| select[:name].match(/^errands\[.*\]\[run_(?:post_deploy|pre_delete)\]\[(.*)\]$/)[1]}
end