sensu-settings 0.0.6 → 0.0.7
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/transport.rb +0 -2
- data/sensu-settings.gemspec +1 -1
- data/spec/validator_spec.rb +0 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690063711717849124c05c9309e8de85ff2acb18
|
4
|
+
data.tar.gz: d428097e014e10a55908740b4e674845ca3f629c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd127578469e2dfd40ba961e7a5424ac4d226fab9de7fe5648675070817a4929f400ff3edf9735543827ae665732e18c350c09cd6fe8a40ea2331618213090a9
|
7
|
+
data.tar.gz: eb0d64cedec2802613cc59b9f7d00146f83b0904c03b830c51c230e385974baa157118a8c069328bf7554fddbe73ccef9407b9a36f9abd015e3fa3b4d25d6b6c
|
@@ -10,8 +10,6 @@ module Sensu
|
|
10
10
|
if is_a_hash?(transport)
|
11
11
|
must_be_a_string_if_set(transport[:name]) ||
|
12
12
|
invalid(transport, "transport name must be a string")
|
13
|
-
must_be_boolean_if_set(transport[:reconnect_on_error]) ||
|
14
|
-
invalid(transport, "transport reconnect_on_error must be boolean")
|
15
13
|
else
|
16
14
|
invalid(transport, "transport must be a hash")
|
17
15
|
end
|
data/sensu-settings.gemspec
CHANGED
data/spec/validator_spec.rb
CHANGED
@@ -37,12 +37,6 @@ describe "Sensu::Settings::Validator" do
|
|
37
37
|
transport[:name] = "rabbitmq"
|
38
38
|
@validator.validate_transport(transport)
|
39
39
|
@validator.reset.should eq(0)
|
40
|
-
transport[:reconnect_on_error] = 1
|
41
|
-
@validator.validate_transport(transport)
|
42
|
-
@validator.reset.should eq(1)
|
43
|
-
transport[:reconnect_on_error] = false
|
44
|
-
@validator.validate_transport(transport)
|
45
|
-
@validator.reset.should eq(0)
|
46
40
|
end
|
47
41
|
|
48
42
|
it "can run, validating transport" do
|