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 +4 -4
- data/README.md +53 -1
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version17/product_dashboard.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f1f13de9b4091e9653389d66913119acfa9ad5b
|
4
|
+
data.tar.gz: 6738ff385021db83904a759bb1f749da36e2889b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
@@ -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.
|
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-
|
11
|
+
date: 2016-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|