ops_manager_ui_drivers 1.12.0 → 1.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e45d5c3bc24a51ca58b2c862410dfa6598e8bf34
|
4
|
+
data.tar.gz: 16090a55f1bd995cf3e577908c0512d0550ee30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0066a5bfbd9836192927ebfd0b6cc7ada21a2c038638bdcdfc90d6a2363a10d1f6da71c36bf7f41c8000aa245fc5428f0125f71f671ba452da4ca407b41a54
|
7
|
+
data.tar.gz: 639807c4817db07855e84b1a1900c9a45aa6c7a5ab2a8d53aa44b60f9f5a855231b2eacfe88030e607f8949e3a62b85684ba91b63c68501d51e6599de93335aa
|
data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/bosh_product_form_section.rb
CHANGED
@@ -24,6 +24,12 @@ module OpsManagerUiDrivers
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
+
def select_all_az_references_on_page
|
28
|
+
@browser.all(:field, "#{@field_prefix}[availability_zone_references][]").each do |node|
|
29
|
+
node.set(true)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
27
33
|
private
|
28
34
|
|
29
35
|
def set_field(field, value)
|
@@ -2,6 +2,9 @@ module OpsManagerUiDrivers
|
|
2
2
|
module Version17
|
3
3
|
module BoshProductSections
|
4
4
|
class Networks
|
5
|
+
FLASH_MESSAGE_CLASS = '.flash-message'.freeze
|
6
|
+
FLASH_MESSAGE_ERRORS = '.flash-message.error ul.message li'.freeze
|
7
|
+
|
5
8
|
def initialize(browser:)
|
6
9
|
@browser = browser
|
7
10
|
@bosh_product_form_section = BoshProductFormSection.new(@browser, 'network_collection[networks_attributes][0]')
|
@@ -19,9 +22,10 @@ module OpsManagerUiDrivers
|
|
19
22
|
'gateway' => gateway,
|
20
23
|
'reserved_ip_ranges' => reserved_ip_ranges,
|
21
24
|
)
|
25
|
+
@bosh_product_form_section.select_all_az_references_on_page
|
22
26
|
@browser.click_on 'Save'
|
23
|
-
@browser.expect(@browser.page).to @browser.have_css(
|
24
|
-
flash_errors = @browser.all(
|
27
|
+
@browser.expect(@browser.page).to @browser.have_css(FLASH_MESSAGE_CLASS)
|
28
|
+
flash_errors = @browser.all(FLASH_MESSAGE_ERRORS).to_a
|
25
29
|
flash_errors.reject! { |node| node.text =~ /cannot reach gateway/i }
|
26
30
|
|
27
31
|
if (flash_errors.length > 0)
|
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.13.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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
283
|
rubyforge_project:
|
284
|
-
rubygems_version: 2.
|
284
|
+
rubygems_version: 2.5.0
|
285
285
|
signing_key:
|
286
286
|
specification_version: 4
|
287
287
|
summary: Capybara helpers for configuring Pivotal Ops Manager
|