Move management connection validation to management client and add BrokerVerifier tests #2359
Annotations
9 errors
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://localhost":
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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:15672":
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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#L56
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.<>c__DisplayClass12_0.<<ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection>b__1>d.MoveNext() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 56
--- End of stack trace from previous location ---
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 | Digest | |
---|---|---|---|
NuGet packages
Expired
|
1.62 MB |
sha256:1b5d04abf500f12fe19d37d2c75a63eac940d41ace167e44d92e09af50032feb
|
|