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