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.15 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.36 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.14 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.35 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.13 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.34 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.12 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.33 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.11 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.10 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.32 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.9 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.31 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.5.8 test/integration/workarea/monitoring_integration_test.rb
workarea-core-3.4.30 test/integration/workarea/monitoring_integration_test.rb