diff --git a/test/README.md b/test/README.md index e73b7980..0e6aa12b 100644 --- a/test/README.md +++ b/test/README.md @@ -144,7 +144,7 @@ rbenv local 2.7.5 export BUNDLE_GEMFILE=gemfiles/delayed_job.gemfile export DBTYPE=mysql # optional, defaults to postgresql bundle -bundle exec rake cfc # download, compile oboe_api, and link liboboe +bundle exec rake cfc['stg'] # download, compile oboe_api, and link liboboe; env: cfc["{env}"] (choose from dev, stg or prod bundle exec ruby -I test test/queues/delayed_job-client_test.rb ``` diff --git a/test/unit/oboe_init_options_test.rb b/test/unit/oboe_init_options_test.rb index 0fa0df50..2fd72c31 100644 --- a/test/unit/oboe_init_options_test.rb +++ b/test/unit/oboe_init_options_test.rb @@ -125,13 +125,33 @@ end it 'checks for metric mode appoptics' do - ENV['SW_APM_COLLECTOR'] = 'collector.abc.bbc.appoptics.com' + ENV['SW_APM_COLLECTOR'] = 'collector.appoptics.com' SolarWindsAPM::OboeInitOptions.instance.re_init options = SolarWindsAPM::OboeInitOptions.instance.array_for_oboe _(options.size).must_equal 21 - _(options[20]).must_equal 2 + _(options[20]).must_equal 1 + end + + it 'checks for metric mode appoptics stg' do + ENV['SW_APM_COLLECTOR'] = 'collector-stg.appoptics.com' + + SolarWindsAPM::OboeInitOptions.instance.re_init + options = SolarWindsAPM::OboeInitOptions.instance.array_for_oboe + + _(options.size).must_equal 21 + _(options[20]).must_equal 1 + end + + it 'checks for metric mode appoptics with port 443' do + ENV['SW_APM_COLLECTOR'] = 'collector.appoptics.com:443' + + SolarWindsAPM::OboeInitOptions.instance.re_init + options = SolarWindsAPM::OboeInitOptions.instance.array_for_oboe + + _(options.size).must_equal 21 + _(options[20]).must_equal 1 end it 'checks for metric mode nighthack' do