ops_manager_ui_drivers 2.2.1 → 2.3.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: 86bc39162602c32ee6a298f8dbc9a9a44aa00dbd
4
- data.tar.gz: eb43fc1bdf9996b87c9c1036794ba3bb07176255
3
+ metadata.gz: dd861981ae01b57104f7f2c4eb3cb9a4f8db6018
4
+ data.tar.gz: d09f832ea49a2344714338785352a91d1d7d5116
5
5
  SHA512:
6
- metadata.gz: 6ccd0a26c719932f9779b84475fe12d49226494f5efa1fa95c5d00cbb7a2c03a4ffc38555f8d253ccf23ca9bbab1ad8d48e96b858570ef03db20fe89ad35606f
7
- data.tar.gz: 3aadfb341967bdb6f34e51dc17798994482f221f65ad260fdbe6a478eb3381418b635ab162a2decc0e12ae1b18c30f869e8090c288afb7408a8247a541bea3a5
6
+ metadata.gz: 63d75a22c090d5f20f1a6364b2a72bbcbdc11371d1ceb9c9bba95bf994e877c9ffa842988f10c8afc03ccfb9d455d136fcacb2f090331767585eb3f5c2273d5d
7
+ data.tar.gz: c2eb060b7d5578b9dda379eaad17badab04042c78bf53c6170f253ea3d61aaae6a1856dd58242d972012ab634f8dfc16ee9d655553e13dba8f2c8a9920f6fa65
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.2.1'
2
+ VERSION = '2.3.0'
3
3
  end
@@ -113,6 +113,11 @@ module OpsManagerUiDrivers
113
113
  browser.all('#open-revert-installation-modal-action').any?
114
114
  end
115
115
 
116
+ def product_configuration_percentage(product_name)
117
+ open_dashboard
118
+ browser.find("#show-#{product_name}-configure-action")['data-progress'].to_i
119
+ end
120
+
116
121
  private
117
122
 
118
123
  attr_reader :browser
@@ -9,11 +9,17 @@ module OpsManagerUiDrivers
9
9
  end
10
10
 
11
11
  def set_instances_for_job(job_name, instance_count, validate: true)
12
- set_resources_for_jobs(job_name, :instances, instance_count, validate: validate)
12
+ open_form
13
+ browser.find("select[name='product_resources_form[#{job_name}][instances]']").
14
+ find("option[value='#{instance_count}']").
15
+ select_option
16
+ save_form(validate: validate)
13
17
  end
14
18
 
15
19
  def set_ephemeral_disk_for_job(job_name, ephemeral_disk, validate: true)
16
- set_resources_for_jobs(job_name, :ephemeral_disk, ephemeral_disk, validate: validate)
20
+ open_form
21
+ browser.fill_in("product_resources_form[#{job_name}][ephemeral_disk][value]", with: ephemeral_disk)
22
+ save_form(validate: validate)
17
23
  end
18
24
 
19
25
  def set_instance_type_for_job(job_name, instance_type, validate: true)
@@ -46,22 +52,17 @@ module OpsManagerUiDrivers
46
52
  save_form(validate: validate)
47
53
  end
48
54
 
49
- private
50
-
51
- attr_reader :browser
52
-
53
- def set_resources_for_jobs(job_name, resource, value, validate: true)
54
- open_form
55
- browser.fill_in("product_resources_form[#{job_name}][#{resource}][value]", with: value)
56
- save_form(validate: validate)
57
- end
58
-
59
55
  def open_form
60
56
  browser.visit '/'
61
57
  browser.click_on "show-#{product_name}-configure-action"
62
58
  browser.click_on "show-#{product_name}-resource-sizes-action"
63
59
  end
64
60
 
61
+ private
62
+
63
+ attr_reader :browser
64
+
65
+
65
66
  def save_form(validate: true)
66
67
  browser.click_on 'Save'
67
68
 
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.2.1
4
+ version: 2.3.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-01-26 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport