Sha256: a8a2ed6bddabceecb9c1319d1527c8d3270fe4fade45092010a2cf7c36417647

Contents?: true

Size: 591 Bytes

Versions: 4

Compression:

Stored size: 591 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

class SSLTest < Minitest::Test

  include MultiverseHelpers

  def setup
    # Similar to how jruby 1.6.8 behaves when jruby-openssl isn't installed
    Net::HTTPSession.any_instance.stubs('use_ssl=').raises(LoadError)
  end

  def test_agent_shuts_down_when_ssl_is_on_but_unavailable
    NewRelic::Agent.agent.expects(:shutdown).at_least_once
    NewRelic::Agent.expects(:finish_setup).never

    run_agent(:ssl => true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-3.12.0.288 test/multiverse/suites/agent_only/ssl_test.rb
newrelic_rpm-3.11.2.286 test/multiverse/suites/agent_only/ssl_test.rb
newrelic_rpm-3.11.1.284 test/multiverse/suites/agent_only/ssl_test.rb
newrelic_rpm-3.11.0.283 test/multiverse/suites/agent_only/ssl_test.rb