Project

General

Profile

Actions

Bug #37413

closed

Tests fail inside docker container

Added by dosas please_edit_me 3 months ago. Updated 23 days ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Four tests are failing with
```
Errno::EADDRNOTAVAIL: Cannot assign requested address - connect(2) for "localhost" port 61953
```
when running inside a docker container

using 127.0.0.1 instead of localhost to assign address fixes the issue.

Actions #1

Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/891 added
Actions #2

Updated by dosas please_edit_me 3 months ago

Error: test_http(SSLClientVerificationIntegrationTest): Errno::EADDRNOTAVAIL: Cannot assign requested address - connect(2) for "localhost" port 22236
/root/smart-proxy/test/test_helper.rb:55:in `initialize'
/root/smart-proxy/test/test_helper.rb:55:in `new'
/root/smart-proxy/test/test_helper.rb:55:in `can_connect?'
/root/smart-proxy/test/test_helper.rb:50:in `block in launch'
/usr/local/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
/usr/local/lib/ruby/2.7.0/timeout.rb:33:in `block in catch'
/usr/local/lib/ruby/2.7.0/timeout.rb:33:in `catch'
/usr/local/lib/ruby/2.7.0/timeout.rb:33:in `catch'
/usr/local/lib/ruby/2.7.0/timeout.rb:110:in `timeout'
/root/smart-proxy/test/test_helper.rb:49:in `launch'
/root/smart-proxy/test/sinatra/ssl_client_verification_integration_test.rb:23:in `test_http'
20: end
21:
22: def test_http
=> 23: launch protocol: 'http', plugins: [TestPluginWithSSLClientAuth]
24: res = Net::HTTP.get_response('localhost', '/', @settings.http_port)
25: assert_kind_of Net::HTTPSuccess, res
26: assert_equal 'Success', res.body

Actions #3

Updated by dosas please_edit_me 3 months ago

affected tests:

  • /root/smart-proxy/test/sinatra/ssl_client_verification_integration_test.rb:23:in `test_http
  • /root/smart-proxy/test/sinatra/ssl_client_verification_integration_test.rb:52:in `test_https_cert'
  • /root/smart-proxy/test/sinatra/ssl_client_verification_integration_test.rb:39:in `test_https_cert_from_different_authority'
  • /root/smart-proxy/test/sinatra/ssl_client_verification_integration_test.rb:30:in `test_https_no_cert'
Actions #4

Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/892 added
Actions #5

Updated by The Foreman Bot 2 months ago

  • Pull request deleted (https://github.com/theforeman/smart-proxy/pull/891, https://github.com/theforeman/smart-proxy/pull/892)
Actions #6

Updated by The Foreman Bot 2 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/smart-proxy/pull/893 added
Actions #7

Updated by The Foreman Bot 2 months ago

  • Fixed in Releases 3.11.0 added
Actions #8

Updated by Ewoud Kohl van Wijngaarden 2 months ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by Ewoud Kohl van Wijngaarden 23 days ago

  • Tracker changed from Feature to Bug
  • Category set to Tests
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF