ops_manager_ui_drivers 2.1.7 → 2.1.8

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: f271a75ae031945c71b67c00e151877698ac3e10
4
- data.tar.gz: 6575e6940cac327bc56a56d677a8dc8e6f25bfee
3
+ metadata.gz: 0ac723e55c3354a630ca7a2148462a2b8fd8cbe9
4
+ data.tar.gz: 3275415a1699e8efcfab686d615908ed8b244260
5
5
  SHA512:
6
- metadata.gz: ccdcd09e4e0a9cd15415e1216bc62fd3be7b0da9f6708f697e34614dba961e41028cddfea2b6b12aef912c6ad7555663a59f303a22ea12a5808d80db275aa75c
7
- data.tar.gz: 9cef3c5a9c5c6ff41ef8617589f8f7dbf98e0e581c566d22b890b9b6873252c30304393c7df43baad6308f3b8ed0bb25fc90f9151978a26fde586a5c3bd2900f
6
+ metadata.gz: e2f6528cd898dc5365607f584c170feb1f30cd875337bad916e71d23792ad07486c9f481e3fa765f765ef814589d35207a43395fe2d28553dff739525c6df018
7
+ data.tar.gz: 61f24d522a0e7289c45bf778a840b6098b1c284a07c059ddafa745e82c8e342f9ff072f15a27f3d6c43825a555ae26c1da23ea7ef67c61acd8eb2b0a7f8e6dfe
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.1.7'
2
+ VERSION = '2.1.8'
3
3
  end
@@ -39,6 +39,20 @@ module OpsManagerUiDrivers
39
39
  vm.resourcePool.name
40
40
  end
41
41
 
42
+ def az_name_for_job_in_az(job_name, vpc_id, az_guid)
43
+ job_status = job_status_in_az("#{job_name}-partition-#{az_guid}", az_guid)
44
+
45
+ job_ip = job_status.ips.fetch(0)
46
+
47
+ ec2 = ::AWS::EC2.new # creds initialized in TestSettings::Renderer::SettingsFetcher::AWSSettings.initialize
48
+
49
+ found_instance = ec2.instances.find do |instance|
50
+ instance.private_ip_address == job_ip && instance.vpc_id == vpc_id && instance.status == :running
51
+ end
52
+
53
+ found_instance.availability_zone if found_instance
54
+ end
55
+
42
56
  private
43
57
 
44
58
  attr_reader :browser, :product_name
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.1.7
4
+ version: 2.1.8
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-01-19 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport