ops_manager_ui_drivers 2.9.4 → 2.9.5

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: a48ffad8b5d87ea00fb2407b93a09d1f88c94363
4
- data.tar.gz: f8f492e852eeb7b38b868e2d51af28c4e50bf3db
3
+ metadata.gz: 81472edf97ad30249748d708446f5dfd68a896ea
4
+ data.tar.gz: 11c6c423054bab0b7d761aac7a3d551883ca5d40
5
5
  SHA512:
6
- metadata.gz: 04966b107ff3c9df8d05006fa1dd62d5e4eae6e3525763f607eceb62dce94e2ccd7f27360612f582370304fa5218f3561d796e5fa49dc84ba19cf0c4478329de
7
- data.tar.gz: 121549989ce3f8cc48d863fd6083aa733590cbdb299297bf6cab71181a5ff7fc5c4406a74c1bcc177bf15f1132f524a3401e099687aa2de36bf1055721297291
6
+ metadata.gz: a0648f83f586a0011f1854ddc1f9ea1bebee6f72d8e1dd098c313b16565804c5900543c18f7d812512098242d66c95d608246f14d49d09ad07eb0ae1e73fdca8
7
+ data.tar.gz: ded76b78fffcef7c2f3da6bf199f6f1b12ad401873485c0f83d523df90e614139eb42bcd57071d993db82ad02e2daca706bbb154c6495edfbc1e68afc7482a5b
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.9.4'
2
+ VERSION = '2.9.5'
3
3
  end
@@ -23,11 +23,23 @@ module OpsManagerUiDrivers
23
23
  browser.find_field(name)
24
24
  end
25
25
 
26
- def generate_self_signed_cert(wildcard_domain, property_reference)
27
- change_link = browser.first(%Q(a[data-masked-input-name="#{form_name}[#{property_reference}][private_key_pem]"]))
26
+ def generate_self_signed_cert(wildcard_domain, property_reference, selector_property_reference = nil, selector_option_name = nil)
27
+ if selector_property_reference && selector_option_name
28
+ private_key_field_name = "#{form_name}[#{selector_property_reference}][#{selector_option_name}][#{property_reference}][private_key_pem]"
29
+ else
30
+ private_key_field_name = "#{form_name}[#{property_reference}][private_key_pem]"
31
+ end
32
+
33
+ change_link = browser.first(%Q(a[data-masked-input-name="#{private_key_field_name}"]))
28
34
  change_link.click if change_link
29
35
  disable_css_transitions!
30
- browser.click_on 'Generate RSA Certificate'
36
+
37
+ generate_rsa_link = browser.first("textarea[name='#{private_key_field_name}'] + a")
38
+ unless generate_rsa_link
39
+ puts 'Unable to find the Generate RSA Certificate link for the given property. If you are in a selector, please be sure to provide the two optional parameters to this method.'
40
+ end
41
+ generate_rsa_link.click
42
+
31
43
  browser.within '#rsa-certificate-form' do
32
44
  browser.fill_in 'rsa_certificate[domains]', with: wildcard_domain
33
45
  browser.click_on 'save-rsa-certificate-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: 2.9.4
4
+ version: 2.9.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-03-23 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport