diff --git a/src/Simple.OData.Tests.Client.Integration/TestBase.cs b/src/Simple.OData.Tests.Client.Integration/TestBase.cs index 6b79d5f2..4a50b907 100644 --- a/src/Simple.OData.Tests.Client.Integration/TestBase.cs +++ b/src/Simple.OData.Tests.Client.Integration/TestBase.cs @@ -8,7 +8,7 @@ public abstract class TestBase : IDisposable { private static readonly HttpClient metadataHttpClient = new(); - protected const string ODataV2ReadWriteUri = "https://services.odata.org/V2/%28S%28readwrite%29%29/OData/OData.svc/"; + protected const string ODataV2ReadWriteUri = "https://services.odata.org/V2/%28S%28readwrite%29%29/odata/OData.svc/"; protected const string ODataV3ReadOnlyUri = "https://services.odata.org/V3/OData/OData.svc/"; protected const string ODataV3ReadWriteUri = "https://services.odata.org/V3/%28S%28readwrite%29%29/OData/OData.svc/"; protected const string ODataV4ReadOnlyUri = "https://services.odata.org/V4/OData/OData.svc/"; @@ -47,7 +47,7 @@ private async static Task GetReadWriteUri(string serviceUri) if (serviceUri == ODataV2ReadWriteUri) { var i1 = uri.IndexOf(".org/V"); - var i2 = uri.IndexOf("/OData/"); + var i2 = uri.IndexOf("/OData/") == -1 ? uri.IndexOf("/odata/") : uri.IndexOf("/OData/"); #if NET7_0_OR_GREATER uri = string.Concat(uri.AsSpan()[..(i1 + 5)], uri.AsSpan(i1 + 8, i2 - i1 - 7), uri.AsSpan(i1 + 5, 2), uri.AsSpan()[i2..]); #else diff --git a/src/global.json b/src/global.json index 4dcacb20..11c26ad8 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.100", + "version": "8.0.300", "rollForward": "latestFeature" } } \ No newline at end of file