ops_manager_ui_drivers 2.26.0 → 2.27.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: 1898a0de3f07573558c1a9bb0a87dbdf2c8d45a7
4
- data.tar.gz: 223d166492c6996582753f96aa4f255005d5bf96
3
+ metadata.gz: 47caad323b3b3f14bbccda671f0695c4f63f2527
4
+ data.tar.gz: d21608163c229d5954ccd66430097aefbf6d97ad
5
5
  SHA512:
6
- metadata.gz: 9206c9d5597e84544a6d89a3fc8762352fe3c3b8274d611953599f918c5bb5b8cced11c76f58ada572741c36cf1fba1bff5b61298c47c1aea4956fa02c982b2f
7
- data.tar.gz: 045fbefd9f48e1122fc30b5ce8bf5ad61b5e0611e053ac251f82c07c5757b73da53c08d416a673bd540e55a2e378bfdb2ea9a7816d66b610e1fb1af8aa0ac098
6
+ metadata.gz: 4402b7e5994408430c439f9708f4fc2cdaf1300da6fe2d2f34ac3c03c0fe7557955647a329d4613515790289d38b044a278fd1d758c8e77a3bb45c56e25c5f20
7
+ data.tar.gz: c70d26f936b2c730a29b5915667663eec084a384a52eb46389ebdd16fa8434a05a7cb95970f945b9a902f818468323e673184d467c0b934d03b024aba75b84d8
@@ -12,4 +12,5 @@ module OpsManagerUiDrivers
12
12
  VCLOUD_IAAS_TYPE = 'vcloud'.freeze
13
13
  VSPHERE_IAAS_TYPE = 'vsphere'.freeze
14
14
  GOOGLE_IAAS_TYPE = 'google'.freeze
15
+ AZURE_IAAS_TYPE = 'azure'.freeze
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.26.0'
2
+ VERSION = '2.27.0'
3
3
  end
@@ -151,49 +151,6 @@ module OpsManagerUiDrivers
151
151
  }
152
152
  end
153
153
  end
154
-
155
- class Google
156
- def self.works_with?(iaas_type)
157
- iaas_type == 'google'
158
- end
159
-
160
- def initialize(test_settings)
161
- @test_settings = test_settings
162
- end
163
-
164
- def iaas_configuration_fields
165
- {
166
- 'project' => @test_settings.dig('ops_manager', 'google', 'project'),
167
- 'region' => @test_settings.dig('ops_manager', 'google', 'region'),
168
- 'ssh_private_key' => @test_settings.dig('ops_manager', 'google', 'ssh_private_key'),
169
- }
170
- end
171
-
172
- def advanced_infrastructure_config_fields
173
- {
174
- }
175
- end
176
- end
177
-
178
- class Azure
179
- def self.works_with?(iaas_type)
180
- iaas_type == 'azure'
181
- end
182
-
183
- def initialize(test_settings)
184
- @test_settings = test_settings
185
- end
186
-
187
- def iaas_configuration_fields
188
- {
189
- }
190
- end
191
-
192
- def advanced_infrastructure_config_fields
193
- {
194
- }
195
- end
196
- end
197
154
  end
198
155
  end
199
156
  end
@@ -78,6 +78,18 @@ module OpsManagerUiDrivers
78
78
  save_form
79
79
  end
80
80
 
81
+
82
+ def assign_azs_and_networks(iaas_type, iaas_availability_zones, ops_manager)
83
+ case iaas_type
84
+ when OpsManagerUiDrivers::AZURE_IAAS_TYPE
85
+ browser.click_on 'Assign Networks'
86
+ browser.select(ops_manager.dig('networks', 0, 'name'), from: 'Network')
87
+ browser.click_on 'Save'
88
+ else
89
+ super
90
+ end
91
+ end
92
+
81
93
  def save_form(validate: true)
82
94
  browser.click_on 'Save'
83
95
 
@@ -25,10 +25,57 @@ module OpsManagerUiDrivers
25
25
  class OpenStack < Version17::Settings::OpenStack
26
26
  end
27
27
 
28
- class Google < Version17::Settings::Google
28
+ class Google
29
+ def self.works_with?(iaas_type)
30
+ iaas_type == 'google'
31
+ end
32
+
33
+ def initialize(test_settings)
34
+ @test_settings = test_settings
35
+ end
36
+
37
+ def iaas_configuration_fields
38
+ {
39
+ 'project' => @test_settings.dig('ops_manager', 'google', 'project'),
40
+ 'region' => @test_settings.dig('ops_manager', 'google', 'region'),
41
+ 'ssh_private_key' => @test_settings.dig('ops_manager', 'google', 'ssh_private_key'),
42
+ }
43
+ end
44
+
45
+ def advanced_infrastructure_config_fields
46
+ {
47
+ }
48
+ end
29
49
  end
30
50
 
31
- class Azure < Version17::Settings::Azure
51
+ class Azure
52
+ def self.works_with?(iaas_type)
53
+ iaas_type == 'azure'
54
+ end
55
+
56
+ def initialize(test_settings)
57
+ @test_settings = test_settings
58
+ end
59
+
60
+ def iaas_configuration_fields
61
+ {
62
+ 'subscription_id' => @test_settings.dig('ops_manager', 'azure', 'subscription_id'),
63
+ 'tenant_id' => @test_settings.dig('ops_manager', 'azure', 'tenant_id'),
64
+ 'client_id' => @test_settings.dig('ops_manager', 'azure', 'client_id'),
65
+ 'client_secret' => @test_settings.dig('ops_manager', 'azure', 'client_secret'),
66
+ 'resource_group_name' => @test_settings.dig('ops_manager', 'azure', 'resource_group_name'),
67
+ 'bosh_storage_account_name' => @test_settings.dig('ops_manager', 'azure', 'bosh_storage_account_name'),
68
+ 'deployments_storage_account_name' => @test_settings.dig('ops_manager', 'azure', 'deployments_storage_account_name'),
69
+ 'default_security_group' => @test_settings.dig('ops_manager', 'azure', 'default_security_group'),
70
+ 'ssh_public_key' => @test_settings.dig('ops_manager', 'azure', 'ssh_public_key'),
71
+ 'ssh_private_key' => @test_settings.dig('ops_manager', 'azure', 'ssh_private_key'),
72
+ }
73
+ end
74
+
75
+ def advanced_infrastructure_config_fields
76
+ {
77
+ }
78
+ end
32
79
  end
33
80
  end
34
81
  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.26.0
4
+ version: 2.27.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-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport