ops_manager_ui_drivers 1.13.0 → 1.14.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: e45d5c3bc24a51ca58b2c862410dfa6598e8bf34
4
- data.tar.gz: 16090a55f1bd995cf3e577908c0512d0550ee30c
3
+ metadata.gz: 0caccf9e0b734d218ad8ef9aa09043c4471049f8
4
+ data.tar.gz: 4d9074fbaecedbf337ad19c94a8bf3dbc2cadad5
5
5
  SHA512:
6
- metadata.gz: 0e0066a5bfbd9836192927ebfd0b6cc7ada21a2c038638bdcdfc90d6a2363a10d1f6da71c36bf7f41c8000aa245fc5428f0125f71f671ba452da4ca407b41a54
7
- data.tar.gz: 639807c4817db07855e84b1a1900c9a45aa6c7a5ab2a8d53aa44b60f9f5a855231b2eacfe88030e607f8949e3a62b85684ba91b63c68501d51e6599de93335aa
6
+ metadata.gz: 8deb7be544983565a31f9cc75660de6be0f9d77379956e77493b07c2918dca1af03aeed90abebc33775353a0d35434180b168114524333dc5b69d34a433cfb50
7
+ data.tar.gz: 98931e934003626b7bd4212f6c379b934170e67ac677411f3aed4c934e8d05ab59b8f0feaf98e5200191c6c4368ca2d53de7fffc556f6c0de35d943591efcdfc
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '1.13.0'
2
+ VERSION = '1.14.0'
3
3
  end
@@ -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
- set_field(field, value)
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.select_all_az_references_on_page
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.13.0
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-18 00:00:00.000000000 Z
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