easymon 1.0.7 → 1.0.8
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.
Potentially problematic release.
This version of easymon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/controllers/easymon/checks_controller.rb +6 -5
- data/lib/easymon/checklist.rb +11 -2
- data/lib/easymon/result.rb +6 -4
- data/lib/easymon/version.rb +1 -1
- data/test/dummy/log/development.log +733 -0
- data/test/dummy/log/test.log +2589 -0
- data/test/dummy/tmp/cache/4D4/7A0/health_check +1 -0
- data/test/unit/checklist_test.rb +8 -3
- metadata +8 -2
@@ -0,0 +1 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry:@valuei:@created_atf1401231329.7472908:@expires_in0
|
data/test/unit/checklist_test.rb
CHANGED
@@ -29,11 +29,16 @@ class ChecklistTest < ActiveSupport::TestCase
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
test "#
|
32
|
+
test "#timing is a sum of all check results" do
|
33
33
|
checklist = Easymon::Repository.all
|
34
|
+
# Fake some results
|
35
|
+
checklist.results = %w(one two three).inject({}) do |hash, name|
|
36
|
+
timing = 1.2
|
37
|
+
hash[name] = Easymon::Result.new([name, "dummy message"], timing)
|
38
|
+
hash
|
39
|
+
end
|
34
40
|
|
35
|
-
checklist.
|
36
|
-
assert_equal "[{\"success\":true,\"message\":\"Up\",\"name\":\"database\"},{\"success\":true,\"message\":\"Up\",\"name\":\"redis\"},{\"success\":true,\"message\":\"Up\",\"name\":\"memcached\"}]", checklist.to_json
|
41
|
+
assert_in_delta 3.6, checklist.timing, 0.01
|
37
42
|
end
|
38
43
|
|
39
44
|
test "#response_status returns :ok when all checks pass" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easymon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Anderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -178,11 +178,14 @@ files:
|
|
178
178
|
- test/dummy/config/memcached.yml
|
179
179
|
- test/dummy/config/redis.yml
|
180
180
|
- test/dummy/config/routes.rb
|
181
|
+
- test/dummy/log/development.log
|
182
|
+
- test/dummy/log/test.log
|
181
183
|
- test/dummy/public/404.html
|
182
184
|
- test/dummy/public/422.html
|
183
185
|
- test/dummy/public/500.html
|
184
186
|
- test/dummy/public/favicon.ico
|
185
187
|
- test/dummy/script/rails
|
188
|
+
- test/dummy/tmp/cache/4D4/7A0/health_check
|
186
189
|
- test/helpers/easymon/checks_helper_test.rb
|
187
190
|
- test/integration/navigation_test.rb
|
188
191
|
- test/test_helper.rb
|
@@ -252,6 +255,8 @@ test_files:
|
|
252
255
|
- test/dummy/config/redis.yml
|
253
256
|
- test/dummy/config/routes.rb
|
254
257
|
- test/dummy/config.ru
|
258
|
+
- test/dummy/log/development.log
|
259
|
+
- test/dummy/log/test.log
|
255
260
|
- test/dummy/public/404.html
|
256
261
|
- test/dummy/public/422.html
|
257
262
|
- test/dummy/public/500.html
|
@@ -259,6 +264,7 @@ test_files:
|
|
259
264
|
- test/dummy/Rakefile
|
260
265
|
- test/dummy/README.rdoc
|
261
266
|
- test/dummy/script/rails
|
267
|
+
- test/dummy/tmp/cache/4D4/7A0/health_check
|
262
268
|
- test/helpers/easymon/checks_helper_test.rb
|
263
269
|
- test/integration/navigation_test.rb
|
264
270
|
- test/test_helper.rb
|