Bug #37413
closed
Tests fail inside docker container
Added by dosas please_edit_me 7 months ago.
Updated 5 months ago.
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.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/891 added
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
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'
- Pull request https://github.com/theforeman/smart-proxy/pull/892 added
- Pull request deleted (
https://github.com/theforeman/smart-proxy/pull/891, https://github.com/theforeman/smart-proxy/pull/892)
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/smart-proxy/pull/893 added
- Fixed in Releases 3.11.0 added
- Status changed from Ready For Testing to Closed
- Tracker changed from Feature to Bug
- Category set to Tests
- Triaged changed from No to Yes
Also available in: Atom
PDF