Fixes #36745 - VM is not associated upon host registration #1155
foreman.yml
on: pull_request
Setup matrix
5s
Matrix: tests
Matrix: Katello / existing-database
Matrix: Katello / test
Test suite
0s
Annotations
40 errors and 4 warnings
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105014Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105014Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:256:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=5aedfa8dc597a928540b7d5816688f750f9dc72291d71b961c60d4994a40fb89', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105015Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=5aedfa8dc597a928540b7d5816688f750f9dc72291d71b961c60d4994a40fb89',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105015Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:247:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with setup_remote_execution = true
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105016Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105016Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:226:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_with setup_remote_execution = false
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105016Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105016Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:236:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105016Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=98243f490c45d757da30979ef239b764caad55930036f3e8a98dbee82870139a',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105016Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:217:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with setup_insights = true
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105058Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105058Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:196:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_with setup_insights = false
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105058Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105058Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:206:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105058Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ddaa6cd8c19ae980fed1d2199dd87f6912387f89d7ce3f7e01e0e45eec475543',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105058Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:187:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_Apply inherited attributes from host group
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1ccd68e9db5dca5f6f53ca7df0875d79f1249c5b60b0bc3f86dc1e761b30a869', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105116Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1ccd68e9db5dca5f6f53ca7df0875d79f1249c5b60b0bc3f86dc1e761b30a869',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105116Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:268:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_should find and update host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dbf85ef753404c1c243875be44b5e156cd1275001e51ebec023ac869962db258', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105133Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dbf85ef753404c1c243875be44b5e156cd1275001e51ebec023ac869962db258',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105133Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:141:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=46e93ba8b325a7cafd2facbcf87de37807f4776d0815f7a9fd5ca7030cc1f8d1', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104822Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=46e93ba8b325a7cafd2facbcf87de37807f4776d0815f7a9fd5ca7030cc1f8d1',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104822Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:187:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_with setup_insights = false
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=46e93ba8b325a7cafd2facbcf87de37807f4776d0815f7a9fd5ca7030cc1f8d1', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104822Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=46e93ba8b325a7cafd2facbcf87de37807f4776d0815f7a9fd5ca7030cc1f8d1',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104822Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:206:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with setup_insights = true
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=4fe7bde46f8a93adddd77e10b4a56697a3498acfde3128244e739ba23a081a3e', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104823Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=4fe7bde46f8a93adddd77e10b4a56697a3498acfde3128244e739ba23a081a3e',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104823Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:196:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=3a83be7790688c4d949d3583a895625596d1e71541e9430080ef4a461d292f70', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104840Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=3a83be7790688c4d949d3583a895625596d1e71541e9430080ef4a461d292f70',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104840Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:247:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=3a83be7790688c4d949d3583a895625596d1e71541e9430080ef4a461d292f70', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104840Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=3a83be7790688c4d949d3583a895625596d1e71541e9430080ef4a461d292f70',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104840Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:256:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0005_should render error when no OS
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104917Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104917Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:160:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_should render template
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104917Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104917Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:147:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_should find and create host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104917Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104917Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:131:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0006_should render error when template is invalid
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104917Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104917Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:175:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 2.7 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0004_should set build on host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104917Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=308fe143c65524346982708f07a74856f94b78bec0610d233869fce63fad8027',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104917Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:153:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0004_should set build on host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=06c5b29aac1430c2c89dd0316b6607c5492b43b153b6ffd74dd90e134b59b665', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104953Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=06c5b29aac1430c2c89dd0316b6607c5492b43b153b6ffd74dd90e134b59b665',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104953Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:153:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_should find and update host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=06c5b29aac1430c2c89dd0316b6607c5492b43b153b6ffd74dd90e134b59b665', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104953Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=06c5b29aac1430c2c89dd0316b6607c5492b43b153b6ffd74dd90e134b59b665',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104953Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:141:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_should render template
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104954Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104954Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:147:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0006_should render error when template is invalid
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104954Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104954Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:175:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0005_should render error when no OS
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104954Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104954Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:160:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_should find and create host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104954Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=7432e37395d0e8c041a836e536a52a3013fdaf354684cabf9d6176bf861fcfc6',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104954Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:131:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dd211c9cca99f3030b6a124d3f58106600dcf61a90256cb2857d3e02ff132c0a', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105012Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dd211c9cca99f3030b6a124d3f58106600dcf61a90256cb2857d3e02ff132c0a',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105012Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:256:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dd211c9cca99f3030b6a124d3f58106600dcf61a90256cb2857d3e02ff132c0a', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105012Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=dd211c9cca99f3030b6a124d3f58106600dcf61a90256cb2857d3e02ff132c0a',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105012Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:247:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_with setup_remote_execution = false
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105014Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105014Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:236:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 18 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with setup_remote_execution = true
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105014Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=c9a12720585c0fca5cb7a21fb9ebd5d25575eb85109cc5f306f44f7c28e86a04',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105014Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:226:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=39b9f771f1f2626428bac61a590445963b653b916da6ace88290b0c281ee3f02', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104850Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=39b9f771f1f2626428bac61a590445963b653b916da6ace88290b0c281ee3f02',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104850Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:256:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=39b9f771f1f2626428bac61a590445963b653b916da6ace88290b0c281ee3f02', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104850Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=39b9f771f1f2626428bac61a590445963b653b916da6ace88290b0c281ee3f02',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104850Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:247:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_should find and create host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:131:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0004_should set build on host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:153:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0003_should render template
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:147:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_should find and update host
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:141:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0005_should render error when no OS
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:160:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0006_should render error when template is invalid
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T104947Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fd0a481b3c54578d5152c6a2f9c4cf567b93059a774a81393c6411e053de8c5c',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T104947Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:175:in `block (2 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0001_without param
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=b7320f45c03868fb53694bb7e650b063f82b3c558252a8315adeabcbe4bde59d', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105019Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=b7320f45c03868fb53694bb7e650b063f82b3c558252a8315adeabcbe4bde59d',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105019Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:217:in `block (3 levels) in <class:RegistrationControllerTest>'
|
test:functionals - Ruby 3.0 and Node 14 on PostgreSQL 13:
test/controllers/api/v2/registration_controller_test.rb#L70
Failure: test_0002_with setup_remote_execution = true
WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST https://ec2.eu-west-1.amazonaws.com/ with body 'Action=DescribeInstances&Version=2016-11-15' with headers {'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fcab70849c039a5fc4907b9f81e4752f8f0cc272baec6dfb06bafe60f115ede7', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'ec2.eu-west-1.amazonaws.com', 'User-Agent'=>'fog-core/2.4.0', 'X-Amz-Date'=>'20240516T105020Z'}
You can stub this request with the following snippet:
stub_request(:post, "https://ec2.eu-west-1.amazonaws.com/").
with(
body: {"Action"=>"DescribeInstances", "Version"=>"2016-11-15"},
headers: {
'Authorization'=>'AWS4-HMAC-SHA256 Credential=MyString/20240516/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=fcab70849c039a5fc4907b9f81e4752f8f0cc272baec6dfb06bafe60f115ede7',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'ec2.eu-west-1.amazonaws.com',
'User-Agent'=>'fog-core/2.4.0',
'X-Amz-Date'=>'20240516T105020Z'
}).
to_return(status: 200, body: "", headers: {})
============================================================
lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
app/models/compute_resources/foreman/model/ec2.rb:151:in `find'
app/models/compute_resources/foreman/model/ec2.rb:151:in `associated_vm'
app/services/compute_resource_host_associator.rb:19:in `associate_host'
app/controllers/api/v2/registration_controller.rb:132:in `block in associate_vm'
app/controllers/api/v2/registration_controller.rb:130:in `associate_vm'
app/controllers/api/v2/registration_controller.rb:80:in `block in host'
app/controllers/api/v2/registration_controller.rb:77:in `host'
app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
test/controllers/api/v2/registration_controller_test.rb:226:in `block (3 levels) in <class:RegistrationControllerTest>'
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 3.0 and Node 14 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 3.0 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 2.7 and Node 14 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 2.7 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Gemfile-ruby-2.7-node-14-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-dbseed.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-testexternal.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-testfunctionals.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-testgraphql.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-testunits.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-14-pg-13-webpackcompiletestintegration.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-dbseed.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testexternal.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testfunctionals.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testgraphql.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-testunits.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.lock
Expired
|
4.69 KB |
|
Gemfile-ruby-27-node-14-pg-13-foreman-refspull9833merge-dbseed.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-27-node-14-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-27-node-14-pg-13-foreman-refspull9833merge-testkatello.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull9833merge-dbseed.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-27-node-18-pg-13-foreman-refspull9833merge-testkatello.lock
Expired
|
5.5 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-dbseed.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-testexternal.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-testfunctionals.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-testgraphql.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-testunits.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-14-pg-13-webpackcompiletestintegration.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-dbseed.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testexternal.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testfunctionals.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testgraphql.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-testunits.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.lock
Expired
|
4.71 KB |
|
Gemfile-ruby-30-node-14-pg-13-foreman-refspull9833merge-dbseed.lock
Expired
|
5.51 KB |
|
Gemfile-ruby-30-node-14-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
5.51 KB |
|
Gemfile-ruby-30-node-14-pg-13-foreman-refspull9833merge-testkatello.lock
Expired
|
5.51 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull9833merge-dbseed.lock
Expired
|
5.51 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
Expired
|
5.51 KB |
|
Gemfile-ruby-30-node-18-pg-13-foreman-refspull9833merge-testkatello.lock
Expired
|
5.51 KB |
|
all_react_app_exports-ruby-2.7-node-14-pg-13-webpackcompiletestintegration.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-27-node-14-pg-13-foreman-refspull9833merge-testkatello.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-27-node-18-pg-13-foreman-refspull9833merge-testkatello.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-3.0-node-14-pg-13-webpackcompiletestintegration.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-30-node-14-pg-13-foreman-refspull9833merge-testkatello.js
Expired
|
7.77 KB |
|
all_react_app_exports-ruby-30-node-18-pg-13-foreman-refspull9833merge-testkatello.js
Expired
|
7.77 KB |
|
package-lock-ruby-2.7-node-14-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
210 KB |
|
package-lock-ruby-2.7-node-14-pg-13-webpackcompiletestintegration.json
Expired
|
210 KB |
|
package-lock-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
227 KB |
|
package-lock-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.json
Expired
|
227 KB |
|
package-lock-ruby-27-node-14-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
307 KB |
|
package-lock-ruby-27-node-14-pg-13-foreman-refspull9833merge-testkatello.json
Expired
|
307 KB |
|
package-lock-ruby-27-node-18-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
324 KB |
|
package-lock-ruby-27-node-18-pg-13-foreman-refspull9833merge-testkatello.json
Expired
|
324 KB |
|
package-lock-ruby-3.0-node-14-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
210 KB |
|
package-lock-ruby-3.0-node-14-pg-13-webpackcompiletestintegration.json
Expired
|
210 KB |
|
package-lock-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
227 KB |
|
package-lock-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.json
Expired
|
227 KB |
|
package-lock-ruby-30-node-14-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
307 KB |
|
package-lock-ruby-30-node-14-pg-13-foreman-refspull9833merge-testkatello.json
Expired
|
307 KB |
|
package-lock-ruby-30-node-18-pg-13-foreman-refspull9833merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
Expired
|
324 KB |
|
package-lock-ruby-30-node-18-pg-13-foreman-refspull9833merge-testkatello.json
Expired
|
324 KB |
|