Skip to content

Commit 4f57489

Browse files
Merge branch 'master' into users/Meghana-Palaparthi/DTS_read_transaction
2 parents 4d0dc8d + 95cc5b1 commit 4f57489

17 files changed

Lines changed: 49 additions & 28 deletions

Microsoft.Azure.Cosmos/src/Regions.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public static class Regions
7575
/// </summary>
7676
public const string SoutheastAsia = "Southeast Asia";
7777

78+
/// <summary>
79+
/// Name of the Azure Southeast Asia 3 region in the Azure Cosmos DB service.
80+
/// </summary>
81+
public const string SoutheastAsia3 = "Southeast Asia 3";
82+
7883
/// <summary>
7984
/// Name of the Azure Japan East region in the Azure Cosmos DB service.
8085
/// </summary>
@@ -489,5 +494,15 @@ public static class Regions
489494
/// Name of the Azure Singapore North region in the Azure Cosmos DB service.
490495
/// </summary>
491496
public const string SingaporeNorth = "Singapore North";
497+
498+
/// <summary>
499+
/// Name of the Azure Saudi Arabia East region in the Azure Cosmos DB service.
500+
/// </summary>
501+
public const string SaudiArabiaEast = "Saudi Arabia East";
502+
503+
/// <summary>
504+
/// Name of the Azure West Central US FRE region in the Azure Cosmos DB service.
505+
/// </summary>
506+
public const string WestCentralUSFRE = "West Central US FRE";
492507
}
493508
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ public async Task AddressRefreshTimeoutTest()
381381
}
382382
}
383383

384+
[TestMethod]
384385
[Owner("dkunda")]
385386
[TestCategory("MultiRegion")]
386387
[DataRow(true, DisplayName = "Test scenario when binary encoding is enabled at client level.")]
@@ -2243,7 +2244,7 @@ public async Task ClinetOverrides0msRequestTimeoutValueForPPAF()
22432244

22442245
CrossRegionHedgingAvailabilityStrategy strat = cosmosClient.DocumentClient.ConnectionPolicy.AvailabilityStrategy as CrossRegionHedgingAvailabilityStrategy;
22452246
Assert.IsNotNull(strat);
2246-
Assert.AreNotEqual(0, strat.Threshold);
2247+
Assert.AreNotEqual(TimeSpan.Zero, strat.Threshold);
22472248
}
22482249

22492250

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ public async Task ItemRequestOptionAccessConditionTest(bool binaryEncodingEnable
23902390
Assert.IsNotNull(responseMessage);
23912391
Assert.IsNull(responseMessage.Content);
23922392
Assert.AreEqual(HttpStatusCode.PreconditionFailed, responseMessage.StatusCode, responseMessage.ErrorMessage);
2393-
Assert.AreNotEqual(responseMessage.Headers.ActivityId, Guid.Empty);
2393+
Assert.AreNotEqual(Guid.Empty.ToString(), responseMessage.Headers.ActivityId);
23942394
Assert.IsTrue(responseMessage.Headers.RequestCharge > 0);
23952395
Assert.IsFalse(string.IsNullOrEmpty(responseMessage.ErrorMessage));
23962396
Assert.IsTrue(responseMessage.ErrorMessage.Contains("One of the specified pre-condition is not met"));
@@ -2407,7 +2407,7 @@ public async Task ItemRequestOptionAccessConditionTest(bool binaryEncodingEnable
24072407
{
24082408
Assert.IsNotNull(e);
24092409
Assert.AreEqual(HttpStatusCode.PreconditionFailed, e.StatusCode, e.Message);
2410-
Assert.AreNotEqual(e.ActivityId, Guid.Empty);
2410+
Assert.AreNotEqual(Guid.Empty.ToString(), e.ActivityId);
24112411
Assert.IsTrue(e.RequestCharge > 0);
24122412
string expectedResponseBody = $"{Environment.NewLine}Errors : [{Environment.NewLine} \"One of the specified pre-condition is not met. Learn more: https://aka.ms/CosmosDB/sql/errors/precondition-failed\"{Environment.NewLine}]{Environment.NewLine}";
24132413
Assert.AreEqual(expectedResponseBody, e.ResponseBody);

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Fluent/ContainerSettingsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ await databaseForConflicts.DefineContainer(containerName, partitionKeyPath)
497497
containerSettings = containerResponse.Resource;
498498
Assert.IsNotNull(containerSettings.ConflictResolutionPolicy);
499499
Assert.AreEqual(ConflictResolutionMode.Custom, containerSettings.ConflictResolutionPolicy.Mode);
500-
Assert.AreEqual(UriFactory.CreateStoredProcedureUri(databaseForConflicts.Id, containerName, sprocName), containerSettings.ConflictResolutionPolicy.ResolutionProcedure);
500+
Assert.AreEqual(UriFactory.CreateStoredProcedureUri(databaseForConflicts.Id, containerName, sprocName).ToString(), containerSettings.ConflictResolutionPolicy.ResolutionProcedure);
501501
Assert.IsTrue(string.IsNullOrEmpty(containerSettings.ConflictResolutionPolicy.ResolutionPath));
502502
}
503503
finally

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Microsoft.Azure.Cosmos.EmulatorTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
<PackageReference Include="System.Security.SecureString" Version="4.3.0" />
6363
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.0" />
6464
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
65-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
65+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
6666
<PackageReference Include="Moq" Version="4.8.2" />
67-
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
68-
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
67+
<PackageReference Include="MSTest.TestAdapter" Version="3.7.3" />
68+
<PackageReference Include="MSTest.TestFramework" Version="3.7.3" />
6969
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
7070
<PackageReference Include="System.Reflection" Version="4.3.0" />
7171
</ItemGroup>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ await this.scripts.CreateTriggerStreamAsync(
153153
}
154154

155155

156+
[TestMethod]
156157
[DataRow(TriggerOperation.Create, false, DisplayName = "TriggerOperation - Create with Binary encoding disabled.")]
157158
[DataRow(TriggerOperation.Create, true, DisplayName = "TriggerOperation - Create with Binary encoding enabled.")]
158159
[DataRow(TriggerOperation.Upsert, false, DisplayName = "TriggerOperation - Upsert with Binary encoding disabled.")]

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Microsoft.Azure.Cosmos.Performance.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
2222
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.0.0" />
2323
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
24-
<PackageReference Include="MSTest.TestFramework" Version="1.2.0" />
24+
<PackageReference Include="MSTest.TestFramework" Version="3.7.3" />
2525
<PackageReference Include="Moq" Version="4.13.1" />
2626
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2727
<PackageReference Include="OpenTelemetry" Version="1.10.0" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// ------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// ------------------------------------------------------------

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetSDKAPI.net6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8193,6 +8193,11 @@
81938193
"Attributes": [],
81948194
"MethodInfo": "System.String QatarCentral;IsInitOnly:False;IsStatic:True;"
81958195
},
8196+
"System.String SaudiArabiaEast": {
8197+
"Type": "Field",
8198+
"Attributes": [],
8199+
"MethodInfo": "System.String SaudiArabiaEast;IsInitOnly:False;IsStatic:True;"
8200+
},
81968201
"System.String SingaporeCentral": {
81978202
"Type": "Field",
81988203
"Attributes": [],
@@ -8228,6 +8233,11 @@
82288233
"Attributes": [],
82298234
"MethodInfo": "System.String SoutheastAsia;IsInitOnly:False;IsStatic:True;"
82308235
},
8236+
"System.String SoutheastAsia3": {
8237+
"Type": "Field",
8238+
"Attributes": [],
8239+
"MethodInfo": "System.String SoutheastAsia3;IsInitOnly:False;IsStatic:True;"
8240+
},
82318241
"System.String SoutheastUS": {
82328242
"Type": "Field",
82338243
"Attributes": [],
@@ -8363,6 +8373,11 @@
83638373
"Attributes": [],
83648374
"MethodInfo": "System.String WestCentralUS;IsInitOnly:False;IsStatic:True;"
83658375
},
8376+
"System.String WestCentralUSFRE": {
8377+
"Type": "Field",
8378+
"Attributes": [],
8379+
"MethodInfo": "System.String WestCentralUSFRE;IsInitOnly:False;IsStatic:True;"
8380+
},
83668381
"System.String WestEurope": {
83678382
"Type": "Field",
83688383
"Attributes": [],

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<PackageReference Include="FluentAssertions" Version="5.10.3" />
5555
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.1" />
5656
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.7.1" />
57-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
57+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
5858
<PackageReference Include="Moq" Version="4.8.3" />
59-
<PackageReference Include="MSTest.TestAdapter" Version="1.2.0" />
60-
<PackageReference Include="MSTest.TestFramework" Version="1.2.0" />
59+
<PackageReference Include="MSTest.TestAdapter" Version="3.7.3" />
60+
<PackageReference Include="MSTest.TestFramework" Version="3.7.3" />
6161
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
6262
<PackageReference Include="coverlet.msbuild" Version="2.8.1">
6363
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)