ops_manager_ui_drivers 2.1.6 → 2.1.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f271a75ae031945c71b67c00e151877698ac3e10
|
4
|
+
data.tar.gz: 6575e6940cac327bc56a56d677a8dc8e6f25bfee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccdcd09e4e0a9cd15415e1216bc62fd3be7b0da9f6708f697e34614dba961e41028cddfea2b6b12aef912c6ad7555663a59f303a22ea12a5808d80db275aa75c
|
7
|
+
data.tar.gz: 9cef3c5a9c5c6ff41ef8617589f8f7dbf98e0e581c566d22b890b9b6873252c30304393c7df43baad6308f3b8ed0bb25fc90f9151978a26fde586a5c3bd2900f
|
@@ -50,22 +50,26 @@ module OpsManagerUiDrivers
|
|
50
50
|
|
51
51
|
def job_azs_and_network_mapping_for(product_name)
|
52
52
|
Version17::JobAzAndNetworkMappingHelper.new(
|
53
|
-
browser:
|
53
|
+
browser: browser,
|
54
54
|
product_name: product_name,
|
55
55
|
)
|
56
56
|
end
|
57
57
|
|
58
58
|
def assign_azs_and_network_for_product(product_name:, zones:, network:)
|
59
59
|
zones_present = zones && zones.first
|
60
|
+
|
61
|
+
singleton_az = zones_present ? (zones[0]['iaas_identifier'] || zones[0]['name']) : nil
|
62
|
+
availability_zones = zones_present ? zones.map{|zone| (zone['iaas_identifier'] || zone['name']) } : nil
|
63
|
+
|
60
64
|
job_azs_and_network_mapping_for(product_name).assign_azs_and_network(
|
61
|
-
singleton_availability_zone:
|
62
|
-
availability_zones:
|
63
|
-
network:
|
65
|
+
singleton_availability_zone: singleton_az,
|
66
|
+
availability_zones: availability_zones,
|
67
|
+
network: network,
|
64
68
|
)
|
65
69
|
end
|
66
70
|
|
67
71
|
def current_time
|
68
|
-
uri
|
72
|
+
uri = URI(Capybara.app_host)
|
69
73
|
uri.path = '/'
|
70
74
|
Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == 'https'), verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
|
71
75
|
response = http.request(Net::HTTP::Get.new(uri))
|