ops_manager_ui_drivers 2.22.4 → 2.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ops_manager_ui_drivers/page_helpers.rb +2 -14
  3. data/lib/ops_manager_ui_drivers/version.rb +1 -1
  4. metadata +2 -26
  5. data/lib/ops_manager_ui_drivers/version19/api.rb +0 -10
  6. data/lib/ops_manager_ui_drivers/version19/available_products.rb +0 -8
  7. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/advanced_infrastructure_config.rb +0 -10
  8. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/availability_zones.rb +0 -10
  9. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/bosh_product_form_section.rb +0 -10
  10. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/iaas_configuration.rb +0 -10
  11. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/networks.rb +0 -10
  12. data/lib/ops_manager_ui_drivers/version19/bosh_product_sections/subnet.rb +0 -10
  13. data/lib/ops_manager_ui_drivers/version19/job_az_and_network_mapping_helper.rb +0 -8
  14. data/lib/ops_manager_ui_drivers/version19/job_network_mapping_helper.rb +0 -8
  15. data/lib/ops_manager_ui_drivers/version19/job_status_helper.rb +0 -19
  16. data/lib/ops_manager_ui_drivers/version19/ops_manager_director.rb +0 -25
  17. data/lib/ops_manager_ui_drivers/version19/product_availability_zones.rb +0 -10
  18. data/lib/ops_manager_ui_drivers/version19/product_configuration.rb +0 -8
  19. data/lib/ops_manager_ui_drivers/version19/product_dashboard.rb +0 -8
  20. data/lib/ops_manager_ui_drivers/version19/product_errands.rb +0 -8
  21. data/lib/ops_manager_ui_drivers/version19/product_form.rb +0 -8
  22. data/lib/ops_manager_ui_drivers/version19/product_logs.rb +0 -8
  23. data/lib/ops_manager_ui_drivers/version19/product_resource_configuration.rb +0 -8
  24. data/lib/ops_manager_ui_drivers/version19/product_status_helper.rb +0 -8
  25. data/lib/ops_manager_ui_drivers/version19/setup.rb +0 -8
  26. data/lib/ops_manager_ui_drivers/version19/state_change_progress.rb +0 -8
  27. data/lib/ops_manager_ui_drivers/version19/user_settings.rb +0 -12
  28. data/lib/ops_manager_ui_drivers/version19/web_ui.rb +0 -112
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da6e3032e4e3f9dba897a02c1fe3e091ca915cd3
4
- data.tar.gz: 3290f228f8e34c6a7b6f1ffb32387f21120e0f9e
3
+ metadata.gz: ec8dd046c2092c4f919731b44f7f378eafcdb10b
4
+ data.tar.gz: ecb19bfe4b3015e6c3fd2b435dd5aa45a151157f
5
5
  SHA512:
6
- metadata.gz: eaf1408f03b685cdb0029cf92f9c3bc01728468c6feb4865fa0c8767863740893091b1453515a7ac6fa947815ffe46c3a3b7484c404d9dcd1bce5b07931411a6
7
- data.tar.gz: 3054aae51d75d8dd1db9b2fdccd03f55ab0d9590941c020a8ddec318ba76abca3828269723c830562c5ebe7bd35fdab60d6b852cf9a4ac802f925f48c62c4952
6
+ metadata.gz: 4832782fc023ff3c6beac0c73e05087d2749524737ec5237869fd88ddef72685a43e76245958f77e3bb47b38bb2a3ac9f8f7b177e71f82009db1487ccbc4ceb2
7
+ data.tar.gz: 130be098195d17c3b43c80821f8310d6866e696d4160a53e432d6371ca8891b7f9aaf84d9da360a4f91dc3caf9f3740088d65a1e59c1acc92d328e0fd048ba8c
@@ -44,14 +44,6 @@ module OpsManagerUiDrivers
44
44
  )
45
45
  end
46
46
 
47
- def om_1_9(ops_manager_url, browser = self)
48
- @om_1_9 ||= create_web_ui(
49
- ops_manager_url: ops_manager_url,
50
- browser: browser,
51
- version_module: Version19,
52
- )
53
- end
54
-
55
47
  def api_1_4(host:, username:, password:)
56
48
  Version14::Api.new(host_uri: host, username: username, password: password)
57
49
  end
@@ -72,12 +64,8 @@ module OpsManagerUiDrivers
72
64
  Version18::Api.new(host_uri: host, username: username, password: password)
73
65
  end
74
66
 
75
- def api_1_9(host:, username:, password:)
76
- Version18::Api.new(host_uri: host, username: username, password: password)
77
- end
78
-
79
- alias_method :om_rc, :om_1_9
80
- alias_method :api_rc, :api_1_9
67
+ alias_method :om_rc, :om_1_8
68
+ alias_method :api_rc, :api_1_8
81
69
 
82
70
  private
83
71
 
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.22.4'
2
+ VERSION = '2.23.0'
3
3
  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: 2.22.4
4
+ version: 2.23.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-07-21 00:00:00.000000000 Z
11
+ date: 2016-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -304,30 +304,6 @@ files:
304
304
  - lib/ops_manager_ui_drivers/version18/state_change_progress.rb
305
305
  - lib/ops_manager_ui_drivers/version18/user_settings.rb
306
306
  - lib/ops_manager_ui_drivers/version18/web_ui.rb
307
- - lib/ops_manager_ui_drivers/version19/api.rb
308
- - lib/ops_manager_ui_drivers/version19/available_products.rb
309
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/advanced_infrastructure_config.rb
310
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/availability_zones.rb
311
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/bosh_product_form_section.rb
312
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/iaas_configuration.rb
313
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/networks.rb
314
- - lib/ops_manager_ui_drivers/version19/bosh_product_sections/subnet.rb
315
- - lib/ops_manager_ui_drivers/version19/job_az_and_network_mapping_helper.rb
316
- - lib/ops_manager_ui_drivers/version19/job_network_mapping_helper.rb
317
- - lib/ops_manager_ui_drivers/version19/job_status_helper.rb
318
- - lib/ops_manager_ui_drivers/version19/ops_manager_director.rb
319
- - lib/ops_manager_ui_drivers/version19/product_availability_zones.rb
320
- - lib/ops_manager_ui_drivers/version19/product_configuration.rb
321
- - lib/ops_manager_ui_drivers/version19/product_dashboard.rb
322
- - lib/ops_manager_ui_drivers/version19/product_errands.rb
323
- - lib/ops_manager_ui_drivers/version19/product_form.rb
324
- - lib/ops_manager_ui_drivers/version19/product_logs.rb
325
- - lib/ops_manager_ui_drivers/version19/product_resource_configuration.rb
326
- - lib/ops_manager_ui_drivers/version19/product_status_helper.rb
327
- - lib/ops_manager_ui_drivers/version19/setup.rb
328
- - lib/ops_manager_ui_drivers/version19/state_change_progress.rb
329
- - lib/ops_manager_ui_drivers/version19/user_settings.rb
330
- - lib/ops_manager_ui_drivers/version19/web_ui.rb
331
307
  - lib/ops_manager_ui_drivers/wait_helper.rb
332
308
  - ops_manager_ui_drivers.gemspec
