Move management connection validation to management client and add BrokerVerifier tests #2355
Annotations
10 errors
CreatePolicy_With_DeliveryLimit_Should_Be_Applied_To_Quorum_Queues(-1):
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L229
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (localhost:15672)
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
|
CreatePolicy_With_DeliveryLimit_Should_Be_Applied_To_Quorum_Queues(200):
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L229
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (localhost:15672)
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
|
GetFeatureFlags_Should_Return_FeatureFlag_Information:
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L195
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (localhost:15672)
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
|
GetOverview_Should_Return_Broker_Information:
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L177
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (localhost:15672)
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
|
GetQueue_Should_Return_Queue_Information_When_Exists:
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L162
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (localhost:15672)
----> System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
|
ValidateManagementConnection_Should_Not_Throw_With_Default_Management_Api_Connection("http://localhost"):
_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs#L46
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__13_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 46
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#L46
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__13_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 46
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#L46
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__13_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 46
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#L46
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__13_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 46
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#L46
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__13_0() in /_/src/NServiceBus.Transport.RabbitMQ.Tests/ManagementClientTests.cs:line 46
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)>
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
NuGet packages
Expired
|
1.62 MB |
|