From 83d4d0c671a0c2728a5da6e97948850ab5e2661c Mon Sep 17 00:00:00 2001 From: Rama krishnan Raghupathy Date: Wed, 9 Feb 2022 14:56:49 -0800 Subject: [PATCH] [Internal] API Version: Updates DefaultAPIVersion to v2019_10_14 to indicate merge support (#3015) --- Microsoft.Azure.Cosmos/src/CosmosClient.cs | 2 +- .../Microsoft.Azure.Cosmos.Tests/Contracts/ContractTests.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Microsoft.Azure.Cosmos/src/CosmosClient.cs b/Microsoft.Azure.Cosmos/src/CosmosClient.cs index a19583a181..473a2ab4d8 100644 --- a/Microsoft.Azure.Cosmos/src/CosmosClient.cs +++ b/Microsoft.Azure.Cosmos/src/CosmosClient.cs @@ -109,7 +109,7 @@ static CosmosClient() #if PREVIEW HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2020_07_15; #else - HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2018_12_31; + HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2019_10_14; #endif HttpConstants.Versions.CurrentVersionUTF8 = Encoding.UTF8.GetBytes(HttpConstants.Versions.CurrentVersion); diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/ContractTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/ContractTests.cs index b26e2fde9c..5221b181af 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/ContractTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/ContractTests.cs @@ -27,8 +27,8 @@ public void ApiVersionTest() Assert.AreEqual(HttpConstants.Versions.v2020_07_15, HttpConstants.Versions.CurrentVersion); CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2020_07_15), HttpConstants.Versions.CurrentVersionUTF8); #else - Assert.AreEqual(HttpConstants.Versions.v2018_12_31, HttpConstants.Versions.CurrentVersion); - CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2018_12_31), HttpConstants.Versions.CurrentVersionUTF8); + Assert.AreEqual(HttpConstants.Versions.v2019_10_14, HttpConstants.Versions.CurrentVersion); + CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2019_10_14), HttpConstants.Versions.CurrentVersionUTF8); #endif }