ops_manager_ui_drivers 1.21.1 → 1.22.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: d4a2f03e9ce3d0cad442edb05548179f17277a78
4
- data.tar.gz: 223597eeb899ab684ceae65420872a80bc0b312c
3
+ metadata.gz: ca0ad468e05a09ec780c38bf1d9fb757760839e4
4
+ data.tar.gz: ce23e8b69a0dadf0f70373ae6bb03cf0ed067efc
5
5
  SHA512:
6
- metadata.gz: 3fc84e715b397c89855ad759f7dfc71eb47531208ebe9b3b50567543190cbc0926c774f30c1a6fa1fae1d55b2942d7cd29bbbe34da57c393312ebe40e49d3149
7
- data.tar.gz: b7efad09a9062de8b0cbfceeae6330e9ba0026764121690eb72e3c764d6f9d10938b21a6a4425b78d980b31ed8e00d8b6288a87962a1f5274cd7550993925c94
6
+ metadata.gz: 5f4fcd8aab14a263dc2332cdb282c4540e87bd9557abe5258894c46366d1dc39eec64b784b40593559522f2ed1154f66ad6b911f9918d67e459afc1eb5f317b0
7
+ data.tar.gz: dead400c8386a35383091d3a87979124270aee57f846efbb49665b01405e9e6de832ae85d13265c83201db4a7a8cf5c4d5a6335bdd25056b8c775921d6cda544
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '1.21.1'
2
+ VERSION = '1.22.0'
3
3
  end
@@ -18,8 +18,6 @@ module OpsManagerUiDrivers
18
18
  add_networks(test_settings)
19
19
 
20
20
  assign_networks(test_settings.ops_manager)
21
-
22
- customize_resource_config(test_settings.ops_manager.resource_config)
23
21
  end
24
22
 
25
23
  def configure_iaas(test_settings)
@@ -128,13 +126,6 @@ module OpsManagerUiDrivers
128
126
  end
129
127
  end
130
128
 
131
- def customize_resource_config(resource_config)
132
- browser.click_on 'Resource Config'
133
- if resource_config
134
- browser.fill_in('product_resources_form[director][persistent_disk][value]', with: resource_config.persistent_disk)
135
- end
136
- end
137
-
138
129
  def assign_networks_vsphere(infrastructure_network:, deployment_network:)
139
130
  browser.click_on 'Assign Networks'
140
131
 
@@ -19,8 +19,6 @@ module OpsManagerUiDrivers
19
19
 
20
20
  assign_networks(test_settings.ops_manager)
21
21
 
22
- customize_resource_config(test_settings.ops_manager.resource_config)
23
-
24
22
  configure_experimental_features(test_settings.ops_manager.experimental_features)
25
23
  end
26
24
 
@@ -127,13 +125,6 @@ module OpsManagerUiDrivers
127
125
  end
128
126
  end
129
127
 
130
- def customize_resource_config(resource_config)
131
- browser.click_on 'Resource Config'
132
- if resource_config
133
- browser.fill_in('product_resources_form[director][persistent_disk][value]', with: resource_config.persistent_disk)
134
- end
135
- end
136
-
137
128
  def assign_networks_vsphere(infrastructure_network:, deployment_network:)
138
129
  browser.click_on 'Assign Networks'
139
130
 
@@ -17,8 +17,6 @@ module OpsManagerUiDrivers
17
17
 
18
18
  assign_azs_and_networks(test_settings.iaas_type, test_settings.ops_manager.availability_zones, test_settings.ops_manager)
19
19
 
20
- customize_resource_config(test_settings.ops_manager.resource_config)
21
-
22
20
  configure_experimental_features(test_settings.ops_manager.experimental_features)
23
21
  end
24
22
 
@@ -105,13 +103,6 @@ module OpsManagerUiDrivers
105
103
  browser.click_on 'Save'
106
104
  end
107
105
 
108
- def customize_resource_config(resource_config)
109
- browser.click_on 'Resource Config'
110
- if resource_config
111
- browser.fill_in('product_resources_form[director][persistent_disk][value]', with: resource_config.persistent_disk)
112
- end
113
- end
114
-
115
106
  def configure_vm_passwords(use_generated_passwords: true)
116
107
  browser.click_on 'Security'
117
108
  if use_generated_passwords
@@ -8,40 +8,41 @@ module OpsManagerUiDrivers
8
8
  @product_name = product_name
9
9
  end
10
10
 
11
- def set_instances_for_job(job_name, instance_count)
12
- open_form
13
- browser.find_field("product_resources_form[#{job_name}][instances][value]").set(instance_count)
14
- save_form
11
+ def set_instances_for_job(job_name, instance_count, validate: true)
12
+ set_resources_for_jobs(job_name, :instances, instance_count, validate: validate)
13
+ end
14
+
15
+ 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)
15
17
  end
16
18
 
17
- def set_instance_type_for_job(job_name, instance_type)
19
+ def set_instance_type_for_job(job_name, instance_type, validate: true)
18
20
  open_form
19
21
  browser.
20
22
  find("select[name='product_resources_form[#{job_name}][instance_type_id]']").
21
23
  find("option[value='#{instance_type}']").
22
24
  select_option
23
- save_form
25
+ save_form(validate: validate)
24
26
  end
25
27
 
26
- def set_elb_names_for_job(job_name, comma_delimited_elb_names)
28
+ def set_disk_type_for_job(job_name, disk_type_id, validate: true)
27
29
  open_form
28
- browser.find_field("product_resources_form[#{job_name}][elb_names]").set(comma_delimited_elb_names)
29
- save_form
30
+ browser.
31
+ find("select[name='product_resources_form[#{job_name}][disk_type_id]']").
32
+ find("option[value='#{disk_type_id}']").
33
+ select_option
34
+ save_form(validate: validate)
30
35
  end
31
36
 
32
- def set_floating_ips_for_job(job_name, comma_delimited_floating_ips)
37
+ def set_elb_names_for_job(job_name, comma_delimited_elb_names, validate: true)
33
38
  open_form
34
- browser.find_field("product_resources_form[#{job_name}][floating_ips]").set(comma_delimited_floating_ips)
35
- save_form
39
+ browser.find_field("product_resources_form[#{job_name}][elb_names]").set(comma_delimited_elb_names)
40
+ save_form(validate: validate)
36
41
  end
37
42
 
38
- def set_resources_for_jobs(resources_by_job, validate: true)
43
+ def set_floating_ips_for_job(job_name, comma_delimited_floating_ips, validate: true)
39
44
  open_form
40
- resources_by_job.each do |job, resources|
41
- resources.each do |resource_or_instance, value|
42
- browser.fill_in("product_resources_form[#{job}][#{resource_or_instance}][value]", with: value)
43
- end
44
- end
45
+ browser.find_field("product_resources_form[#{job_name}][floating_ips]").set(comma_delimited_floating_ips)
45
46
  save_form(validate: validate)
46
47
  end
47
48
 
@@ -49,6 +50,12 @@ module OpsManagerUiDrivers
49
50
 
50
51
  attr_reader :browser
51
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
+
52
59
  def open_form
53
60
  browser.visit '/'
54
61
  browser.click_on "show-#{product_name}-configure-action"
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: 1.21.1
4
+ version: 1.22.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: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  version: '0'
283
283
  requirements: []
284
284
  rubyforge_project:
285
- rubygems_version: 2.4.5
285
+ rubygems_version: 2.5.0
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: Capybara helpers for configuring Pivotal Ops Manager