ops_manager_ui_drivers 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version14/state_change_progress.rb +2 -4
- data/lib/ops_manager_ui_drivers/version15/state_change_progress.rb +2 -4
- data/lib/ops_manager_ui_drivers/version16/state_change_progress.rb +2 -4
- data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/networks.rb +6 -3
- data/lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb +16 -8
- data/lib/ops_manager_ui_drivers/version17/ops_manager_director.rb +4 -6
- data/lib/ops_manager_ui_drivers/version17/state_change_progress.rb +2 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fd75785a8372387e4763f9410bb51c718a50e98
|
4
|
+
data.tar.gz: 4bbeafd6bedfea8196569741b158939ad02668a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77ffbcc1d25af238434c74f77b679ab56005ca2592b3aadae2ad56f37439694ac172be59a4fb17e52839982463d2b5d97a8a76ec64e05c61b3ccc31fab13d0d2
|
7
|
+
data.tar.gz: e5c613b9a88aaafe54e16585e5c48b2531b2f7d354e6c9cc414b241920ee89eb577f9b58e40e762dfc9c8d58c5d415305db6a28d97709e7a4bec3ec57554f221
|
data/.rubocop.yml
ADDED
@@ -25,6 +25,8 @@ module OpsManagerUiDrivers
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
+
attr_reader :browser
|
29
|
+
|
28
30
|
def open_install_progress
|
29
31
|
browser.visit '/install' unless install_progress_open?
|
30
32
|
browser.fail_early('Install probably aborted immediately') unless install_progress_open?
|
@@ -34,10 +36,6 @@ module OpsManagerUiDrivers
|
|
34
36
|
def install_progress_open?
|
35
37
|
browser.current_path =~ %r(^/+install)
|
36
38
|
end
|
37
|
-
|
38
|
-
private
|
39
|
-
|
40
|
-
attr_reader :browser
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -25,6 +25,8 @@ module OpsManagerUiDrivers
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
+
attr_reader :browser
|
29
|
+
|
28
30
|
def open_install_progress
|
29
31
|
browser.visit '/install' unless install_progress_open?
|
30
32
|
browser.fail_early('Install probably aborted immediately') unless install_progress_open?
|
@@ -34,10 +36,6 @@ module OpsManagerUiDrivers
|
|
34
36
|
def install_progress_open?
|
35
37
|
browser.current_path =~ %r(^/+install)
|
36
38
|
end
|
37
|
-
|
38
|
-
private
|
39
|
-
|
40
|
-
attr_reader :browser
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -25,6 +25,8 @@ module OpsManagerUiDrivers
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
+
attr_reader :browser
|
29
|
+
|
28
30
|
def open_install_progress
|
29
31
|
browser.visit '/install' unless install_progress_open?
|
30
32
|
browser.fail_early('Install probably aborted immediately') unless install_progress_open?
|
@@ -34,10 +36,6 @@ module OpsManagerUiDrivers
|
|
34
36
|
def install_progress_open?
|
35
37
|
browser.current_path =~ %r(^/+install)
|
36
38
|
end
|
37
|
-
|
38
|
-
private
|
39
|
-
|
40
|
-
attr_reader :browser
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -10,14 +10,17 @@ module OpsManagerUiDrivers
|
|
10
10
|
@bosh_product_form_section = BoshProductFormSection.new(@browser, 'network_collection[networks_attributes][0]')
|
11
11
|
end
|
12
12
|
|
13
|
-
def add_network(name:,
|
13
|
+
def add_network(name:, subnets:)
|
14
14
|
@bosh_product_form_section.open_form('network')
|
15
15
|
|
16
16
|
@browser.click_on 'Add Network'
|
17
17
|
@bosh_product_form_section.set_fields('name' => name)
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
subnets.each_with_index do |subnet, index|
|
20
|
+
subnet_section = Subnet.new(browser: @browser, network_form: @bosh_product_form_section, subnet_index: index)
|
21
|
+
subnet_section.add_subnet(**subnet.symbolize_keys)
|
22
|
+
end
|
23
|
+
|
21
24
|
|
22
25
|
@browser.click_on 'Save'
|
23
26
|
@browser.expect(@browser.page).to @browser.have_css(FLASH_MESSAGE_CLASS)
|
@@ -5,20 +5,28 @@ module OpsManagerUiDrivers
|
|
5
5
|
FLASH_MESSAGE_CLASS = '.flash-message'.freeze
|
6
6
|
FLASH_MESSAGE_ERRORS = '.flash-message.error ul.message li'.freeze
|
7
7
|
|
8
|
-
def initialize(browser:, network_form:)
|
8
|
+
def initialize(browser:, network_form:, subnet_index:)
|
9
9
|
@browser = browser
|
10
|
-
@
|
10
|
+
@subnet_index = subnet_index
|
11
|
+
@subnet_form_section =
|
12
|
+
BoshProductFormSection.new(@browser, "#{network_form.field_prefix}[subnets][#{subnet_index}]")
|
11
13
|
end
|
12
14
|
|
13
|
-
def add_subnet(
|
14
|
-
@
|
15
|
-
|
16
|
-
|
15
|
+
def add_subnet(identifier:, cidr:, dns:, gateway:, reserved_ips:, availability_zones:)
|
16
|
+
@browser.click_on 'Add Subnet' if @subnet_index > 0
|
17
|
+
|
18
|
+
@subnet_form_section.set_fields(
|
19
|
+
'iaas_identifier' => identifier,
|
20
|
+
'cidr' => cidr,
|
17
21
|
'dns' => dns,
|
18
22
|
'gateway' => gateway,
|
19
|
-
'reserved_ip_ranges' =>
|
23
|
+
'reserved_ip_ranges' => reserved_ips,
|
20
24
|
)
|
21
|
-
|
25
|
+
|
26
|
+
availability_zones.each do |availability_zone|
|
27
|
+
@browser.
|
28
|
+
find(:xpath, %Q{//label/input[contains(@name, "#{@subnet_form_section.field_prefix}[availability_zone_references]")]/..}, text: availability_zone).click
|
29
|
+
end
|
22
30
|
end
|
23
31
|
end
|
24
32
|
end
|
@@ -34,7 +34,9 @@ module OpsManagerUiDrivers
|
|
34
34
|
case iaas_type
|
35
35
|
when OpsManagerUiDrivers::AWS_IAAS_TYPE, OpsManagerUiDrivers::OPENSTACK_IAAS_TYPE
|
36
36
|
return unless iaas_availability_zones
|
37
|
-
|
37
|
+
iaas_availability_zones && iaas_availability_zones.each do |az|
|
38
|
+
availability_zones.add_az('iaas_identifier' => az['iaas_identifier'])
|
39
|
+
end
|
38
40
|
when OpsManagerUiDrivers::VSPHERE_IAAS_TYPE
|
39
41
|
iaas_availability_zones && iaas_availability_zones.each do |az|
|
40
42
|
availability_zones.add_az('name' => az['name'], 'cluster' => az['cluster'], 'resource_pool' => az['resource_pool'])
|
@@ -48,11 +50,7 @@ module OpsManagerUiDrivers
|
|
48
50
|
iaas_networks && iaas_networks.each do |network|
|
49
51
|
networks.add_network(
|
50
52
|
name: network['name'],
|
51
|
-
|
52
|
-
subnet: network['subnet'],
|
53
|
-
reserved_ip_ranges: network['reserved_ips'],
|
54
|
-
dns: network['dns'],
|
55
|
-
gateway: network['gateway'],
|
53
|
+
subnets: network['subnets'],
|
56
54
|
)
|
57
55
|
end
|
58
56
|
end
|
@@ -25,6 +25,8 @@ module OpsManagerUiDrivers
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
+
attr_reader :browser
|
29
|
+
|
28
30
|
def open_install_progress
|
29
31
|
browser.visit '/install' unless install_progress_open?
|
30
32
|
browser.fail_early('Install probably aborted immediately') unless install_progress_open?
|
@@ -34,10 +36,6 @@ module OpsManagerUiDrivers
|
|
34
36
|
def install_progress_open?
|
35
37
|
browser.current_path =~ %r(^/+install)
|
36
38
|
end
|
37
|
-
|
38
|
-
private
|
39
|
-
|
40
|
-
attr_reader :browser
|
41
39
|
end
|
42
40
|
end
|
43
41
|
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: 2.1.
|
4
|
+
version: 2.1.5
|
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-
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -173,6 +173,7 @@ extra_rdoc_files: []
|
|
173
173
|
files:
|
174
174
|
- ".gitignore"
|
175
175
|
- ".rspec"
|
176
|
+
- ".rubocop.yml"
|
176
177
|
- ".ruby-version"
|
177
178
|
- ".travis.yml"
|
178
179
|
- Gemfile
|
@@ -298,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
299
|
version: '0'
|
299
300
|
requirements: []
|
300
301
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.
|
302
|
+
rubygems_version: 2.5.1
|
302
303
|
signing_key:
|
303
304
|
specification_version: 4
|
304
305
|
summary: Capybara helpers for configuring Pivotal Ops Manager
|