ops_manager_ui_drivers 0.9.2 → 0.9.3
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: 8934353de2fbfbc92baf4dd85e0968113adc15db
|
4
|
+
data.tar.gz: 80ecd705adfffe22b1c8e41df3768aee9a120c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a00cb89322b83c44f326552a703685b58154585c7966f5cded54f28010a797e1a418581389485ac9ffbffbfbecca48c6b06fde9e0d31a4eb2e966dba215f3c2
|
7
|
+
data.tar.gz: ceca69fefd47eebf3f143135c1b92cad237b195a03b6e20d9752e262474d659ea07183bd563a018f60094d7aec8219e7375ab110b52a3255e9297d08345fa116
|
@@ -13,7 +13,7 @@ module OpsManagerUiDrivers
|
|
13
13
|
|
14
14
|
config_director(test_settings.ops_manager)
|
15
15
|
|
16
|
-
|
16
|
+
add_availability_zones(test_settings.iaas_type, test_settings.ops_manager.availability_zones)
|
17
17
|
|
18
18
|
assign_availability_zone(test_settings.iaas_type, test_settings.ops_manager.availability_zones)
|
19
19
|
|
@@ -33,9 +33,9 @@ module OpsManagerUiDrivers
|
|
33
33
|
iaas_configuration.save_form
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def add_availability_zones(iaas_type, iaas_availability_zones)
|
37
37
|
case iaas_type
|
38
|
-
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
38
|
+
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
39
39
|
return unless iaas_availability_zones
|
40
40
|
availability_zones.add_single_az(iaas_availability_zones.first['iaas_identifier'])
|
41
41
|
when OpsManagerUiDrivers::VSPHERE_IAAS_TYPE
|
@@ -49,7 +49,7 @@ module OpsManagerUiDrivers
|
|
49
49
|
iaas_networks = test_settings.ops_manager.networks
|
50
50
|
|
51
51
|
case test_settings.iaas_type
|
52
|
-
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
52
|
+
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
53
53
|
first_network = iaas_networks.first
|
54
54
|
browser.click_on 'show-network-action'
|
55
55
|
browser.fill_in 'network[networks][][name]', with: first_network['name']
|
@@ -109,7 +109,7 @@ module OpsManagerUiDrivers
|
|
109
109
|
def assign_availability_zone(iaas_type, iaas_availability_zones)
|
110
110
|
return unless iaas_availability_zones
|
111
111
|
case iaas_type
|
112
|
-
when OpsManagerUiDrivers::AWS_IAAS_TYPE
|
112
|
+
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
113
113
|
browser.click_on 'Assign Availability Zones'
|
114
114
|
browser.select(iaas_availability_zones.first['iaas_identifier'])
|
115
115
|
browser.click_on 'Save'
|