|
1 | | -#if FOOBAR |
2 | 1 | // This source code is dual-licensed under the Apache License, version |
3 | 2 | // 2.0, and the Mozilla Public License, version 2.0. |
4 | 3 | // Copyright (c) 2017-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. |
@@ -54,7 +53,7 @@ public class ConnectionRecoveryTests(ITestOutputHelper testOutputHelper) |
54 | 53 | /// The error _must_ be null when the connection is closed normally even the recovery is activated. |
55 | 54 | /// </summary> |
56 | 55 | /// <param name="activeRecovery"> If the recovery is enabled.</param> |
57 | | - [Theory] |
| 56 | + [SkippableTheory] |
58 | 57 | [InlineData(true)] |
59 | 58 | [InlineData(false)] |
60 | 59 | public async Task NormalCloseTheStatusShouldBeCorrectAndErrorNull(bool activeRecovery) |
@@ -104,11 +103,12 @@ public async Task NormalCloseTheStatusShouldBeCorrectAndErrorNull(bool activeRec |
104 | 103 | /// then the connection is closed normally. so the status should be: |
105 | 104 | /// - From Open to Closed |
106 | 105 | /// </summary> |
107 | | - [Fact] |
| 106 | + [SkippableFact] |
108 | 107 | public async Task UnexpectedCloseTheStatusShouldBeCorrectAndErrorNotNull() |
109 | 108 | { |
110 | 109 | Assert.Null(_connection); |
111 | 110 | Assert.Null(_management); |
| 111 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
112 | 112 |
|
113 | 113 | IConnection connection = await AmqpConnection.CreateAsync( |
114 | 114 | ConnectionSettingBuilder.Create().ContainerId(_containerId).RecoveryConfiguration( |
@@ -177,11 +177,12 @@ public async Task UnexpectedCloseTheStatusShouldBeCorrectAndErrorNotNull() |
177 | 177 | /// By default, the backoff is active it will be disabled after some failed attempts. |
178 | 178 | /// See the BackOffDelayPolicy class for more details. |
179 | 179 | /// </summary> |
180 | | - [Fact] |
| 180 | + [SkippableFact] |
181 | 181 | public async Task OverrideTheBackOffWithBackOffDisabled() |
182 | 182 | { |
183 | 183 | Assert.Null(_connection); |
184 | 184 | Assert.Null(_management); |
| 185 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
185 | 186 |
|
186 | 187 | IConnection connection = await AmqpConnection.CreateAsync( |
187 | 188 | ConnectionSettingBuilder.Create().ContainerId(_containerId).RecoveryConfiguration( |
@@ -240,11 +241,12 @@ public async Task OverrideTheBackOffWithBackOffDisabled() |
240 | 241 | /// When the topology-recover is Enabled the temp queues should be recovered. |
241 | 242 | /// the Queue is a temp queue with the Auto-Delete and Exclusive flag set to true. |
242 | 243 | /// </summary> |
243 | | - [Fact] |
| 244 | + [SkippableFact] |
244 | 245 | public async Task RecoveryTopologyShouldRecoverTheTempQueues() |
245 | 246 | { |
246 | 247 | Assert.Null(_connection); |
247 | 248 | Assert.Null(_management); |
| 249 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
248 | 250 |
|
249 | 251 | string queueName = $"temp-queue-should-recover-{true}"; |
250 | 252 | IConnection connection = await AmqpConnection.CreateAsync( |
@@ -288,11 +290,12 @@ public async Task RecoveryTopologyShouldRecoverTheTempQueues() |
288 | 290 | /// When the topology-recover is Disabled the temp queues should not be recovered. |
289 | 291 | /// the Queue is a temp queue with the Auto-Delete and Exclusive flag set to true. |
290 | 292 | /// </summary> |
291 | | - [Fact] |
| 293 | + [SkippableFact] |
292 | 294 | public async Task RecoveryTopologyShouldNotRecoverTheTempQueues() |
293 | 295 | { |
294 | 296 | Assert.Null(_connection); |
295 | 297 | Assert.Null(_management); |
| 298 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
296 | 299 |
|
297 | 300 | string queueName = $"temp-queue-should-recover-{false}"; |
298 | 301 | IConnection connection = await AmqpConnection.CreateAsync( |
@@ -325,13 +328,14 @@ public async Task RecoveryTopologyShouldNotRecoverTheTempQueues() |
325 | 328 | Assert.Equal(0, topologyListener.QueueCount()); |
326 | 329 | } |
327 | 330 |
|
328 | | - [Theory] |
| 331 | + [SkippableTheory] |
329 | 332 | [InlineData(true)] |
330 | 333 | [InlineData(false)] |
331 | 334 | public async Task RecoveryTopologyShouldRecoverExchanges(bool topologyEnabled) |
332 | 335 | { |
333 | 336 | Assert.Null(_connection); |
334 | 337 | Assert.Null(_management); |
| 338 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
335 | 339 |
|
336 | 340 | const string exchangeName = "exchange-should-recover"; |
337 | 341 | IConnection connection = await AmqpConnection.CreateAsync( |
@@ -384,13 +388,14 @@ public async Task RecoveryTopologyShouldRecoverExchanges(bool topologyEnabled) |
384 | 388 | connection.Dispose(); |
385 | 389 | } |
386 | 390 |
|
387 | | - [Theory] |
| 391 | + [SkippableTheory] |
388 | 392 | [InlineData(true)] |
389 | 393 | [InlineData(false)] |
390 | 394 | public async Task RecoveryTopologyShouldRecoverBindings(bool topologyEnabled) |
391 | 395 | { |
392 | 396 | Assert.Null(_connection); |
393 | 397 | Assert.Null(_management); |
| 398 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
394 | 399 |
|
395 | 400 | IConnection connection = await AmqpConnection.CreateAsync( |
396 | 401 | ConnectionSettingBuilder.Create() |
@@ -467,11 +472,12 @@ await SystemUtils.WaitUntilBindingsBetweenExchangeAndQueueDontExistAsync("exchan |
467 | 472 | /// |
468 | 473 | /// Only at the end the queue will be removed and bindings should be zero. |
469 | 474 | /// </summary> |
470 | | - [Fact] |
| 475 | + [SkippableFact] |
471 | 476 | public async Task RemoveAQueueShouldRemoveTheBindings() |
472 | 477 | { |
473 | 478 | Assert.Null(_connection); |
474 | 479 | Assert.Null(_management); |
| 480 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
475 | 481 |
|
476 | 482 | IConnection connection = await AmqpConnection.CreateAsync( |
477 | 483 | ConnectionSettingBuilder.Create() |
@@ -529,11 +535,12 @@ await SystemUtils.WaitUntilBindingsBetweenExchangeAndQueueDontExistAsync("e-remo |
529 | 535 | await connection.CloseAsync(); |
530 | 536 | } |
531 | 537 |
|
532 | | - [Fact] |
| 538 | + [SkippableFact] |
533 | 539 | public async Task RemoveAnExchangeShouldRemoveTheBindings() |
534 | 540 | { |
535 | 541 | Assert.Null(_connection); |
536 | 542 | Assert.Null(_management); |
| 543 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
537 | 544 |
|
538 | 545 | IConnection connection = await AmqpConnection.CreateAsync( |
539 | 546 | ConnectionSettingBuilder.Create() |
@@ -596,11 +603,12 @@ await SystemUtils.WaitUntilBindingsBetweenExchangeAndQueueDontExistAsync( |
596 | 603 | /// <summary> |
597 | 604 | /// This test is specific to check if the bindings are removed when a destination exchange is removed. |
598 | 605 | /// </summary> |
599 | | - [Fact] |
| 606 | + [SkippableFact] |
600 | 607 | public async Task RemoveAnExchangeBoundToAnotherExchangeShouldRemoveTheBindings() |
601 | 608 | { |
602 | 609 | Assert.Null(_connection); |
603 | 610 | Assert.Null(_management); |
| 611 | + Skip.If(true, "rabbitmq-dotnet-client-87"); |
604 | 612 |
|
605 | 613 | IConnection connection = await AmqpConnection.CreateAsync( |
606 | 614 | ConnectionSettingBuilder.Create() |
@@ -650,4 +658,3 @@ await SystemUtils.WaitUntilBindingsBetweenExchangeAndExchangeDontExistAsync( |
650 | 658 | await connection.CloseAsync(); |
651 | 659 | } |
652 | 660 | } |
653 | | -#endif |
|
0 commit comments