ops_manager_ui_drivers 2.9.6 → 2.10.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb50b3d2f017e0ff0b42a186f7fe286ddd44738
|
4
|
+
data.tar.gz: 550c813ea3f3659256afcbf16aa1ac5679d5e02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6708b73449f155e7915dc7b6124e5e9db13c6f1401123ef25a09ff984990137352aa48a92db20889b16f3cb226253d024dabd59342f990886e55f62db23dc9e
|
7
|
+
data.tar.gz: ed23dcf96496c03abeae8d260c68adbb8fad6a837e8f1e11367c5d132c604e66ae6d1d7821800b10f60cea14a1f884576a877141b3f7e3a3b257f1371611a8ec
|
@@ -4,7 +4,7 @@ module OpsManagerUiDrivers
|
|
4
4
|
module Version17
|
5
5
|
class OpsManagerDirector
|
6
6
|
def initialize(browser:, iaas_configuration: Version17::BoshProductSections::IaasConfiguration.new(browser: browser))
|
7
|
-
@browser
|
7
|
+
@browser = browser
|
8
8
|
@iaas_configuration = iaas_configuration
|
9
9
|
end
|
10
10
|
|
@@ -23,8 +23,8 @@ module OpsManagerUiDrivers
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def configure_iaas(test_settings)
|
26
|
-
iaas_settings
|
27
|
-
iaas_specific_fields
|
26
|
+
iaas_settings = Settings.for(test_settings)
|
27
|
+
iaas_specific_fields = iaas_settings.iaas_configuration_fields
|
28
28
|
advanced_infrastructure_config_fields = iaas_settings.advanced_infrastructure_config_fields
|
29
29
|
iaas_configuration.fill_iaas_settings(iaas_specific_fields)
|
30
30
|
advanced_infrastructure_config.fill_advanced_infrastructure_config_settings(advanced_infrastructure_config_fields)
|
@@ -49,8 +49,8 @@ module OpsManagerUiDrivers
|
|
49
49
|
|
50
50
|
iaas_networks && iaas_networks.each do |network|
|
51
51
|
networks.add_network(
|
52
|
-
name:
|
53
|
-
subnets:
|
52
|
+
name: network['name'],
|
53
|
+
subnets: network['subnets'],
|
54
54
|
)
|
55
55
|
end
|
56
56
|
end
|
@@ -1,8 +1,83 @@
|
|
1
1
|
require 'ops_manager_ui_drivers/version17/ops_manager_director'
|
2
|
+
using OpsManagerUiDrivers::BackportRefinements
|
2
3
|
|
3
4
|
module OpsManagerUiDrivers
|
4
5
|
module Version18
|
5
6
|
class OpsManagerDirector < Version17::OpsManagerDirector
|
7
|
+
def initialize(browser:, iaas_configuration: Version18::BoshProductSections::IaasConfiguration.new(browser: browser))
|
8
|
+
@browser = browser
|
9
|
+
@iaas_configuration = iaas_configuration
|
10
|
+
end
|
11
|
+
|
12
|
+
def configure_iaas(test_settings)
|
13
|
+
iaas_settings = Settings.for(test_settings)
|
14
|
+
iaas_specific_fields = iaas_settings.iaas_configuration_fields
|
15
|
+
advanced_infrastructure_config_fields = iaas_settings.advanced_infrastructure_config_fields
|
16
|
+
iaas_configuration.fill_iaas_settings(iaas_specific_fields)
|
17
|
+
advanced_infrastructure_config.fill_advanced_infrastructure_config_settings(advanced_infrastructure_config_fields)
|
18
|
+
end
|
19
|
+
|
20
|
+
def config_director(ops_manager)
|
21
|
+
browser.visit '/'
|
22
|
+
browser.click_on 'show-p-bosh-configure-action'
|
23
|
+
|
24
|
+
browser.click_on 'show-director_configuration-action'
|
25
|
+
|
26
|
+
|
27
|
+
browser.fill_in('director_configuration[ntp_servers_string]', with: ops_manager.dig('ntp_servers'))
|
28
|
+
browser.check('Enable VM Resurrector Plugin') if ops_manager.dig('resurrector_enabled')
|
29
|
+
|
30
|
+
s3_blobstore = ops_manager.dig('s3_blobstore')
|
31
|
+
if s3_blobstore
|
32
|
+
browser.choose('S3 Compatible Blobstore')
|
33
|
+
browser.fill_in('director_configuration[s3_blobstore_options][endpoint]', with: s3_blobstore.dig('endpoint'))
|
34
|
+
browser.fill_in('director_configuration[s3_blobstore_options][bucket_name]', with: s3_blobstore.dig('bucket_name'))
|
35
|
+
browser.fill_in('director_configuration[s3_blobstore_options][access_key]', with: s3_blobstore.dig('access_key_id'))
|
36
|
+
@browser.execute_script "$('a[data-masked-input-name=\"director_configuration[s3_blobstore_options][secret_key]\"]:contains(\"Change\")').click()"
|
37
|
+
browser.fill_in('director_configuration[s3_blobstore_options][secret_key]', with: s3_blobstore.dig('secret_access_key'))
|
38
|
+
|
39
|
+
signature_version = s3_blobstore.dig('signature_version')
|
40
|
+
if signature_version == 4
|
41
|
+
browser.choose('V4 Signature')
|
42
|
+
browser.fill_in('director_configuration[s3_blobstore_options][region]', with: s3_blobstore.dig('region'))
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
mysql = ops_manager.dig('mysql')
|
47
|
+
if mysql
|
48
|
+
browser.choose('External MySQL Database')
|
49
|
+
browser.fill_in('director_configuration[external_database_options][host]', with: mysql.dig('host'))
|
50
|
+
browser.fill_in('director_configuration[external_database_options][port]', with: mysql.dig('port'))
|
51
|
+
browser.fill_in('director_configuration[external_database_options][user]', with: mysql.dig('user'))
|
52
|
+
@browser.execute_script "$('a[data-masked-input-name=\"director_configuration[external_database_options][password]\"]:contains(\"Change\")').click()"
|
53
|
+
browser.fill_in('director_configuration[external_database_options][password]', with: mysql.dig('password'))
|
54
|
+
browser.fill_in('director_configuration[external_database_options][database]', with: mysql.dig('dbname'))
|
55
|
+
end
|
56
|
+
|
57
|
+
save_form
|
58
|
+
end
|
59
|
+
|
60
|
+
def save_form(validate: true)
|
61
|
+
browser.click_on 'Save'
|
62
|
+
|
63
|
+
fail('unexpected failure') unless browser.has_css?('.flash-message')
|
64
|
+
|
65
|
+
if validate
|
66
|
+
fail(browser.find('.flash-message.error').text) unless browser.has_css?('.flash-message.success')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def advanced_infrastructure_config
|
71
|
+
@advanced_infrastructure_config ||= Version18::BoshProductSections::AdvancedInfrastructureConfig.new(browser: browser)
|
72
|
+
end
|
73
|
+
|
74
|
+
def availability_zones
|
75
|
+
@availability_zones ||= Version18::BoshProductSections::AvailabilityZones.new(browser: browser)
|
76
|
+
end
|
77
|
+
|
78
|
+
def networks
|
79
|
+
@networks ||= Version18::BoshProductSections::Networks.new(browser: browser)
|
80
|
+
end
|
6
81
|
end
|
7
82
|
end
|
8
83
|
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.
|
4
|
+
version: 2.10.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-03-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
314
|
rubyforge_project:
|
315
|
-
rubygems_version: 2.
|
315
|
+
rubygems_version: 2.5.1
|
316
316
|
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: Capybara helpers for configuring Pivotal Ops Manager
|