easymon 1.6.3 → 1.6.4
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 +4 -4
- data/README.md +28 -12
- data/Rakefile +1 -1
- data/app/controllers/easymon/checks_controller.rb +6 -6
- data/config/routes.rb +2 -2
- data/lib/easymon/checklist.rb +7 -7
- data/lib/easymon/checks/active_record_check.rb +5 -5
- data/lib/easymon/checks/active_record_mysql_writeable_check.rb +1 -1
- data/lib/easymon/checks/http_check.rb +6 -6
- data/lib/easymon/checks/memcached_check.rb +6 -6
- data/lib/easymon/checks/multi_active_record_check.rb +52 -0
- data/lib/easymon/checks/redis_check.rb +3 -3
- data/lib/easymon/checks/redis_writeable_check.rb +1 -1
- data/lib/easymon/checks/semaphore_check.rb +6 -6
- data/lib/easymon/checks/split_active_record_check.rb +6 -16
- data/lib/easymon/checks/traffic_enabled_check.rb +2 -2
- data/lib/easymon/engine.rb +1 -1
- data/lib/easymon/repository.rb +5 -5
- data/lib/easymon/result.rb +2 -2
- data/lib/easymon/testing.rb +2 -2
- data/lib/easymon/version.rb +1 -1
- data/lib/easymon.rb +10 -9
- data/test/controllers/easymon/checks_controller_test.rb +10 -11
- data/test/dummy/Rakefile +2 -3
- data/test/dummy/app/assets/stylesheets/application.css +6 -4
- data/test/dummy/app/controllers/application_controller.rb +2 -1
- data/test/dummy/app/jobs/application_job.rb +7 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +22 -9
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/app/views/pwa/manifest.json.erb +22 -0
- data/test/dummy/app/views/pwa/service-worker.js +26 -0
- data/test/dummy/bin/dev +2 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/config/application.rb +22 -50
- data/test/dummy/config/boot.rb +4 -9
- data/test/dummy/config/database.yml +25 -6
- data/test/dummy/config/environment.rb +4 -4
- data/test/dummy/config/environments/development.rb +55 -25
- data/test/dummy/config/environments/production.rb +64 -42
- data/test/dummy/config/environments/test.rb +35 -25
- data/test/dummy/config/initializers/assets.rb +7 -0
- data/test/dummy/config/initializers/content_security_policy.rb +25 -0
- data/test/dummy/config/initializers/easymon.rb +2 -2
- data/test/dummy/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/dummy/config/initializers/inflections.rb +10 -9
- data/test/dummy/config/locales/en.yml +28 -2
- data/test/dummy/config/puma.rb +38 -0
- data/test/dummy/config/redis.yml +5 -6
- data/test/dummy/config/routes.rb +13 -0
- data/test/dummy/config/storage.yml +34 -0
- data/test/dummy/config.ru +4 -2
- data/test/dummy/public/400.html +114 -0
- data/test/dummy/public/404.html +113 -25
- data/test/dummy/public/406-unsupported-browser.html +114 -0
- data/test/dummy/public/422.html +113 -25
- data/test/dummy/public/500.html +113 -24
- data/test/dummy/public/icon.png +0 -0
- data/test/dummy/public/icon.svg +3 -0
- data/test/dummy/tmp/local_secret.txt +1 -0
- data/test/helpers/easymon/checks_helper_test.rb +1 -1
- data/test/integration/navigation_test.rb +1 -2
- data/test/test_helper.rb +3 -3
- data/test/unit/checklist_test.rb +5 -5
- data/test/unit/checks/active_record_check_on_postgresql_test.rb +1 -2
- data/test/unit/checks/active_record_check_test.rb +1 -2
- data/test/unit/checks/active_record_mysql_writeable_check_test.rb +2 -3
- data/test/unit/checks/http_check_test.rb +3 -3
- data/test/unit/checks/memcached_check_test.rb +6 -8
- data/test/unit/checks/multi_active_record_check_test.rb +73 -0
- data/test/unit/checks/redis_check_test.rb +8 -9
- data/test/unit/checks/redis_writeable_check_test.rb +2 -3
- data/test/unit/checks/semaphore_check_test.rb +2 -3
- data/test/unit/checks/split_active_record_check_test.rb +9 -24
- data/test/unit/checks/traffic_enabled_check_test.rb +2 -3
- data/test/unit/repository_test.rb +2 -3
- metadata +99 -75
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/javascripts/easymon.js +0 -2
- data/test/dummy/app/assets/stylesheets/easymon.css +0 -4
- data/test/dummy/app/controllers/easymon_controller.rb +0 -7
- data/test/dummy/app/helpers/easymon_helper.rb +0 -2
- data/test/dummy/app/views/easymon/index.html.erb +0 -2
- data/test/dummy/app/views/easymon/show.html.erb +0 -2
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- /data/test/dummy/{app/assets/config/manifest.js → log/test.log} +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
require "test_helper"
|
|
2
|
+
|
|
3
|
+
class MultiActiveRecordCheckTest < ActiveSupport::TestCase
|
|
4
|
+
test "#run sets success conditions on successful run" do
|
|
5
|
+
primary = ActiveRecord::Base.connection
|
|
6
|
+
primary_replica = Easymon::PrimaryReplica.connection
|
|
7
|
+
other_replica = Easymon::OtherReplica.connection
|
|
8
|
+
|
|
9
|
+
check = Easymon::MultiActiveRecordCheck.new do
|
|
10
|
+
{
|
|
11
|
+
"Primary": primary, "PrimaryReplica": primary_replica, "OtherReplica": other_replica
|
|
12
|
+
}
|
|
13
|
+
end
|
|
14
|
+
results = check.check
|
|
15
|
+
|
|
16
|
+
assert_equal("Primary: Up - PrimaryReplica: Up - OtherReplica: Up", results[1])
|
|
17
|
+
assert_equal(true, results[0])
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
test "#run sets failed conditions when replica is down" do
|
|
21
|
+
primary = ActiveRecord::Base.connection
|
|
22
|
+
primary_replica = Easymon::PrimaryReplica.connection
|
|
23
|
+
other_replica = Easymon::OtherReplica.connection
|
|
24
|
+
|
|
25
|
+
primary_replica.stubs(:active?).raises("boom")
|
|
26
|
+
|
|
27
|
+
check = Easymon::MultiActiveRecordCheck.new do
|
|
28
|
+
{
|
|
29
|
+
"Primary": primary, "PrimaryReplica": primary_replica, "OtherReplica": other_replica
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
results = check.check
|
|
33
|
+
|
|
34
|
+
assert_equal("Primary: Up - PrimaryReplica: Down - OtherReplica: Up", results[1])
|
|
35
|
+
assert_equal(false, results[0])
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
test "#run sets failed conditions when primary is down" do
|
|
39
|
+
primary = ActiveRecord::Base.connection
|
|
40
|
+
primary_replica = Easymon::PrimaryReplica.connection
|
|
41
|
+
other_replica = Easymon::OtherReplica.connection
|
|
42
|
+
|
|
43
|
+
primary.stubs(:active?).raises("boom")
|
|
44
|
+
|
|
45
|
+
check = Easymon::MultiActiveRecordCheck.new do
|
|
46
|
+
{
|
|
47
|
+
"Primary": primary, "PrimaryReplica": primary_replica, "OtherReplica": other_replica
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
results = check.check
|
|
51
|
+
|
|
52
|
+
assert_equal("Primary: Down - PrimaryReplica: Up - OtherReplica: Up", results[1])
|
|
53
|
+
assert_equal(false, results[0])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
test "given nil as a config" do
|
|
57
|
+
check = Easymon::MultiActiveRecordCheck.new { }
|
|
58
|
+
results = check.check
|
|
59
|
+
assert_equal("", results[1])
|
|
60
|
+
assert_equal(false, results[0])
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# This would be done in the host app
|
|
65
|
+
module Easymon
|
|
66
|
+
class PrimaryReplica < ActiveRecord::Base
|
|
67
|
+
establish_connection :primary_replica
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class OtherReplica < ActiveRecord::Base
|
|
71
|
+
establish_connection :other_replica
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class RedisCheckTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "#run sets success conditions on successful run" do
|
|
6
5
|
Redis.any_instance.stubs(:ping).returns("PONG")
|
|
7
6
|
check = create_check
|
|
8
7
|
results = check.check
|
|
9
|
-
|
|
8
|
+
|
|
10
9
|
assert_equal("Up", results[1])
|
|
11
10
|
assert_equal(true, results[0])
|
|
12
11
|
end
|
|
13
|
-
|
|
12
|
+
|
|
14
13
|
test "#run sets failure conditions on a failed run" do
|
|
15
14
|
Redis.any_instance.stubs(:ping).raises("boom")
|
|
16
15
|
check = create_check
|
|
17
16
|
results = check.check
|
|
18
|
-
|
|
17
|
+
|
|
19
18
|
assert_equal("Down", results[1])
|
|
20
19
|
assert_equal(false, results[0])
|
|
21
20
|
end
|
|
22
|
-
|
|
21
|
+
|
|
23
22
|
test "given nil as a config" do
|
|
24
23
|
check = Easymon::RedisCheck.new(nil)
|
|
25
24
|
results = check.check
|
|
26
25
|
assert_equal("Down", results[1])
|
|
27
26
|
assert_equal(false, results[0])
|
|
28
27
|
end
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
|
|
29
|
+
|
|
31
30
|
private
|
|
32
31
|
def create_check
|
|
33
32
|
# Get us a config hash from disk in this case
|
|
34
|
-
Easymon::RedisCheck.new(YAML.load_file(Rails.root.join("config/redis.yml"))[Rails.env].symbolize_keys)
|
|
33
|
+
Easymon::RedisCheck.new(YAML.load_file(Rails.root.join("config/redis.yml"), aliases: true)[Rails.env].symbolize_keys)
|
|
35
34
|
end
|
|
36
35
|
end
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class RedisWriteableCheckTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "#run sets success conditions on successful run" do
|
|
6
5
|
Redis.any_instance.stubs(:set).returns("OK")
|
|
7
6
|
check = create_check
|
|
@@ -23,6 +22,6 @@ class RedisWriteableCheckTest < ActiveSupport::TestCase
|
|
|
23
22
|
private
|
|
24
23
|
def create_check
|
|
25
24
|
# Get us a config hash from disk in this case
|
|
26
|
-
Easymon::RedisWriteableCheck.new(YAML.load_file(Rails.root.join("config/redis.yml"))[Rails.env].symbolize_keys)
|
|
25
|
+
Easymon::RedisWriteableCheck.new(YAML.load_file(Rails.root.join("config/redis.yml"), aliases: true)[Rails.env].symbolize_keys)
|
|
27
26
|
end
|
|
28
27
|
end
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class SemaphoreCheckTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "#run sets success conditions on successful run" do
|
|
6
5
|
check = Easymon::SemaphoreCheck.new("config/redis.yml")
|
|
7
6
|
results = check.check
|
|
@@ -9,7 +8,7 @@ class SemaphoreCheckTest < ActiveSupport::TestCase
|
|
|
9
8
|
assert_equal(true, results[0])
|
|
10
9
|
assert_equal("config/redis.yml is in place!", results[1])
|
|
11
10
|
end
|
|
12
|
-
|
|
11
|
+
|
|
13
12
|
test "#run sets failure conditions on a failed run" do
|
|
14
13
|
check = Easymon::SemaphoreCheck.new("config/file-does-not-exist")
|
|
15
14
|
results = check.check
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class SplitActiveRecordCheckTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "#run sets success conditions on successful run" do
|
|
6
5
|
primary = ActiveRecord::Base.connection
|
|
7
|
-
Easymon::
|
|
8
|
-
replica = Easymon::Base.connection
|
|
6
|
+
replica = Easymon::Replica.connection
|
|
9
7
|
|
|
10
|
-
check = Easymon::SplitActiveRecordCheck.new { [primary, replica] }
|
|
8
|
+
check = Easymon::SplitActiveRecordCheck.new { [ primary, replica ] }
|
|
11
9
|
|
|
12
10
|
results = check.check
|
|
13
11
|
|
|
@@ -17,12 +15,11 @@ class SplitActiveRecordCheckTest < ActiveSupport::TestCase
|
|
|
17
15
|
|
|
18
16
|
test "#run sets failed conditions when replica is down" do
|
|
19
17
|
primary = ActiveRecord::Base.connection
|
|
20
|
-
Easymon::
|
|
21
|
-
replica = Easymon::Base.connection
|
|
18
|
+
replica = Easymon::Replica.connection
|
|
22
19
|
|
|
23
20
|
replica.stubs(:active?).raises("boom")
|
|
24
21
|
|
|
25
|
-
check = Easymon::SplitActiveRecordCheck.new { [primary, replica] }
|
|
22
|
+
check = Easymon::SplitActiveRecordCheck.new { [ primary, replica ] }
|
|
26
23
|
results = check.check
|
|
27
24
|
|
|
28
25
|
assert_equal("Primary: Up - Replica: Down", results[1])
|
|
@@ -31,12 +28,11 @@ class SplitActiveRecordCheckTest < ActiveSupport::TestCase
|
|
|
31
28
|
|
|
32
29
|
test "#run sets failed conditions when primary is down" do
|
|
33
30
|
primary = ActiveRecord::Base.connection
|
|
34
|
-
Easymon::
|
|
35
|
-
replica = Easymon::Base.connection
|
|
31
|
+
replica = Easymon::Replica.connection
|
|
36
32
|
|
|
37
33
|
primary.stubs(:active?).raises("boom")
|
|
38
34
|
|
|
39
|
-
check = Easymon::SplitActiveRecordCheck.new { [primary, replica] }
|
|
35
|
+
check = Easymon::SplitActiveRecordCheck.new { [ primary, replica ] }
|
|
40
36
|
results = check.check
|
|
41
37
|
|
|
42
38
|
assert_equal("Primary: Down - Replica: Up", results[1])
|
|
@@ -53,18 +49,7 @@ end
|
|
|
53
49
|
|
|
54
50
|
# This would be done in the host app
|
|
55
51
|
module Easymon
|
|
56
|
-
class
|
|
57
|
-
|
|
58
|
-
if spec
|
|
59
|
-
super
|
|
60
|
-
elsif config = Easymon.database_configuration
|
|
61
|
-
super config
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
def database_configuration
|
|
66
|
-
env = "#{Rails.env}_replica"
|
|
67
|
-
YAML.load_file(Rails.root.join('config/database.yml'))[env]
|
|
68
|
-
end
|
|
52
|
+
class Replica < ActiveRecord::Base
|
|
53
|
+
establish_connection :primary_replica
|
|
69
54
|
end
|
|
70
55
|
end
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class TrafficEnabledCheckTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "#check sets success conditions on successful run" do
|
|
6
5
|
# Using a file we know exists in the test
|
|
7
6
|
check = Easymon::TrafficEnabledCheck.new("config/redis.yml")
|
|
@@ -10,7 +9,7 @@ class TrafficEnabledCheckTest < ActiveSupport::TestCase
|
|
|
10
9
|
assert_equal(true, results[0])
|
|
11
10
|
assert_equal("ENABLED", results[1])
|
|
12
11
|
end
|
|
13
|
-
|
|
12
|
+
|
|
14
13
|
test "#check sets failure conditions on a failed run" do
|
|
15
14
|
check = Easymon::TrafficEnabledCheck.new("config/file-does-not-exist")
|
|
16
15
|
results = check.check
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
require
|
|
1
|
+
require "test_helper"
|
|
2
2
|
|
|
3
3
|
class RepositoryTest < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
4
|
test "we can add a check to the repository" do
|
|
6
5
|
Easymon::Repository.add("database", Easymon::ActiveRecordCheck.new(ActiveRecord::Base))
|
|
7
6
|
check = Easymon::Repository.fetch("database")
|
|
@@ -49,4 +48,4 @@ class RepositoryTest < ActiveSupport::TestCase
|
|
|
49
48
|
|
|
50
49
|
assert check[:check].instance_of? Easymon::ActiveRecordCheck
|
|
51
50
|
end
|
|
52
|
-
end
|
|
51
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easymon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Anderson
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: redis
|
|
@@ -24,6 +23,20 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: benchmark
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
27
40
|
- !ruby/object:Gem::Dependency
|
|
28
41
|
name: rails
|
|
29
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -56,56 +69,56 @@ dependencies:
|
|
|
56
69
|
requirements:
|
|
57
70
|
- - "~>"
|
|
58
71
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 0.5
|
|
72
|
+
version: '0.5'
|
|
60
73
|
type: :development
|
|
61
74
|
prerelease: false
|
|
62
75
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
76
|
requirements:
|
|
64
77
|
- - "~>"
|
|
65
78
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: 0.5
|
|
79
|
+
version: '0.5'
|
|
67
80
|
- !ruby/object:Gem::Dependency
|
|
68
81
|
name: pg
|
|
69
82
|
requirement: !ruby/object:Gem::Requirement
|
|
70
83
|
requirements:
|
|
71
84
|
- - "~>"
|
|
72
85
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '1.
|
|
86
|
+
version: '1.6'
|
|
74
87
|
type: :development
|
|
75
88
|
prerelease: false
|
|
76
89
|
version_requirements: !ruby/object:Gem::Requirement
|
|
77
90
|
requirements:
|
|
78
91
|
- - "~>"
|
|
79
92
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: '1.
|
|
93
|
+
version: '1.6'
|
|
81
94
|
- !ruby/object:Gem::Dependency
|
|
82
95
|
name: mocha
|
|
83
96
|
requirement: !ruby/object:Gem::Requirement
|
|
84
97
|
requirements:
|
|
85
98
|
- - "~>"
|
|
86
99
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '
|
|
100
|
+
version: '2.7'
|
|
88
101
|
type: :development
|
|
89
102
|
prerelease: false
|
|
90
103
|
version_requirements: !ruby/object:Gem::Requirement
|
|
91
104
|
requirements:
|
|
92
105
|
- - "~>"
|
|
93
106
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '
|
|
107
|
+
version: '2.7'
|
|
95
108
|
- !ruby/object:Gem::Dependency
|
|
96
109
|
name: dalli
|
|
97
110
|
requirement: !ruby/object:Gem::Requirement
|
|
98
111
|
requirements:
|
|
99
112
|
- - "~>"
|
|
100
113
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: '2
|
|
114
|
+
version: '3.2'
|
|
102
115
|
type: :development
|
|
103
116
|
prerelease: false
|
|
104
117
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
118
|
requirements:
|
|
106
119
|
- - "~>"
|
|
107
120
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: '2
|
|
121
|
+
version: '3.2'
|
|
109
122
|
description: |-
|
|
110
123
|
Enables your monitoring infrastructure to easily query the
|
|
111
124
|
status of your app server's health. Provides routes under
|
|
@@ -128,6 +141,7 @@ files:
|
|
|
128
141
|
- lib/easymon/checks/active_record_mysql_writeable_check.rb
|
|
129
142
|
- lib/easymon/checks/http_check.rb
|
|
130
143
|
- lib/easymon/checks/memcached_check.rb
|
|
144
|
+
- lib/easymon/checks/multi_active_record_check.rb
|
|
131
145
|
- lib/easymon/checks/redis_check.rb
|
|
132
146
|
- lib/easymon/checks/redis_writeable_check.rb
|
|
133
147
|
- lib/easymon/checks/semaphore_check.rb
|
|
@@ -140,20 +154,22 @@ files:
|
|
|
140
154
|
- lib/easymon/version.rb
|
|
141
155
|
- lib/tasks/easymon_tasks.rake
|
|
142
156
|
- test/controllers/easymon/checks_controller_test.rb
|
|
143
|
-
- test/dummy/README.rdoc
|
|
144
157
|
- test/dummy/Rakefile
|
|
145
|
-
- test/dummy/app/assets/config/manifest.js
|
|
146
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
147
|
-
- test/dummy/app/assets/javascripts/easymon.js
|
|
148
158
|
- test/dummy/app/assets/stylesheets/application.css
|
|
149
|
-
- test/dummy/app/assets/stylesheets/easymon.css
|
|
150
159
|
- test/dummy/app/controllers/application_controller.rb
|
|
151
|
-
- test/dummy/app/controllers/easymon_controller.rb
|
|
152
160
|
- test/dummy/app/helpers/application_helper.rb
|
|
153
|
-
- test/dummy/app/
|
|
154
|
-
- test/dummy/app/
|
|
155
|
-
- test/dummy/app/
|
|
161
|
+
- test/dummy/app/jobs/application_job.rb
|
|
162
|
+
- test/dummy/app/mailers/application_mailer.rb
|
|
163
|
+
- test/dummy/app/models/application_record.rb
|
|
156
164
|
- test/dummy/app/views/layouts/application.html.erb
|
|
165
|
+
- test/dummy/app/views/layouts/mailer.html.erb
|
|
166
|
+
- test/dummy/app/views/layouts/mailer.text.erb
|
|
167
|
+
- test/dummy/app/views/pwa/manifest.json.erb
|
|
168
|
+
- test/dummy/app/views/pwa/service-worker.js
|
|
169
|
+
- test/dummy/bin/dev
|
|
170
|
+
- test/dummy/bin/rails
|
|
171
|
+
- test/dummy/bin/rake
|
|
172
|
+
- test/dummy/bin/setup
|
|
157
173
|
- test/dummy/config.ru
|
|
158
174
|
- test/dummy/config/application.rb
|
|
159
175
|
- test/dummy/config/boot.rb
|
|
@@ -163,23 +179,26 @@ files:
|
|
|
163
179
|
- test/dummy/config/environments/development.rb
|
|
164
180
|
- test/dummy/config/environments/production.rb
|
|
165
181
|
- test/dummy/config/environments/test.rb
|
|
166
|
-
- test/dummy/config/initializers/
|
|
182
|
+
- test/dummy/config/initializers/assets.rb
|
|
183
|
+
- test/dummy/config/initializers/content_security_policy.rb
|
|
167
184
|
- test/dummy/config/initializers/easymon.rb
|
|
185
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
168
186
|
- test/dummy/config/initializers/inflections.rb
|
|
169
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
170
|
-
- test/dummy/config/initializers/secret_token.rb
|
|
171
|
-
- test/dummy/config/initializers/session_store.rb
|
|
172
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
173
187
|
- test/dummy/config/locales/en.yml
|
|
174
188
|
- test/dummy/config/memcached.yml
|
|
189
|
+
- test/dummy/config/puma.rb
|
|
175
190
|
- test/dummy/config/redis.yml
|
|
176
191
|
- test/dummy/config/routes.rb
|
|
177
192
|
- test/dummy/config/storage.yml
|
|
193
|
+
- test/dummy/log/test.log
|
|
194
|
+
- test/dummy/public/400.html
|
|
178
195
|
- test/dummy/public/404.html
|
|
196
|
+
- test/dummy/public/406-unsupported-browser.html
|
|
179
197
|
- test/dummy/public/422.html
|
|
180
198
|
- test/dummy/public/500.html
|
|
181
|
-
- test/dummy/public/
|
|
182
|
-
- test/dummy/
|
|
199
|
+
- test/dummy/public/icon.png
|
|
200
|
+
- test/dummy/public/icon.svg
|
|
201
|
+
- test/dummy/tmp/local_secret.txt
|
|
183
202
|
- test/helpers/easymon/checks_helper_test.rb
|
|
184
203
|
- test/integration/navigation_test.rb
|
|
185
204
|
- test/test_helper.rb
|
|
@@ -189,6 +208,7 @@ files:
|
|
|
189
208
|
- test/unit/checks/active_record_mysql_writeable_check_test.rb
|
|
190
209
|
- test/unit/checks/http_check_test.rb
|
|
191
210
|
- test/unit/checks/memcached_check_test.rb
|
|
211
|
+
- test/unit/checks/multi_active_record_check_test.rb
|
|
192
212
|
- test/unit/checks/redis_check_test.rb
|
|
193
213
|
- test/unit/checks/redis_writeable_check_test.rb
|
|
194
214
|
- test/unit/checks/semaphore_check_test.rb
|
|
@@ -199,7 +219,6 @@ homepage: https://github.com/basecamp/easymon
|
|
|
199
219
|
licenses:
|
|
200
220
|
- MIT
|
|
201
221
|
metadata: {}
|
|
202
|
-
post_install_message:
|
|
203
222
|
rdoc_options: []
|
|
204
223
|
require_paths:
|
|
205
224
|
- lib
|
|
@@ -214,64 +233,69 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
233
|
- !ruby/object:Gem::Version
|
|
215
234
|
version: '0'
|
|
216
235
|
requirements: []
|
|
217
|
-
rubygems_version: 3.
|
|
218
|
-
signing_key:
|
|
236
|
+
rubygems_version: 3.6.9
|
|
219
237
|
specification_version: 4
|
|
220
238
|
summary: Simple availability checks for your rails app
|
|
221
239
|
test_files:
|
|
222
|
-
- test/
|
|
223
|
-
- test/
|
|
224
|
-
- test/unit/checks/active_record_mysql_writeable_check_test.rb
|
|
225
|
-
- test/unit/checks/redis_writeable_check_test.rb
|
|
226
|
-
- test/unit/checks/semaphore_check_test.rb
|
|
227
|
-
- test/unit/checks/active_record_check_test.rb
|
|
228
|
-
- test/unit/checks/active_record_check_on_postgresql_test.rb
|
|
229
|
-
- test/unit/checks/split_active_record_check_test.rb
|
|
230
|
-
- test/unit/checks/redis_check_test.rb
|
|
231
|
-
- test/unit/checks/traffic_enabled_check_test.rb
|
|
232
|
-
- test/unit/repository_test.rb
|
|
233
|
-
- test/unit/checklist_test.rb
|
|
234
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
235
|
-
- test/dummy/app/controllers/easymon_controller.rb
|
|
236
|
-
- test/dummy/app/views/easymon/index.html.erb
|
|
237
|
-
- test/dummy/app/views/easymon/show.html.erb
|
|
238
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
239
|
-
- test/dummy/app/assets/config/manifest.js
|
|
240
|
-
- test/dummy/app/assets/javascripts/easymon.js
|
|
241
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
240
|
+
- test/controllers/easymon/checks_controller_test.rb
|
|
241
|
+
- test/dummy/Rakefile
|
|
242
242
|
- test/dummy/app/assets/stylesheets/application.css
|
|
243
|
-
- test/dummy/app/
|
|
244
|
-
- test/dummy/app/helpers/easymon_helper.rb
|
|
243
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
245
244
|
- test/dummy/app/helpers/application_helper.rb
|
|
246
|
-
- test/dummy/
|
|
247
|
-
- test/dummy/
|
|
248
|
-
- test/dummy/
|
|
249
|
-
- test/dummy/
|
|
250
|
-
- test/dummy/
|
|
251
|
-
- test/dummy/
|
|
252
|
-
- test/dummy/
|
|
253
|
-
- test/dummy/
|
|
245
|
+
- test/dummy/app/jobs/application_job.rb
|
|
246
|
+
- test/dummy/app/mailers/application_mailer.rb
|
|
247
|
+
- test/dummy/app/models/application_record.rb
|
|
248
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
249
|
+
- test/dummy/app/views/layouts/mailer.html.erb
|
|
250
|
+
- test/dummy/app/views/layouts/mailer.text.erb
|
|
251
|
+
- test/dummy/app/views/pwa/manifest.json.erb
|
|
252
|
+
- test/dummy/app/views/pwa/service-worker.js
|
|
253
|
+
- test/dummy/bin/dev
|
|
254
|
+
- test/dummy/bin/rails
|
|
255
|
+
- test/dummy/bin/rake
|
|
256
|
+
- test/dummy/bin/setup
|
|
257
|
+
- test/dummy/config.ru
|
|
254
258
|
- test/dummy/config/application.rb
|
|
255
|
-
- test/dummy/config/memcached.yml
|
|
256
|
-
- test/dummy/config/database.yml
|
|
257
259
|
- test/dummy/config/boot.rb
|
|
260
|
+
- test/dummy/config/database.yml
|
|
258
261
|
- test/dummy/config/elasticsearch.yml
|
|
259
|
-
- test/dummy/config/
|
|
260
|
-
- test/dummy/config/
|
|
261
|
-
- test/dummy/config/
|
|
262
|
-
- test/dummy/config/
|
|
262
|
+
- test/dummy/config/environment.rb
|
|
263
|
+
- test/dummy/config/environments/development.rb
|
|
264
|
+
- test/dummy/config/environments/production.rb
|
|
265
|
+
- test/dummy/config/environments/test.rb
|
|
266
|
+
- test/dummy/config/initializers/assets.rb
|
|
267
|
+
- test/dummy/config/initializers/content_security_policy.rb
|
|
263
268
|
- test/dummy/config/initializers/easymon.rb
|
|
264
|
-
- test/dummy/config/initializers/
|
|
269
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
265
270
|
- test/dummy/config/initializers/inflections.rb
|
|
266
|
-
- test/dummy/config.
|
|
267
|
-
- test/dummy/
|
|
268
|
-
- test/dummy/
|
|
269
|
-
- test/dummy/
|
|
271
|
+
- test/dummy/config/locales/en.yml
|
|
272
|
+
- test/dummy/config/memcached.yml
|
|
273
|
+
- test/dummy/config/puma.rb
|
|
274
|
+
- test/dummy/config/redis.yml
|
|
275
|
+
- test/dummy/config/routes.rb
|
|
276
|
+
- test/dummy/config/storage.yml
|
|
277
|
+
- test/dummy/log/test.log
|
|
278
|
+
- test/dummy/public/400.html
|
|
279
|
+
- test/dummy/public/404.html
|
|
280
|
+
- test/dummy/public/406-unsupported-browser.html
|
|
270
281
|
- test/dummy/public/422.html
|
|
271
282
|
- test/dummy/public/500.html
|
|
272
|
-
- test/dummy/public/
|
|
273
|
-
- test/dummy/
|
|
283
|
+
- test/dummy/public/icon.png
|
|
284
|
+
- test/dummy/public/icon.svg
|
|
285
|
+
- test/dummy/tmp/local_secret.txt
|
|
286
|
+
- test/helpers/easymon/checks_helper_test.rb
|
|
274
287
|
- test/integration/navigation_test.rb
|
|
275
288
|
- test/test_helper.rb
|
|
276
|
-
- test/
|
|
277
|
-
- test/
|
|
289
|
+
- test/unit/checklist_test.rb
|
|
290
|
+
- test/unit/checks/active_record_check_on_postgresql_test.rb
|
|
291
|
+
- test/unit/checks/active_record_check_test.rb
|
|
292
|
+
- test/unit/checks/active_record_mysql_writeable_check_test.rb
|
|
293
|
+
- test/unit/checks/http_check_test.rb
|
|
294
|
+
- test/unit/checks/memcached_check_test.rb
|
|
295
|
+
- test/unit/checks/multi_active_record_check_test.rb
|
|
296
|
+
- test/unit/checks/redis_check_test.rb
|
|
297
|
+
- test/unit/checks/redis_writeable_check_test.rb
|
|
298
|
+
- test/unit/checks/semaphore_check_test.rb
|
|
299
|
+
- test/unit/checks/split_active_record_check_test.rb
|
|
300
|
+
- test/unit/checks/traffic_enabled_check_test.rb
|
|
301
|
+
- test/unit/repository_test.rb
|