ops_manager_ui_drivers 2.9.5 → 2.9.6

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: 81472edf97ad30249748d708446f5dfd68a896ea
4
- data.tar.gz: 11c6c423054bab0b7d761aac7a3d551883ca5d40
3
+ metadata.gz: 2f1f13de9b4091e9653389d66913119acfa9ad5b
4
+ data.tar.gz: 6738ff385021db83904a759bb1f749da36e2889b
5
5
  SHA512:
6
- metadata.gz: a0648f83f586a0011f1854ddc1f9ea1bebee6f72d8e1dd098c313b16565804c5900543c18f7d812512098242d66c95d608246f14d49d09ad07eb0ae1e73fdca8
7
- data.tar.gz: ded76b78fffcef7c2f3da6bf199f6f1b12ad401873485c0f83d523df90e614139eb42bcd57071d993db82ad02e2daca706bbb154c6495edfbc1e68afc7482a5b
6
+ metadata.gz: 742b31a2bf27350e4a1b40e28a9020d394b5e738d77fa46fbbe1eb4574e3b8a64d39bbaf641a0c76ea65131d4a21460444f9304ea9293713580c76dba43aa9f5
7
+ data.tar.gz: b0cfc682491ad0f03f95298a1ee4b384df468c312b771ebe65510cb5aa276a4815dd526fb34f412a903e2d45ffefc4b2fbdb194669b83d14f403bf6880c14f0d
data/README.md CHANGED
@@ -22,7 +22,59 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Hypothetical usage example for driving a local Ops Manager instance:
26
+
27
+ ```ruby
28
+ require 'bundler/setup'
29
+ require 'rspec'
30
+ require 'capybara'
31
+ require 'capybara/webkit'
32
+ require 'capybara/dsl'
33
+
34
+ require 'ops_manager_ui_drivers'
35
+
36
+ RSpec.configure do |config|
37
+ config.fail_fast = true
38
+
39
+ Capybara.configure do |c|
40
+ c.default_driver = :webkit
41
+ end
42
+
43
+ Capybara::Webkit.configure do |c|
44
+ c.allow_url('fonts.googleapis.com')
45
+ c.allow_url('localhost')
46
+ end
47
+ end
48
+
49
+ RSpec.describe 'Configuring localhost', order: :defined, type: :integration do
50
+ include Capybara::DSL
51
+ include OpsManagerUiDrivers::PageHelpers
52
+
53
+ let(:current_ops_manager) { om_1_7('http://localhost:3000') }
54
+
55
+ it 'sets the certs' do
56
+ current_ops_manager.setup_page.setup_or_login(
57
+ user: 'admin',
58
+ password: 'password',
59
+ )
60
+
61
+ expect(page).to have_content('Installation Dashboard')
62
+
63
+ configuration = OpsManagerUiDrivers::Version18::ProductConfiguration.new(browser: self, product_name: 'example-product')
64
+ selector_form = configuration.product_form('example_selector_form')
65
+ selector_form.open_form
66
+
67
+ selector_form.fill_in_selector_property(selector_input_reference:'.properties.example_selector', selector_name:'example_selector', selector_value: 'Some Option', sub_field_answers: [])
68
+ selector_form.generate_self_signed_cert(
69
+ '*.example.com',
70
+ '.properties.example_selector.some_option.some_rsa_cert',
71
+ '.properties.example_selector',
72
+ 'some_option'
73
+ )
74
+ selector_form.save_form
75
+ end
76
+ end
77
+ ```
26
78
 
27
79
  ## Development
28
80
 
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.9.5'
2
+ VERSION = '2.9.6'
3
3
  end
@@ -58,6 +58,16 @@ module OpsManagerUiDrivers
58
58
  end
59
59
  end
60
60
 
61
+ def most_recent_install_log
62
+ browser.visit '/change_log'
63
+
64
+ browser.poll_up_to_mins(1) do
65
+ base_url = browser.first('table#change-log tbody tr td a')[:href]
66
+ browser.visit "#{base_url}.text"
67
+ browser.source
68
+ end
69
+ end
70
+
61
71
  private
62
72
 
63
73
  def check_errands(errands)
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.5
4
+ version: 2.9.6
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-25 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport