Sha256: ca28458b240f92c81541603054a40b788abf215f59394ba9529c641f61ee0841

Contents?: true

Size: 957 Bytes

Versions: 35

Compression:

Stored size: 957 Bytes

Contents

require 'test_helper'

module Workarea
  class MonitoringIntegrationTest < Workarea::IntegrationTest
    def test_monitors_the_mongodb_status
      get workarea.easymon_path + '/mongodb'
      assert_includes(response.body, 'Up')
    end

    def test_monitors_the_redis_status
      get workarea.easymon_path + '/redis'
      assert_includes(response.body, 'Up')
    end

    def test_monitors_the_elasticsearch_status
      get workarea.easymon_path + '/elasticsearch'
      assert_includes(response.body, 'Up')
    end

    def test_monitors_the_sidekiq_queue_status
      get workarea.easymon_path + '/sidekiq-queue'
      assert_includes(response.body, 'Low')
    end

    def test_monitors_for_load_balancing
      get workarea.easymon_path + '/load-balancing'
      assert_includes(response.body, 'Up')
    end

    def test_critical_endpoint
      get workarea.easymon_path + "/critical"
      assert_includes(response.body, 'Up')
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.26 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.45 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.25 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.23 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.44 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.22 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.43 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.21 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.42 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.20 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.41 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.19 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.40 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.18 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.39 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.17 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.38 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.16 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.37 test/integration/workarea/monitoring_integration_test.rb