sumo-check-sumo 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 112cb2226a300e089439d8daeea12a392ce17960
|
|
4
|
+
data.tar.gz: 32087d2c4179717924be8c6a1cc8978f834d9f7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0202a5df226ab4766707cbece2df89626c0412a6859bb4d9c7d6112d79e1a0b693301e4e02308d662addc18de3354f6321595c2590008302184fe444c3086870
|
|
7
|
+
data.tar.gz: 7ba75bc84d12f2e78b46ff76bd3332ede2f53763e481fcfe483c92c72a567acfd27928fdd3b227f8abed2d5c445c0621fd4ef3c1705bbd7aa9c8975f8ba980cf
|
|
@@ -29,12 +29,12 @@ class SensuSumoBasicClientTest < Sensu::Plugin::Check::CLI
|
|
|
29
29
|
def run
|
|
30
30
|
Selenium::WebDriver::Chrome.driver_path = config[:chromedriver]
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
args = ['--disable-popup-blocking', '--disable-translate']
|
|
34
33
|
if config[:interactive]
|
|
35
|
-
browser = Watir::Browser.new :chrome, options: {args: args}, headless: false
|
|
34
|
+
browser = Watir::Browser.new :chrome, options: {args: args}, headless: false, chromeOptions: {debuggerAddress: '127.0.0.1:8000'}
|
|
36
35
|
else
|
|
37
|
-
browser = Watir::Browser.new :chrome, options: {args: args}, headless: true
|
|
36
|
+
browser = Watir::Browser.new :chrome, options: {args: args}, headless: true, chromeOptions: {debuggerAddress: '127.0.0.1:8000'}
|
|
37
|
+
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
browser.goto config[:server]
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# gem "webdrivers", "~> 3.0"
|
|
3
3
|
require 'watir'
|
|
4
|
-
require 'webdrivers'
|
|
5
4
|
require 'sensu-plugin/check/cli'
|
|
6
5
|
|
|
7
6
|
class SensuSumoLoginLogoutTest < Sensu::Plugin::Check::CLI
|
|
@@ -12,6 +11,12 @@ class SensuSumoLoginLogoutTest < Sensu::Plugin::Check::CLI
|
|
|
12
11
|
:default => 'http://sumo.com',
|
|
13
12
|
:description => "webserver to run our test on"
|
|
14
13
|
|
|
14
|
+
option :chromedriver,
|
|
15
|
+
:short => "-c /usr/local/bin/chromedriver",
|
|
16
|
+
:long => "--chrome /usr/local/bin/chromedriver",
|
|
17
|
+
:default => '/usr/local/bin/chromedriver',
|
|
18
|
+
:description => "chromedriver location"
|
|
19
|
+
|
|
15
20
|
option :email,
|
|
16
21
|
:short => "-e email",
|
|
17
22
|
:long => "--email bob@smith.com",
|
|
@@ -38,6 +43,8 @@ class SensuSumoLoginLogoutTest < Sensu::Plugin::Check::CLI
|
|
|
38
43
|
|
|
39
44
|
|
|
40
45
|
def run
|
|
46
|
+
Selenium::WebDriver::Chrome.driver_path = config[:chromedriver]
|
|
47
|
+
|
|
41
48
|
|
|
42
49
|
args = ['--disable-popup-blocking', '--disable-translate']
|
|
43
50
|
if config[:interactive]
|