ops_manager_ui_drivers 2.13.1 → 2.14.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: 3eab1de841a33761056e9920246e82b2f7632332
4
- data.tar.gz: db45a1dafbe2777eea191cec40756977a63b06d1
3
+ metadata.gz: 138a635cba4ffc29c6d79eabb825e317bf45f531
4
+ data.tar.gz: 56d7d06f646a456aa447dd27e9f2f114f418c710
5
5
  SHA512:
6
- metadata.gz: feeb5ebcc00945296d1eedb02cb367d9d8a3a2cd3a3d9907662c26e83a485b4cf725d291cb7bb589118c8d79235139c1f17b93ff34746f32d2b4c66b6b2ebfda
7
- data.tar.gz: b47f59b2ac70bbc41f325b010e070be3cdc5292c7640e345340f5d4199de548c3b680e4fd13dc75da81a469bb2e04367f17cdc8a83b99f56a688422d5b5ff797
6
+ metadata.gz: 41d81330191ceec3013bf2aa2741c9ff81e0a092db877bbe21aba48799161e8f00626fabdbeb26ad6683d9ac4bf89b5518610920b0747211c6fad96d6132df77
7
+ data.tar.gz: 54fff804e22e1198e4780e8d7c5fc72c49fb5a54ef7eca53bca5f714598df5388c154a97c5b513621db96e0dc2d90947e41611ea430ae2c48398e1f89b580284
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.13.1'
2
+ VERSION = '2.14.0'
3
3
  end
@@ -11,6 +11,29 @@ module OpsManagerUiDrivers
11
11
  browser.find(:css, "[id^='add-#{product_name}-']").click
12
12
  end
13
13
  end
14
+
15
+ def delete_unused_product(product_name, product_version=nil)
16
+ browser.visit '/'
17
+ disable_css_transitions!
18
+ if product_version
19
+ browser.click_on "delete-#{product_name}-#{product_version}"
20
+ else
21
+ browser.find(:css, "[id^='delete-#{product_name}-']").click
22
+ end
23
+ browser.find('#delete_unused_products').trigger('click')
24
+ end
25
+
26
+ def delete_unused_products
27
+ browser.visit '/'
28
+ disable_css_transitions!
29
+ browser.find('#delete_unused_products_modal').trigger('click')
30
+ browser.find('#delete_unused_products').trigger('click')
31
+ end
32
+
33
+ def product_available?(product_name, product_version)
34
+ browser.visit '/'
35
+ browser.all("li.#{product_name} input#product_version[value='#{product_version}']", {visible: false}).any?
36
+ end
14
37
  end
15
38
  end
16
39
  end
@@ -11,16 +11,19 @@ module OpsManagerUiDrivers
11
11
  method_deprecated!
12
12
  end
13
13
 
14
+ def product_available?(product_name, product_version)
15
+ STDERR.puts 'OpsManagerUiDrivers product_dashboard.product_available? is deprecated, please use available_products#product_available?'
16
+ Version18::AvailableProducts.new(browser: browser).product_available?(product_name, product_version)
17
+ end
18
+
14
19
  def upgrade_product(product_name)
15
20
  STDERR.puts 'OpsManagerUiDrivers product_dashboard.upgrade_product is deprecated, please use available_products#add_product_to_install with a product name and version'
16
21
  Version18::AvailableProducts.new(browser: browser).add_product_to_install(product_name, nil)
17
22
  end
18
23
 
19
24
  def delete_unused_products
20
- open_dashboard
21
- disable_css_transitions!
22
- @browser.find('#delete_unused_products_modal').trigger('click')
23
- @browser.find('#delete_unused_products').trigger('click')
25
+ STDERR.puts 'OpsManagerUiDrivers product_dashboard.delete_unused_products is deprecated, please use available_products#delete_unused_products'
26
+ Version18::AvailableProducts.new(browser: browser).delete_unused_products
24
27
  end
25
28
 
26
29
  def reset_state(ops_manager)
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.13.1
4
+ version: 2.14.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-04-26 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport