ops_manager_ui_drivers 1.5.1 → 1.6.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: 1cbb00115b1bb0878d2b97721d2404c0c258134a
4
- data.tar.gz: beb49c360ee3765385331664109f83c0e3b780eb
3
+ metadata.gz: 090f16fca12538210741d7324c540d76a98f08cd
4
+ data.tar.gz: 2480a6d67dc6a681741c42ef58734d61e40cb39e
5
5
  SHA512:
6
- metadata.gz: 2658d2fe278b2273c251cf5b78885e3f142e855352df6af6ba418e1c4fe2b80d600af5a9de933fe5975cc814368b76ccb325747551b0f7b3334d90fe46080bad
7
- data.tar.gz: 79a9550ea4954a90d17198c96344f62ceeb8e8be9d78a1578f8ab61a66249acc1e29e34ce8211e3b645bf1b84c83d09ca5dd6328c7f7e7df359ee598e7b5916f
6
+ metadata.gz: c9803862d55528a52e7b31cc99417c8cca7f7eb46606e9db9da116f80f3fb4eb89515f3857801a52c93ea91d429e6abebedae1526896e26e49bda2c99be2df8f
7
+ data.tar.gz: f5a66b17f461487cebcd4a1084a310af63fb984935ba07d6e1a3feec8952d7f6256072a78b7cae8d6805065889864cd7019abb320ac1db3b88869659815d88b8
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '1.5.1'
2
+ VERSION = '1.6.0'
3
3
  end
@@ -54,9 +54,9 @@ module OpsManagerUiDrivers
54
54
  'vcenter_password' => test_settings.ops_manager.vcenter.creds.password,
55
55
  'datacenter' => test_settings.ops_manager.vcenter.datacenter,
56
56
  'datastores_string' => test_settings.ops_manager.vcenter.datastore,
57
- 'microbosh_vm_folder' => test_settings.ops_manager.vcenter.bosh_vm_folder,
58
- 'microbosh_template_folder' => test_settings.ops_manager.vcenter.bosh_template_folder,
59
- 'microbosh_disk_path' => test_settings.ops_manager.vcenter.bosh_disk_path,
57
+ 'microbosh_vm_folder' => test_settings.ops_manager.vcenter.microbosh_vm_folder,
58
+ 'microbosh_template_folder' => test_settings.ops_manager.vcenter.microbosh_template_folder,
59
+ 'microbosh_disk_path' => test_settings.ops_manager.vcenter.microbosh_disk_path,
60
60
  }
61
61
  end
62
62
 
@@ -0,0 +1,18 @@
1
+ module OpsManagerUiDrivers
2
+ module Version16
3
+ module BoshProductSections
4
+ class AdvancedInfrastructureConfig
5
+ def initialize(browser:)
6
+ @bosh_product_form_section = BoshProductFormSection.new(browser, 'advanced_infrastructure_config')
7
+ end
8
+
9
+ def fill_advanced_infrastructure_config_settings(fields)
10
+ return if fields.empty?
11
+ @bosh_product_form_section.open_form('advanced_infrastructure_config')
12
+ @bosh_product_form_section.set_fields(fields)
13
+ @bosh_product_form_section.save_form
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,29 @@
1
+ module OpsManagerUiDrivers
2
+ module Version16
3
+ module BoshProductSections
4
+ class AvailabilityZones
5
+ def initialize(browser:)
6
+ @browser = browser
7
+ @bosh_product_form_section = BoshProductFormSection.new(browser, 'availability_zones[availability_zones][]')
8
+ end
9
+
10
+ def add_single_az(iaas_identifier)
11
+ @bosh_product_form_section.open_form('availability_zones')
12
+ @bosh_product_form_section.set_fields('iaas_identifier' => iaas_identifier)
13
+ @bosh_product_form_section.save_form
14
+ end
15
+
16
+ def add_az(fields)
17
+ @bosh_product_form_section.open_form('availability_zones')
18
+ browser.click_on 'Add'
19
+ @bosh_product_form_section.set_fields(fields)
20
+ @bosh_product_form_section.save_form
21
+ end
22
+
23
+ private
24
+
25
+ attr_reader :browser
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,7 +1,7 @@
1
1
  module OpsManagerUiDrivers
2
2
  module Version16
3
- module MicroboshSections
4
- class MicroboshFormSection
3
+ module BoshProductSections
4
+ class BoshProductFormSection
5
5
  def initialize(browser, field_prefix)
6
6
  @browser = browser
7
7
  @field_prefix = field_prefix
@@ -9,7 +9,7 @@ module OpsManagerUiDrivers
9
9
 
10
10
  def open_form(form_name)
11
11
  @browser.visit '/'
12
- @browser.click_on 'show-microbosh-configure-action'
12
+ @browser.click_on 'show-p-bosh-configure-action'
13
13
  @browser.click_on "show-#{form_name}-action"
14
14
  end
15
15
 
@@ -0,0 +1,17 @@
1
+ module OpsManagerUiDrivers
2
+ module Version16
3
+ module BoshProductSections
4
+ class IaasConfiguration
5
+ def initialize(browser:)
6
+ @bosh_product_form_section = BoshProductFormSection.new(browser, 'iaas_configuration')
7
+ end
8
+
9
+ def fill_iaas_settings(fields)
10
+ @bosh_product_form_section.open_form('iaas_configuration')
11
+ @bosh_product_form_section.set_fields(fields)
12
+ @bosh_product_form_section.save_form
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,16 +1,16 @@
1
1
  module OpsManagerUiDrivers
2
2
  module Version16
3
- module MicroboshSections
3
+ module BoshProductSections
4
4
  class Networks
5
5
  def initialize(browser:)
6
6
  @browser = browser
7
- @microbosh_form_section = MicroboshFormSection.new(browser, 'network[networks][]')
7
+ @bosh_product_form_section = BoshProductFormSection.new(browser, 'network[networks][]')
8
8
  end
9
9
 
10
10
  def add_single_network(name:, iaas_network_identifier:, subnet:, dns:, gateway:, reserved_ip_ranges:)
11
- @microbosh_form_section.open_form('network')
11
+ @bosh_product_form_section.open_form('network')
12
12
 
13
- @microbosh_form_section.set_fields(
13
+ @bosh_product_form_section.set_fields(
14
14
  'name' => name,
15
15
  'iaas_network_identifier' => iaas_network_identifier,
16
16
  'subnet' => subnet,
@@ -28,10 +28,10 @@ module OpsManagerUiDrivers
28
28
  end
29
29
 
30
30
  def add_network(name:, iaas_network_identifier:, subnet:, dns:, gateway:, reserved_ip_ranges:)
31
- @microbosh_form_section.open_form('network')
31
+ @bosh_product_form_section.open_form('network')
32
32
 
33
33
  browser.click_on 'Add'
34
- @microbosh_form_section.set_fields(
34
+ @bosh_product_form_section.set_fields(
35
35
  'name' => name,
36
36
  'iaas_network_identifier' => iaas_network_identifier,
37
37
  'subnet' => subnet,
@@ -39,7 +39,7 @@ module OpsManagerUiDrivers
39
39
  'gateway' => gateway,
40
40
  'reserved_ip_ranges' => reserved_ip_ranges,
41
41
  )
42
- @microbosh_form_section.save_form
42
+ @bosh_product_form_section.save_form
43
43
  end
44
44
 
45
45
  private
@@ -1,12 +1,12 @@
1
1
  module OpsManagerUiDrivers
2
2
  module Version16
3
3
  class OpsManagerDirector
4
- def initialize(browser:, iaas_configuration: Version16::MicroboshSections::IaasConfiguration.new(browser: browser))
4
+ def initialize(browser:, iaas_configuration: Version16::BoshProductSections::IaasConfiguration.new(browser: browser))
5
5
  @browser = browser
6
6
  @iaas_configuration = iaas_configuration
7
7
  end
8
8
 
9
- def configure_microbosh(test_settings)
9
+ def configure_bosh_product(test_settings)
10
10
  configure_iaas(test_settings)
11
11
 
12
12
  config_director(test_settings.ops_manager)
@@ -173,15 +173,15 @@ module OpsManagerUiDrivers
173
173
 
174
174
 
175
175
  def availability_zones
176
- @availability_zones ||= Version16::MicroboshSections::AvailabilityZones.new(browser: browser)
176
+ @availability_zones ||= Version16::BoshProductSections::AvailabilityZones.new(browser: browser)
177
177
  end
178
178
 
179
179
  def networks
180
- @networks ||= Version16::MicroboshSections::Networks.new(browser: browser)
180
+ @networks ||= Version16::BoshProductSections::Networks.new(browser: browser)
181
181
  end
182
182
 
183
183
  def advanced_infrastructure_config
184
- @advanced_infrastructure_config ||= Version16::MicroboshSections::AdvancedInfrastructureConfig.new(browser: browser)
184
+ @advanced_infrastructure_config ||= Version16::BoshProductSections::AdvancedInfrastructureConfig.new(browser: browser)
185
185
  end
186
186
  end
187
187
  end
@@ -28,12 +28,6 @@ module OpsManagerUiDrivers
28
28
  browser.wait { browser.assert_text('Successfully imported installation.') }
29
29
  end
30
30
 
31
- def upgrade_microbosh
32
- open_dashboard
33
- browser.find('p', text: 'Ops Manager Director').trigger(:mouseover)
34
- browser.click_on 'upgrade-microbosh'
35
- end
36
-
37
31
  def delete_product(product_name)
38
32
  open_dashboard
39
33
  browser.click_on "open-delete-#{product_name}-modal"
@@ -79,7 +79,7 @@ module OpsManagerUiDrivers
79
79
 
80
80
  def availability_zone_guid_for_name(az_name)
81
81
  browser.visit '/'
82
- browser.click_on 'show-microbosh-configure-action'
82
+ browser.click_on 'show-p-bosh-configure-action'
83
83
  browser.click_on 'show-director-availability-zone-assignment-action'
84
84
 
85
85
  availability_zone_options = find_az_field
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: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
@@ -199,14 +199,14 @@ files:
199
199
  - lib/ops_manager_ui_drivers/version15/state_change_progress.rb
200
200
  - lib/ops_manager_ui_drivers/version15/web_ui.rb
201
201
  - lib/ops_manager_ui_drivers/version16/available_products.rb
202
+ - lib/ops_manager_ui_drivers/version16/bosh_product_sections/advanced_infrastructure_config.rb
203
+ - lib/ops_manager_ui_drivers/version16/bosh_product_sections/availability_zones.rb
204
+ - lib/ops_manager_ui_drivers/version16/bosh_product_sections/bosh_product_form_section.rb
205
+ - lib/ops_manager_ui_drivers/version16/bosh_product_sections/iaas_configuration.rb
206
+ - lib/ops_manager_ui_drivers/version16/bosh_product_sections/networks.rb
202
207
  - lib/ops_manager_ui_drivers/version16/job_availability_zone_mapping_helper.rb
203
208
  - lib/ops_manager_ui_drivers/version16/job_network_mapping_helper.rb
204
209
  - lib/ops_manager_ui_drivers/version16/job_status_helper.rb
205
- - lib/ops_manager_ui_drivers/version16/microbosh_sections/advanced_infrastructure_config.rb
206
- - lib/ops_manager_ui_drivers/version16/microbosh_sections/availability_zones.rb
207
- - lib/ops_manager_ui_drivers/version16/microbosh_sections/iaas_configuration.rb
208
- - lib/ops_manager_ui_drivers/version16/microbosh_sections/microbosh_form_section.rb
209
- - lib/ops_manager_ui_drivers/version16/microbosh_sections/networks.rb
210
210
  - lib/ops_manager_ui_drivers/version16/ops_manager_director.rb
211
211
  - lib/ops_manager_ui_drivers/version16/product_availability_zones.rb
212
212
  - lib/ops_manager_ui_drivers/version16/product_configuration.rb
@@ -1,18 +0,0 @@
1
- module OpsManagerUiDrivers
2
- module Version16
3
- module MicroboshSections
4
- class AdvancedInfrastructureConfig
5
- def initialize(browser:)
6
- @microbosh_form_section = MicroboshFormSection.new(browser, 'advanced_infrastructure_config')
7
- end
8
-
9
- def fill_advanced_infrastructure_config_settings(fields)
10
- return if fields.empty?
11
- @microbosh_form_section.open_form('advanced_infrastructure_config')
12
- @microbosh_form_section.set_fields(fields)
13
- @microbosh_form_section.save_form
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,29 +0,0 @@
1
- module OpsManagerUiDrivers
2
- module Version16
3
- module MicroboshSections
4
- class AvailabilityZones
5
- def initialize(browser:)
6
- @browser = browser
7
- @microbosh_form_section = MicroboshFormSection.new(browser, 'availability_zones[availability_zones][]')
8
- end
9
-
10
- def add_single_az(iaas_identifier)
11
- @microbosh_form_section.open_form('availability_zones')
12
- @microbosh_form_section.set_fields('iaas_identifier' => iaas_identifier)
13
- @microbosh_form_section.save_form
14
- end
15
-
16
- def add_az(fields)
17
- @microbosh_form_section.open_form('availability_zones')
18
- browser.click_on 'Add'
19
- @microbosh_form_section.set_fields(fields)
20
- @microbosh_form_section.save_form
21
- end
22
-
23
- private
24
-
25
- attr_reader :browser
26
- end
27
- end
28
- end
29
- end
@@ -1,17 +0,0 @@
1
- module OpsManagerUiDrivers
2
- module Version16
3
- module MicroboshSections
4
- class IaasConfiguration
5
- def initialize(browser:)
6
- @microbosh_form_section = MicroboshFormSection.new(browser, 'iaas_configuration')
7
- end
8
-
9
- def fill_iaas_settings(fields)
10
- @microbosh_form_section.open_form('iaas_configuration')
11
- @microbosh_form_section.set_fields(fields)
12
- @microbosh_form_section.save_form
13
- end
14
- end
15
- end
16
- end
17
- end