ops_manager_ui_drivers 0.9.1 → 0.9.2

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: d513eb04001cd03a5fd3ca0057970938d41a7bb2
4
- data.tar.gz: be3d0ab8638a50a118a48b0d7d84f8519c875c8b
3
+ metadata.gz: 6fb3e6d013c093c5104ef86bde3ca794043faa96
4
+ data.tar.gz: 0039a39250dd04764308875ad713fa6cdeaf6cb8
5
5
  SHA512:
6
- metadata.gz: 42503e2d9ae5720d71cb56859ebc7bdf49b1b93d3f6c4f4bf0dae76f11fc9acd5c5bd86249d6868f1ab2987c096cb440d5e2cc50f26f9545e05a46e8f8f7d1f0
7
- data.tar.gz: adc04633e51de1237eb9e1ed7f0f19cebf3e0846c558b23228ce407576000365efebdbf182b7c6b998df00cd945d72d352a41ba2491cb3f1f20e36b8f1e63ce4
6
+ metadata.gz: 7eacdf3516b11c211aa74d8e444dc7415ec5405f0c7ec9b5f4ab3d01e70fea0c6839eaaf98b53da60a93f8e5479038790bcf95926a80f8464e580d9a975a1b21
7
+ data.tar.gz: cf01b5ceaaaf5a0321a4250b2790860051c7a784351e85990b288524de7f45fb4458650f5d39b125dcc98e3d7f26b47e8fdfd99f1da28d3dbac0270db1094c28
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
@@ -5,24 +5,19 @@ module OpsManagerUiDrivers
5
5
  @browser = browser
6
6
  end
7
7
 
8
- def add_aws_az(iaas_identifier)
8
+ def add_single_az(iaas_identifier)
9
9
  open_form('availability_zones')
10
10
 
11
11
  set_fields(fields: {'iaas_identifier' => iaas_identifier})
12
+
12
13
  save_form
13
14
  end
14
15
 
15
- def add_az(name, cluster, resource_pool)
16
+ def add_az(fields)
16
17
  open_form('availability_zones')
17
18
 
18
19
  browser.click_on 'Add'
19
- set_fields(
20
- fields: {
21
- 'name' => name,
22
- 'cluster' => cluster,
23
- 'resource_pool' => resource_pool,
24
- }
25
- )
20
+ set_fields(fields: fields)
26
21
  save_form
27
22
  end
28
23
 
@@ -35,12 +35,12 @@ module OpsManagerUiDrivers
35
35
 
36
36
  def add_azs(iaas_type, iaas_availability_zones)
37
37
  case iaas_type
38
- when OpsManagerUiDrivers::AWS_IAAS_TYPE then
38
+ when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE then
39
39
  return unless iaas_availability_zones
40
- availability_zones.add_aws_az(iaas_availability_zones.first['iaas_identifier'])
41
- else
40
+ availability_zones.add_single_az(iaas_availability_zones.first['iaas_identifier'])
41
+ when OpsManagerUiDrivers::VSPHERE_IAAS_TYPE
42
42
  iaas_availability_zones && iaas_availability_zones.each do |az|
43
- availability_zones.add_az(az['name'], az['cluster'], az['resource_pool'])
43
+ availability_zones.add_az('name' => az['name'], 'cluster' => az['cluster'], 'resource_pool' => az['resource_pool'])
44
44
  end
45
45
  end
46
46
  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.1
4
+ version: 0.9.2
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-12 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.2.3
222
+ rubygems_version: 2.4.7
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Capybara helpers for configuring Pivotal Ops Manager