Sha256: db3536613479d8a392ecd31106a9499bad606ca072ab6b4c11c75b10325317b5

Contents?: true

Size: 661 Bytes

Versions: 7

Compression:

Stored size: 661 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

require 'test_helper'

class ConfigTest < Minitest::Test
  def test_that_config_exists
    refute_nil ::Instana.config
    assert_instance_of(::Instana::Config, ::Instana.config)
  end

  def test_that_it_has_defaults
    assert_equal '127.0.0.1', ::Instana.config[:agent_host]
    assert_equal 42699, ::Instana.config[:agent_port]

    assert ::Instana.config[:tracing][:enabled]
    assert ::Instana.config[:metrics][:enabled]

    ::Instana.config[:metrics].each do |k, v|
      next unless v.is_a? Hash
      assert_equal true, ::Instana.config[:metrics][k].key?(:enabled)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
instana-1.195.4 test/config_test.rb
instana-1.195.3 test/config_test.rb
instana-1.195.2 test/config_test.rb
instana-1.195.1 test/config_test.rb
instana-1.195.0 test/config_test.rb
instana-1.193.6 test/config_test.rb
instana-1.193.5 test/config_test.rb