kensa 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/heroku/kensa/check.rb +3 -3
- data/lib/heroku/kensa/version.rb +1 -1
- data/test/provision_response_check_test.rb +6 -6
- 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: 1f3341da6fec38c8fd72e0f4192510f8376c45ab
|
4
|
+
data.tar.gz: 68bc64b52d8723f8bee3ea20ff76fd9beff0f5db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a6ff9a9516ebdee3906b1dff0e7e1ca09975a734cb6eb3589182e64dba2bc37a7b9b60f423bd8eb508c4d940406f1054c9da008eb743fbc31c0f037368f990
|
7
|
+
data.tar.gz: bc900564a79f32a590338988b611796a3acb23e8fafeb22ec6bd2c51c302c8b9a82cac1f1d668abfa62c01b8a68ed733a85eea663ada44e4f584b03a5e77227a
|
data/Gemfile.lock
CHANGED
data/lib/heroku/kensa/check.rb
CHANGED
@@ -234,13 +234,13 @@ module Heroku
|
|
234
234
|
end
|
235
235
|
end
|
236
236
|
|
237
|
-
check "
|
237
|
+
check "log_drain_url is returned if required" do
|
238
238
|
return true unless api_requires?("syslog_drain")
|
239
239
|
|
240
|
-
drain_url = response['
|
240
|
+
drain_url = response['log_drain_url']
|
241
241
|
|
242
242
|
if !drain_url || drain_url.empty?
|
243
|
-
error "must return a
|
243
|
+
error "must return a log_drain_url"
|
244
244
|
else
|
245
245
|
true
|
246
246
|
end
|
data/lib/heroku/kensa/version.rb
CHANGED
@@ -83,18 +83,18 @@ class ProvisionResponseCheckTest < Test::Unit::TestCase
|
|
83
83
|
@data["api"]["requires"] = ["syslog_drain"]
|
84
84
|
end
|
85
85
|
|
86
|
-
test "response is invalid without a
|
87
|
-
@response['
|
86
|
+
test "response is invalid without a log_drain_url" do
|
87
|
+
@response['log_drain_url'] = ''
|
88
88
|
assert_invalid
|
89
89
|
end
|
90
90
|
|
91
|
-
test "response is invalid if
|
92
|
-
@response['
|
91
|
+
test "response is invalid if log_drain_url is invalid" do
|
92
|
+
@response['log_drain_url'] = 'ftp://host.example.com'
|
93
93
|
assert_invalid
|
94
94
|
end
|
95
95
|
|
96
|
-
test "response is valid with a
|
97
|
-
@response['
|
96
|
+
test "response is valid with a log_drain_url" do
|
97
|
+
@response['log_drain_url'] = 'syslog://log.example.com:9999'
|
98
98
|
assert_valid
|
99
99
|
end
|
100
100
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kensa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: launchy
|