ops_manager_ui_drivers 0.9.5 → 0.9.6

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: 85693b3d29d7afb49c3fd4bc41dcc29a04542554
4
- data.tar.gz: 65d58bdb7e0e1f814c20110796f1e70597327666
3
+ metadata.gz: 70535323ef0775db3ffc19bef3211452f96d142a
4
+ data.tar.gz: 8da2a7c7a949ef4e0717887b97e105a1c4c619ef
5
5
  SHA512:
6
- metadata.gz: a724fceb25456b8f0ee69d1e433193c53390d6f259250708f026348c4dd894df678db686c9e815e956259983a6fb4f4e32d7082f2ab8e3d237e68f2b56f53ebe
7
- data.tar.gz: 3dc65cbfbcb63e602b6c1bf9122d575e25e9da71788beed9419119b4eb751977171d43374475923190beba52f195338fe96b3085b7bef11d8a097b73edcd3143
6
+ metadata.gz: a0bd5f8f557e97363e9d07958ee6927740c1363945ebd17a3c9c806dd0a153b257029e9ee7d4d1bb730dcc30d0d0c5ba878a12ea0cb62d4459eac62a47441fd1
7
+ data.tar.gz: da8544de5207fcdd32f3bf9fa10d437377211b16819fe998ea08991ae3be57b4d6aa06da330eca350e0cbd8d982c1209979da15734a5b5aabd3e3c4962d04b5a
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
@@ -82,7 +82,7 @@ module OpsManagerUiDrivers
82
82
  browser.click_on 'show-microbosh-configure-action'
83
83
  browser.click_on 'show-director-availability-zone-assignment-action'
84
84
 
85
- availability_zone_options = browser.find_field('Singleton Availability Zone').all('option')
85
+ availability_zone_options = find_az_field
86
86
  availability_zone_options.each do |element|
87
87
  if element.text == az_name
88
88
  return element[:value]
@@ -99,6 +99,12 @@ module OpsManagerUiDrivers
99
99
  job_name = ENV['JOB_NAME'] || `hostname`.chomp.split(/\./).first
100
100
  job_name.gsub(/[^[:alnum:]]+/, '_')
101
101
  end
102
+
103
+ def find_az_field
104
+ browser.find_field('Singleton Availability Zone').all('option')
105
+ rescue Capybara::ElementNotFound
106
+ browser.find_field('Singleton Availability Zone', disabled: true).all('option')
107
+ end
102
108
  end
103
109
  end
104
110
  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: 0.9.5
4
+ version: 0.9.6
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-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara