Skip to content

Commit 0f0f39e

Browse files
committed
Code changes to run similar tests sequentially.
1 parent b4912ce commit 0f0f39e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemIntegrationTests.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ await this.container.DeleteItemAsync<CosmosIntegrationTestObject>(
471471
[TestMethod]
472472
[TestCategory("MultiRegion")]
473473
[DoNotParallelize]
474-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
475474
[DataRow(ConnectionMode.Direct, "15", "10", DisplayName = "Direct Mode - Scenario when the total iteration count is 15 and circuit breaker consecutive failure threshold is set to 10.")]
476475
[DataRow(ConnectionMode.Direct, "25", "20", DisplayName = "Direct Mode - Scenario when the total iteration count is 25 and circuit breaker consecutive failure threshold is set to 20.")]
477476
[DataRow(ConnectionMode.Direct, "35", "30", DisplayName = "Direct Mode - Scenario when the total iteration count is 35 and circuit breaker consecutive failure threshold is set to 30.")]
@@ -608,7 +607,6 @@ public async Task ReadItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccountA
608607
[TestMethod]
609608
[TestCategory("MultiRegion")]
610609
[DoNotParallelize]
611-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
612610
[DataRow(ConnectionMode.Direct, DisplayName ="Direct Mode")]
613611
[DataRow(ConnectionMode.Gateway, DisplayName = "Gateway Mode")]
614612
[Owner("nalutripician")]
@@ -737,7 +735,6 @@ public async Task ReadItemAsync_WithCircuitBreakerEnabledAndTimeoutCounterOverwr
737735
[TestMethod]
738736
[TestCategory("MultiRegion")]
739737
[DoNotParallelize]
740-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
741738
[Owner("dkunda")]
742739
[Timeout(70000)]
743740
public async Task ReadItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccountAndServiceUnavailableReceivedFromTwoRegions_ShouldApplyPartitionLevelOverrideToThridRegion()
@@ -903,7 +900,6 @@ public async Task ReadItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccountA
903900
[TestMethod]
904901
[TestCategory("MultiRegion")]
905902
[DoNotParallelize]
906-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
907903
[Owner("dkunda")]
908904
[Timeout(70000)]
909905
public async Task ReadItemAsync_WithNoPreferredRegionsAndCircuitBreakerEnabledAndSingleMasterAccountAndServiceUnavailableReceived_ShouldApplyPartitionLevelOverride()
@@ -1023,7 +1019,6 @@ public async Task ReadItemAsync_WithNoPreferredRegionsAndCircuitBreakerEnabledAn
10231019
[Owner("dkunda")]
10241020
[TestCategory("MultiRegion")]
10251021
[DoNotParallelize]
1026-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
10271022
[Timeout(70000)]
10281023
public async Task ReadItemAsync_WithCircuitBreakerDisabledAndSingleMasterAccountAndServiceUnavailableReceived_ShouldNotApplyPartitionLevelOverride()
10291024
{
@@ -1116,7 +1111,6 @@ public async Task ReadItemAsync_WithCircuitBreakerDisabledAndSingleMasterAccount
11161111
[TestMethod]
11171112
[Owner("dkunda")]
11181113
[DoNotParallelize]
1119-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
11201114
[TestCategory("MultiRegion")]
11211115
[Timeout(70000)]
11221116
public async Task CreateItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccountAndServiceUnavailableReceived_ShouldNotApplyPartitionLevelOverride()
@@ -1198,7 +1192,6 @@ public async Task CreateItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccoun
11981192
[Owner("dkunda")]
11991193
[TestCategory("MultiMaster")]
12001194
[DoNotParallelize]
1201-
[Ignore("We will enable this test once the test staging account used for multi master validation starts supporting thin proxy.")]
12021195
[DataRow(ConnectionMode.Direct, "15", "10", DisplayName = "Direct Mode - Scenario whtn the total iteration count is 15 and circuit breaker consecutive failure threshold is set to 10.")]
12031196
[DataRow(ConnectionMode.Direct, "25", "20", DisplayName = "Direct Mode - Scenario whtn the total iteration count is 25 and circuit breaker consecutive failure threshold is set to 20.")]
12041197
[DataRow(ConnectionMode.Direct, "35", "30", DisplayName = "Direct Mode - Scenario whtn the total iteration count is 35 and circuit breaker consecutive failure threshold is set to 30.")]
@@ -2371,7 +2364,6 @@ public async Task QueryItemAsync_WithCircuitBreakerEnabledMultiRegionAndServiceR
23712364
}
23722365
else if (isRegion2Available)
23732366
{
2374-
Trace.WriteLine("Current Attempt: " + attemptCount + ", Threshold: " + thresholdCounter + ", RegionCount: " + contactedRegions.Count.ToString() + ", Regions:" + string.Join(",", contactedRegions) + response.Diagnostics.ToString());
23752367
if (thresholdCounter <= ppcbDefaultThreshold)
23762368
{
23772369
Assert.IsTrue(contactedRegions.Count == 2, "Asserting that when the query request succeeds before the consecutive failure count reaches the threshold, the partition didn't fail over to the next region, and the request was retried." + response.Diagnostics.ToString());

0 commit comments

Comments
 (0)