333
309
  homepage: https://github.com/pivotal-cf-experimental/ops_manager_ui_drivers
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/api'
2
- require 'uaa'
3
- require 'net/http/post/multipart'
4
-
5
- module OpsManagerUiDrivers
6
- module Version19
7
- class Api < Version18::Api
8
- end
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/available_products'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class AvailableProducts < Version18::AvailableProducts
6
- end
7
- end
8
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/advanced_infrastructure_config'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class AdvancedInfrastructureConfig < Version18::BoshProductSections::AdvancedInfrastructureConfig
7
- end
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/availability_zones'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class AvailabilityZones < Version18::BoshProductSections::AvailabilityZones
7
- end
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/bosh_product_form_section'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class BoshProductFormSection < Version18::BoshProductSections::BoshProductFormSection
7
- end
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/iaas_configuration'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class IaasConfiguration < Version18::BoshProductSections::IaasConfiguration
7
- end
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/networks'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class Networks < Version18::BoshProductSections::Networks
7
- end
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/bosh_product_sections/subnet'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- module BoshProductSections
6
- class Subnet < Version18::BoshProductSections::Subnet
7
- end
8
- end
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/job_az_and_network_mapping_helper'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class JobAzAndNetworkMappingHelper < Version18::JobAzAndNetworkMappingHelper
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/job_network_mapping_helper'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class JobNetworkMappingHelper < Version18::JobNetworkMappingHelper
6
- end
7
- end
8
- end
@@ -1,19 +0,0 @@
1
- module OpsManagerUiDrivers
2
- module Version19
3
- class JobStatusHelper
4
- def self.from_job_row(job_row)
5
- ips_string = job_row.find('.actual-ips').text
6
- ips = ips_string.split(', ')
7
- az = job_row.all('.az').first.try(:text)
8
- new(ips: ips, az: az)
9
- end
10
-
11
- def initialize(ips:, az:)
12
- @ips = ips
13
- @az = az
14
- end
15
-
16
- attr_reader :ips, :az
17
- end
18
- end
19
- end
@@ -1,25 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/ops_manager_director'
2
- using OpsManagerUiDrivers::BackportRefinements
3
-
4
- module OpsManagerUiDrivers
5
- module Version19
6
- class OpsManagerDirector < Version18::OpsManagerDirector
7
- def initialize(browser:, iaas_configuration: Version19::BoshProductSections::IaasConfiguration.new(browser: browser))
8
- @browser = browser
9
- @iaas_configuration = iaas_configuration
10
- end
11
-
12
- def advanced_infrastructure_config
13
- @advanced_infrastructure_config ||= Version19::BoshProductSections::AdvancedInfrastructureConfig.new(browser: browser)
14
- end
15
-
16
- def availability_zones
17
- @availability_zones ||= Version19::BoshProductSections::AvailabilityZones.new(browser: browser)
18
- end
19
-
20
- def networks
21
- @networks ||= Version19::BoshProductSections::Networks.new(browser: browser)
22
- end
23
- end
24
- end
25
- end
@@ -1,10 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_availability_zones'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class WebUi
6
- class ProductAvailabilityZones < Version18::WebUi::ProductAvailabilityZones
7
- end
8
- end
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_configuration'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductConfiguration < Version18::ProductConfiguration
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_dashboard'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductDashboard < Version18::ProductDashboard
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_errands'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductErrands < Version18::ProductErrands
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_form'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductForm < Version18::ProductForm
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_logs'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductLogs < Version18::ProductLogs
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_resource_configuration'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductResourceConfiguration < Version18::ProductResourceConfiguration
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/product_status_helper'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class ProductStatusHelper < Version18::ProductStatusHelper
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/setup'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class Setup < Version18::Setup
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/state_change_progress'
2
-
3
- module OpsManagerUiDrivers
4
- module Version19
5
- class StateChangeProgress < OpsManagerUiDrivers::Version18::StateChangeProgress
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- require 'ops_manager_ui_drivers/version18/user_settings'
2
- require 'ops_manager_ui_drivers/animation_helper'
3
-
4
- module OpsManagerUiDrivers
5
- module Version19
6
- class UserSettings < Version18::UserSettings
7
- end
8
- end
9
- end
10
-
11
-
12
-
@@ -1,112 +0,0 @@
1
- require 'net/https'
2
- require 'date'
3
-
4
- module OpsManagerUiDrivers
5
- module Version19
6
- class WebUi
7
- def initialize(browser:)
8
- @browser = browser
9
- end
10
-
11
- def setup_page
12
- Version19::Setup.new(browser: browser)
13
- end
14
-
15
- def settings_page
16
- Version19::UserSettings.new(browser: browser)
17
- end
18
-
19
- def product_dashboard
20
- Version19::ProductDashboard.new(browser: browser)
21
- end
22
-
23
- def state_change_progress
24
- Version19::StateChangeProgress.new(browser: browser)
25
- end
26
-
27
- def available_products
28
- Version19::AvailableProducts.new(browser: browser)
29
- end
30
-
31
- def ops_manager_director
32
- Version19::OpsManagerDirector.new(browser: browser)
33
- end
34
-
35
- def product_logs_for(product_name)
36
- Version19::ProductLogs.new(browser: browser, product_name: product_name)
37
- end
38
-
39
- def product_resources_configuration(product_name)
40
- Version19::ProductResourceConfiguration.new(browser: browser, product_name: product_name)
41
- end
42
-
43
- def product(product_name)
44
- Version19::ProductConfiguration.new(browser: browser, product_name: product_name)
45
- end
46
-
47
- def product_status_for(product_name)
48
- Version19::ProductStatusHelper.new(browser: browser, product_name: product_name)
49
- end
50
-
51
- def product_availability_zones(product_name)
52
- Version19::ProductAvailabilityZones.new(browser: browser, product: product_name)
53
- end
54
-
55
- def job_azs_and_network_mapping_for(product_name)
56
- Version19::JobAzAndNetworkMappingHelper.new(
57
- browser: browser,
58
- product_name: product_name,
59
- )
60
- end
61
-
62
- def assign_azs_and_network_for_product(product_name:, zones:, network:)
63
- zones_present = zones && zones.first
64
-
65
- singleton_az = zones_present ? (zones[0]['iaas_identifier'] || zones[0]['name']) : nil
66
- availability_zones = zones_present ? zones.map{|zone| (zone['iaas_identifier'] || zone['name']) } : nil
67
-
68
- job_azs_and_network_mapping_for(product_name).assign_azs_and_network(
69
- singleton_availability_zone: singleton_az,
70
- availability_zones: availability_zones,
71
- network: network,
72
- )
73
- end
74
-
75
- def current_time
76
- uri = URI(Capybara.app_host)
77
- uri.path = '/'
78
- Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == 'https'), verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
79
- response = http.request(Net::HTTP::Get.new(uri))
80
- DateTime.parse(response['Date'])
81
- end
82
- end
83
-
84
- def flash_message
85
- browser.find('.flash-message').text
86
- end
87
-
88
- def availability_zone_guid_for_name(az_name)
89
- browser.visit '/'
90
- browser.click_on 'show-p-bosh-configure-action'
91
- browser.click_on 'show-director-az-and-network-assignment-action'
92
-
93
- availability_zone_options = find_az_field
94
- availability_zone_options.each do |element|
95
- if element.text == az_name
96
- return element[:value]
97
- end
98
- end
99
- end
100
-
101
- private
102
-
103
- attr_reader :browser
104
-
105
- def find_az_field
106
- browser.find_field('Singleton Availability Zone').all('option')
107
- rescue Capybara::ElementNotFound
108
- browser.find_field('Singleton Availability Zone', disabled: true).all('option')
109
- end
110
- end
111
- end
112
- end