Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2448

Fix OCSP test failures

    • Fully Compatible

      [2020-11-27 18:31:13.718]         does not verify and does not raise an exception: ./spec/integration/ocsp_verifier_spec.rb[1:4:1:3:1]
      [2020-11-27 18:31:13.719] INFO  WEBrick 1.3.1
      [2020-11-27 18:31:13.719] INFO  WEBrick::HTTPServer#start done.
      [2020-11-27 18:31:13.719] INFO  ruby 2.3.8 (2018-10-18) [x86_64-linux]
      [2020-11-27 18:31:13.720] INFO  WEBrick::HTTPServer#start: pid=14699 port=8100
      [2020-11-27 18:31:13.725] 127.0.0.1 - - [27/Nov/2020:18:31:13 UTC] "POST /status HTTP/1.1" 500 8
      [2020-11-27 18:31:13.725] - -> /status
      [2020-11-27 18:31:13.726] W, [2020-11-27T18:31:13.726152 #14699]  WARN -- : MONGODB | TLS certificate of 'foo' could not be definitively verified via OCSP: For responders http://localhost:9001/power/level, http://localhost:8100/status with a timeout of 7 seconds: OCSP request to http://localhost:9001/power/level failed: Errno::ECONNREFUSED: Failed to open TCP connection to localhost:9001 (Connection refused - connect(2) for "localhost" port 9001), OCSP request to http://localhost:8100/status failed with HTTP status code 500: HTTP 500
      [2020-11-27 18:31:13.726]           passed
      [2020-11-27 18:31:13.726]       code 503
      [2020-11-27 18:31:13.726]         does not verify and does not raise an exception: ./spec/integration/ocsp_verifier_spec.rb[1:4:1:4:1]
      [2020-11-27 18:31:13.727] INFO  WEBrick 1.3.1
      [2020-11-27 18:31:13.727] INFO  ruby 2.3.8 (2018-10-18) [x86_64-linux]
      [2020-11-27 18:31:13.792]
      [2020-11-27 18:31:13.792]   1) Mongo::Socket::OcspVerifier responder returns unexpected status code 40x / 50x code 503 does not verify and does not raise an exception
      [2020-11-27 18:31:13.792]      Failure/Error: server = WEBrick::HTTPServer.new(Port: 8100)
      [2020-11-27 18:31:13.792]      
      [2020-11-27 18:31:13.792]      Errno::EADDRINUSE:
      [2020-11-27 18:31:13.792]        Address already in use - bind(2) for [::]:8100
      [2020-11-27 18:31:13.792]      Shared Example Group: "does not verify" called from ./spec/integration/ocsp_verifier_spec.rb:286
      [2020-11-27 18:31:13.792]      # ./spec/integration/ocsp_verifier_spec.rb:270:in `new'
      [2020-11-27 18:31:13.792]      # ./spec/integration/ocsp_verifier_spec.rb:270:in `block (4 levels) in <top (required)>'
      [2020-11-27 18:31:13.792]      # ./spec/lite_spec_helper.rb:122:in `block (3 levels) in <top (required)>'
      [2020-11-27 18:31:13.792]      # ./spec/lite_spec_helper.rb:121:in `block (2 levels) in <top (required)>'
      [2020-11-27 18:31:13.792]      # ./spec/lite_spec_helper.rb:104:in `block (2 levels) in <top (required)>'
      [2020-11-27 18:31:13.792]      # ./spec/support/background_thread_registry.rb:62:in `block (2 levels) in <top (required)>'
      [2020-11-27 18:31:13.792]
      [2020-11-27 18:31:13.792] INFO  going to shutdown ...
      [2020-11-27 18:31:13.792] INFO  WEBrick::HTTPServer#start done.
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: