ops_manager_ui_drivers 2.10.9 → 2.11.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: 43a04b58a5ecbc1a4e8c1956f7b59ab2eaa8719e
|
4
|
+
data.tar.gz: 4c80a9fb9c6f7273873efa90418aea5a5f6c5f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f1a83a26189bdd026104111f4fee84faa77f4a35b39539a01889c95a56702d330d2afcb47e1863ff1c267cb5d1fc61890d1f832dff9cd3088d98bbc4fd7d7e
|
7
|
+
data.tar.gz: 0887160f8d2ea26c94dcf35a9538716042d421bacb3f10684a57b3b0d8388eca576fc3daea24afc485cbc1edd9df7cb1bc68ea0949d646402f2e88cd02e76ff0
|
@@ -3,6 +3,36 @@ require 'ops_manager_ui_drivers/version17/job_az_and_network_mapping_helper'
|
|
3
3
|
module OpsManagerUiDrivers
|
4
4
|
module Version18
|
5
5
|
class JobAzAndNetworkMappingHelper < Version17::JobAzAndNetworkMappingHelper
|
6
|
+
SERVICE_NETWORK_FIELD_NAME = "product_service_network_reference"
|
7
|
+
|
8
|
+
def assign_azs_and_network(singleton_availability_zone: nil, availability_zones: [], network:, service_network_name: nil)
|
9
|
+
open_form
|
10
|
+
|
11
|
+
got_azs = false
|
12
|
+
browser.all(AVAILABILITY_ZONE_INPUT_SELECTOR).each do |checkbox|
|
13
|
+
got_azs = true
|
14
|
+
checkbox.set(false)
|
15
|
+
end
|
16
|
+
|
17
|
+
availability_zones.each { |az_name| browser.check("#{az_name}") } if got_azs
|
18
|
+
|
19
|
+
browser.choose("#{singleton_availability_zone}") if got_azs
|
20
|
+
|
21
|
+
browser.find_field(NETWORK_FIELD_NAME).find(:option, text: network).select_option
|
22
|
+
|
23
|
+
if service_network_name
|
24
|
+
browser.find_field(SERVICE_NETWORK_FIELD_NAME).find(:option, text: service_network_name).select_option
|
25
|
+
end
|
26
|
+
|
27
|
+
save_form
|
28
|
+
end
|
29
|
+
|
30
|
+
def assigned_service_network
|
31
|
+
open_form
|
32
|
+
selected_options = browser.find_field(SERVICE_NETWORK_FIELD_NAME).all('option[selected]')
|
33
|
+
raise ArgumentError, "#{SERVICE_NETWORK_FIELD_NAME} not selected" if selected_options.empty?
|
34
|
+
selected_options.first.text
|
35
|
+
end
|
6
36
|
end
|
7
37
|
end
|
8
38
|
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: 2.
|
4
|
+
version: 2.11.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: 2016-04-
|
11
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|