sensu-settings 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensu/settings/validators/check.rb +1 -1
- data/sensu-settings.gemspec +1 -1
- data/spec/loader_spec.rb +1 -1
- data/spec/validator_spec.rb +1 -1
- 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: 365f93ccdb13c600eb978fd62feae6253b2b4647
|
4
|
+
data.tar.gz: bbaba4c2380b990a7d36eac82b0f8f5d4f7b18e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed41c6a0c689f47259cd2d446225f913b2302c56a3a6f077880c978cb0983deca7b22a45edae2119d2cb9662b7dcd67050d38ae499eaa3ef745cb3ce01dcecc3
|
7
|
+
data.tar.gz: a79fd4c4779b0ec8bba923d41b6049f93c28205d4eba8ddf9bf3ab523d6ff1d74e52802f7903e6fe00edbc09abc4c6d4f58e7634af24fe8ac16c55daeb676bf7
|
@@ -50,7 +50,7 @@ module Sensu
|
|
50
50
|
invalid(check, "check publish must be boolean")
|
51
51
|
unless check[:publish] == false
|
52
52
|
(must_be_an_integer(check[:interval]) && check[:interval] > 0) ||
|
53
|
-
invalid(check, "check interval must be an integer")
|
53
|
+
invalid(check, "check interval must be an integer greater than 0")
|
54
54
|
end
|
55
55
|
must_be_boolean_if_set(check[:standalone]) ||
|
56
56
|
invalid(check, "check standalone must be boolean")
|
data/sensu-settings.gemspec
CHANGED
data/spec/loader_spec.rb
CHANGED
@@ -102,7 +102,7 @@ describe "Sensu::Settings::Loader" do
|
|
102
102
|
reasons = failures.map do |failure|
|
103
103
|
failure[:message]
|
104
104
|
end
|
105
|
-
expect(reasons).to include("check interval must be an integer")
|
105
|
+
expect(reasons).to include("check interval must be an integer greater than 0")
|
106
106
|
end
|
107
107
|
|
108
108
|
it "can attempt to load settings from a nonexistent file" do
|
data/spec/validator_spec.rb
CHANGED
@@ -104,7 +104,7 @@ describe "Sensu::Settings::Validator" do
|
|
104
104
|
end
|
105
105
|
expect(reasons).to include("check name cannot contain spaces or special characters")
|
106
106
|
expect(reasons).to include("either check command or extension must be set")
|
107
|
-
expect(reasons).to include("check interval must be an integer")
|
107
|
+
expect(reasons).to include("check interval must be an integer greater than 0")
|
108
108
|
expect(reasons).to include("check subscribers must be an array")
|
109
109
|
expect(reasons.size).to eq(5)
|
110
110
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-json
|