ops_manager_ui_drivers 2.3.2 → 2.4.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: 2ef3cb920d3f0e5463510ce9f14bf1ba0b3249a1
4
- data.tar.gz: 87112aa6c59929f0478308e7b3eda0a161bcaefc
3
+ metadata.gz: 7efc5e78976f72956bfcd21997fcd9699c1f9750
4
+ data.tar.gz: cf3b30da38767aba181bcd3674cfa54b743f94ad
5
5
  SHA512:
6
- metadata.gz: f4f297243d3d6dbc032d4b22c0cc0f72eb1f094f59e05110790fac94f2866b02190adead6872cd7adb27d04f1e868dd46915bb866d8a5012ed67d6d81e240f8d
7
- data.tar.gz: 325726d0acbc3ca9e330fd4434b9a21a770dc299c66a0fc5b62a7b237c8bf41e48e080d4e5b62aff3107714bd3ccf0d3ce0774297d2bd7bd4f1ade4713bc014d
6
+ metadata.gz: 57fbb6f95444ccb3b5698e2d20e985cd3a743fb716805a0aedb8da074dca571bb3ff16a2a31c49454017523caaf8a8661e8cfcdcc39006597d6801de8774e17d
7
+ data.tar.gz: d9a235b5380b4fef438c58a53c607437cca6b631b9e1c76a30df5fdda756bd348e1333de4788320614e3b23ba5dade44b562e13c4e00774c940f319418da72c5
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.3.2'
2
+ VERSION = '2.4.0'
3
3
  end
@@ -22,15 +22,17 @@ module OpsManagerUiDrivers
22
22
  save_form(validate: validate)
23
23
  end
24
24
 
25
- def set_instance_type_for_job(job_name, instance_type, validate: true)
25
+ def set_vm_type_for_job(job_name, vm_type, validate: true)
26
26
  open_form
27
27
  browser.
28
- find("select[name='product_resources_form[#{job_name}][instance_type_id]']").
29
- find("option[value='#{instance_type}']").
28
+ find("select[name='product_resources_form[#{job_name}][vm_type_id]']").
29
+ find("option[value='#{vm_type}']").
30
30
  select_option
31
31
  save_form(validate: validate)
32
32
  end
33
33
 
34
+ alias_method :set_instance_type_for_job, :set_vm_type_for_job
35
+
34
36
  def set_disk_type_for_job(job_name, disk_type_id, validate: true)
35
37
  open_form
36
38
  browser.
@@ -34,7 +34,7 @@ module OpsManagerUiDrivers
34
34
  blk.call
35
35
  rescue EarlyFailException
36
36
  raise
37
- rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
37
+ rescue RSpec::Expectations::ExpectationNotMetError, RuntimeError => e
38
38
  retries -= 1
39
39
  Logger.debug "------- retries_left=#{retries}"
40
40
  if retries > 0
@@ -50,7 +50,7 @@ module OpsManagerUiDrivers
50
50
  blk.call
51
51
  rescue EarlyFailException
52
52
  raise
53
- rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
53
+ rescue RSpec::Expectations::ExpectationNotMetError, RuntimeError => e
54
54
  seconds_left = (end_time - Time.now).round
55
55
  Logger.debug "------- seconds_left=#{seconds_left}"
56
56
  if seconds_left > SLEEP_INTERVAL
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.3.2
4
+ version: 2.4.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-02-02 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport