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 +4 -4
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version15/settings.rb +3 -3
- data/lib/ops_manager_ui_drivers/version16/bosh_product_sections/advanced_infrastructure_config.rb +18 -0
- data/lib/ops_manager_ui_drivers/version16/bosh_product_sections/availability_zones.rb +29 -0
- data/lib/ops_manager_ui_drivers/version16/{microbosh_sections/microbosh_form_section.rb → bosh_product_sections/bosh_product_form_section.rb} +3 -3
- data/lib/ops_manager_ui_drivers/version16/bosh_product_sections/iaas_configuration.rb +17 -0
- data/lib/ops_manager_ui_drivers/version16/{microbosh_sections → bosh_product_sections}/networks.rb +7 -7
- data/lib/ops_manager_ui_drivers/version16/ops_manager_director.rb +5 -5
- data/lib/ops_manager_ui_drivers/version16/product_dashboard.rb +0 -6
- data/lib/ops_manager_ui_drivers/version16/web_ui.rb +1 -1
- metadata +6 -6
- data/lib/ops_manager_ui_drivers/version16/microbosh_sections/advanced_infrastructure_config.rb +0 -18
- data/lib/ops_manager_ui_drivers/version16/microbosh_sections/availability_zones.rb +0 -29
- data/lib/ops_manager_ui_drivers/version16/microbosh_sections/iaas_configuration.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 090f16fca12538210741d7324c540d76a98f08cd
|
4
|
+
data.tar.gz: 2480a6d67dc6a681741c42ef58734d61e40cb39e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9803862d55528a52e7b31cc99417c8cca7f7eb46606e9db9da116f80f3fb4eb89515f3857801a52c93ea91d429e6abebedae1526896e26e49bda2c99be2df8f
|
7
|
+
data.tar.gz: f5a66b17f461487cebcd4a1084a310af63fb984935ba07d6e1a3feec8952d7f6256072a78b7cae8d6805065889864cd7019abb320ac1db3b88869659815d88b8
|
@@ -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.
|
58
|
-
'microbosh_template_folder' => test_settings.ops_manager.vcenter.
|
59
|
-
'microbosh_disk_path' => test_settings.ops_manager.vcenter.
|
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
|
|
data/lib/ops_manager_ui_drivers/version16/bosh_product_sections/advanced_infrastructure_config.rb
ADDED
@@ -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
|
4
|
-
class
|
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-
|
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
|
data/lib/ops_manager_ui_drivers/version16/{microbosh_sections → bosh_product_sections}/networks.rb
RENAMED
@@ -1,16 +1,16 @@
|
|
1
1
|
module OpsManagerUiDrivers
|
2
2
|
module Version16
|
3
|
-
module
|
3
|
+
module BoshProductSections
|
4
4
|
class Networks
|
5
5
|
def initialize(browser:)
|
6
6
|
@browser = browser
|
7
|
-
@
|
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
|
-
@
|
11
|
+
@bosh_product_form_section.open_form('network')
|
12
12
|
|
13
|
-
@
|
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
|
-
@
|
31
|
+
@bosh_product_form_section.open_form('network')
|
32
32
|
|
33
33
|
browser.click_on 'Add'
|
34
|
-
@
|
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
|
-
@
|
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::
|
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
|
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::
|
176
|
+
@availability_zones ||= Version16::BoshProductSections::AvailabilityZones.new(browser: browser)
|
177
177
|
end
|
178
178
|
|
179
179
|
def networks
|
180
|
-
@networks ||= Version16::
|
180
|
+
@networks ||= Version16::BoshProductSections::Networks.new(browser: browser)
|
181
181
|
end
|
182
182
|
|
183
183
|
def advanced_infrastructure_config
|
184
|
-
@advanced_infrastructure_config ||= Version16::
|
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-
|
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.
|
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
|
data/lib/ops_manager_ui_drivers/version16/microbosh_sections/advanced_infrastructure_config.rb
DELETED
@@ -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
|