Skip to content

Move management connection validation to management client #2358

Move management connection validation to management client

Move management connection validation to management client #2358

Triggered via pull request January 13, 2025 22:31
Status Failure
Total duration 31m 39s
Artifacts 1

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

7 errors
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://localhost"): _/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L49
Assert.That(code, new ThrowsNothingConstraint()) Expected: No Exception to be thrown But was: <System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:15672) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at NServiceBus.Transport.RabbitMQ.ManagementClient.ManagementClient.ValidateManagementConnection(CancellationToken cancellationToken) in /_/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementClient/ManagementClient.cs:line 95 at NServiceBus.Transport.RabbitMQ.Tests.ManagementClientTests.<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__12_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 49 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://localhost:15672"): _/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L49
Assert.That(code, new ThrowsNothingConstraint()) Expected: No Exception to be thrown But was: <System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:15672) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at NServiceBus.Transport.RabbitMQ.ManagementClient.ManagementClient.ValidateManagementConnection(CancellationToken cancellationToken) in /_/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementClient/ManagementClient.cs:line 95 at NServiceBus.Transport.RabbitMQ.Tests.ManagementClientTests.<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__12_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 49 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://copa:abc123xyz@localhost"): _/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L49
Assert.That(code, new ThrowsNothingConstraint()) Expected: No Exception to be thrown But was: <System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:15672) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at NServiceBus.Transport.RabbitMQ.ManagementClient.ManagementClient.ValidateManagementConnection(CancellationToken cancellationToken) in /_/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementClient/ManagementClient.cs:line 95 at NServiceBus.Transport.RabbitMQ.Tests.ManagementClientTests.<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__12_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 49 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://guest:guest@localhost"): _/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L49
Assert.That(code, new ThrowsNothingConstraint()) Expected: No Exception to be thrown But was: <System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:15672) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at NServiceBus.Transport.RabbitMQ.ManagementClient.ManagementClient.ValidateManagementConnection(CancellationToken cancellationToken) in /_/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementClient/ManagementClient.cs:line 95 at NServiceBus.Transport.RabbitMQ.Tests.ManagementClientTests.<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__12_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 49 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://guest:guest@localhost:15672"): _/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L49
Assert.That(code, new ThrowsNothingConstraint()) Expected: No Exception to be thrown But was: <System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:15672) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at NServiceBus.Transport.RabbitMQ.ManagementClient.ManagementClient.ValidateManagementConnection(CancellationToken cancellationToken) in /_/src/NServiceBus.Transport.RabbitMQ/Administration/ManagementClient/ManagementClient.cs:line 95 at NServiceBus.Transport.RabbitMQ.Tests.ManagementClientTests.<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__12_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 49 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.ExceptionHelper.RecordException(Delegate parameterlessDelegate, String parameterName)>
Windows
Exit code = 1
Windows
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
NuGet packages
1.62 MB