ops_manager_ui_drivers 1.13.0 → 1.14.0
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 +4 -4
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/bosh_product_form_section.rb +3 -1
- data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/networks.rb +2 -6
- data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb +26 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0caccf9e0b734d218ad8ef9aa09043c4471049f8
|
4
|
+
data.tar.gz: 4d9074fbaecedbf337ad19c94a8bf3dbc2cadad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8deb7be544983565a31f9cc75660de6be0f9d77379956e77493b07c2918dca1af03aeed90abebc33775353a0d35434180b168114524333dc5b69d34a433cfb50
|
7
|
+
data.tar.gz: 98931e934003626b7bd4212f6c379b934170e67ac677411f3aed4c934e8d05ab59b8f0feaf98e5200191c6c4368ca2d53de7fffc556f6c0de35d943591efcdfc
|
data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/bosh_product_form_section.rb
CHANGED
@@ -2,6 +2,8 @@ module OpsManagerUiDrivers
|
|
2
2
|
module Version17
|
3
3
|
module BoshProductSections
|
4
4
|
class BoshProductFormSection
|
5
|
+
attr_reader :field_prefix
|
6
|
+
|
5
7
|
def initialize(browser, field_prefix)
|
6
8
|
@browser = browser
|
7
9
|
@field_prefix = field_prefix
|
@@ -20,7 +22,7 @@ module OpsManagerUiDrivers
|
|
20
22
|
|
21
23
|
def set_fields(fields)
|
22
24
|
fields.each do |field, value|
|
23
|
-
|
25
|
+
set_field(field, value)
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
@@ -16,13 +16,9 @@ module OpsManagerUiDrivers
|
|
16
16
|
@browser.click_on 'Add'
|
17
17
|
@bosh_product_form_section.set_fields(
|
18
18
|
'name' => name,
|
19
|
-
'iaas_network_identifier' => iaas_network_identifier,
|
20
|
-
'subnet' => subnet,
|
21
|
-
'dns' => dns,
|
22
|
-
'gateway' => gateway,
|
23
|
-
'reserved_ip_ranges' => reserved_ip_ranges,
|
24
19
|
)
|
25
|
-
@bosh_product_form_section
|
20
|
+
subnet_section = Subnet.new(browser: @browser, network_form: @bosh_product_form_section)
|
21
|
+
subnet_section.add_subnet(iaas_identifier: iaas_network_identifier, subnet: subnet, dns: dns, gateway: gateway, reserved_ip_ranges: reserved_ip_ranges)
|
26
22
|
@browser.click_on 'Save'
|
27
23
|
@browser.expect(@browser.page).to @browser.have_css(FLASH_MESSAGE_CLASS)
|
28
24
|
flash_errors = @browser.all(FLASH_MESSAGE_ERRORS).to_a
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module OpsManagerUiDrivers
|
2
|
+
module Version17
|
3
|
+
module BoshProductSections
|
4
|
+
class Subnet
|
5
|
+
FLASH_MESSAGE_CLASS = '.flash-message'.freeze
|
6
|
+
FLASH_MESSAGE_ERRORS = '.flash-message.error ul.message li'.freeze
|
7
|
+
|
8
|
+
def initialize(browser:, network_form:)
|
9
|
+
@browser = browser
|
10
|
+
@bosh_product_form_section = BoshProductFormSection.new(@browser, "#{network_form.field_prefix}[subnets][0]")
|
11
|
+
end
|
12
|
+
|
13
|
+
def add_subnet(iaas_identifier:, subnet:, dns:, gateway:, reserved_ip_ranges:)
|
14
|
+
@bosh_product_form_section.set_fields(
|
15
|
+
'iaas_identifier' => iaas_identifier,
|
16
|
+
'cidr' => subnet,
|
17
|
+
'dns' => dns,
|
18
|
+
'gateway' => gateway,
|
19
|
+
'reserved_ip_ranges' => reserved_ip_ranges,
|
20
|
+
)
|
21
|
+
@bosh_product_form_section.select_all_az_references_on_page
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
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: 1.
|
4
|
+
version: 1.14.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: 2015-11-
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -243,6 +243,7 @@ files:
|
|
243
243
|
- lib/ops_manager_ui_drivers/version17/bosh_product_sections/bosh_product_form_section.rb
|
244
244
|
- lib/ops_manager_ui_drivers/version17/bosh_product_sections/iaas_configuration.rb
|
245
245
|
- lib/ops_manager_ui_drivers/version17/bosh_product_sections/networks.rb
|
246
|
+
- lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
|
246
247
|
- lib/ops_manager_ui_drivers/version17/job_availability_zone_mapping_helper.rb
|
247
248
|
- lib/ops_manager_ui_drivers/version17/job_network_mapping_helper.rb
|
248
249
|
- lib/ops_manager_ui_drivers/version17/job_status_helper.rb
|