From f8aa1c59bb7487fdb358a76ce472a2de555e053a Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Thu, 3 Sep 2020 10:54:08 -0700 Subject: [PATCH 1/2] [Anomaly detector] Fix readme links and changelog release date for preview2 --- sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md | 2 +- sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md index 24a1c8c5dfc50..d030d88028865 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 3.0.0-preview.2 (2020-09-02) +## 3.0.0-preview.2 (2020-09-03) ### Breaking Changes - Renamed `AnomalyDetectorClient.EntireDetectAsync` and `AnomalyDetectorClient.EntireDetect` to `AnomalyDetectorClient.DetectEntireSeriesAsync` and `AnomalyDetectorClient.DetectEntireSeries`. diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md index a4ed91420c16d..6429dddf76dfb 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md @@ -86,7 +86,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [anomalydetector_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/src [anomalydetector_docs]: https://docs.microsoft.com/en-us/azure/cognitive-services/anomaly-detector/ -[anomalydetector_refdocs]: https://aka.ms/azsdk/net/docs/ref/anomalydetector +[anomalydetector_refdocs]: https://azure.github.io/azure-sdk-for-net/anomalydetector.html [anomalydetector_nuget_package]: https://www.nuget.org/packages/Azure.AI.AnomalyDetector [anomaly_detector_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/AnomalyDetectorClient.cs From a10edf1d777824c66a69c012e0351aa70f66ab89 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Thu, 3 Sep 2020 11:34:15 -0700 Subject: [PATCH 2/2] Fix stuck PR --- .../AnomalyDetectorClientLiveTests.cs | 12 ++++++------ .../tests/Infrastructure/TestData.cs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/AnomalyDetectorClient/AnomalyDetectorClientLiveTests.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/AnomalyDetectorClient/AnomalyDetectorClientLiveTests.cs index d2b6c2bc23b39..8e601155edfc9 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/AnomalyDetectorClient/AnomalyDetectorClientLiveTests.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/AnomalyDetectorClient/AnomalyDetectorClientLiveTests.cs @@ -35,12 +35,12 @@ public async Task GetResultForEntireDetect() request.Sensitivity = 95; var result = await client.DetectEntireSeriesAsync(request); - Assert.AreEqual(TestData.ExpectedEntireResult.ExpectedValues, result.Value.ExpectedValues); - Assert.AreEqual(TestData.ExpectedEntireResult.UpperMargins, result.Value.UpperMargins); - Assert.AreEqual(TestData.ExpectedEntireResult.LowerMargins, result.Value.LowerMargins); - Assert.AreEqual(TestData.ExpectedEntireResult.IsAnomaly, result.Value.IsAnomaly); - Assert.AreEqual(TestData.ExpectedEntireResult.IsPositiveAnomaly, result.Value.IsPositiveAnomaly); - Assert.AreEqual(TestData.ExpectedEntireResult.IsNegativeAnomaly, result.Value.IsNegativeAnomaly); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.ExpectedValues, result.Value.ExpectedValues); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.UpperMargins, result.Value.UpperMargins); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.LowerMargins, result.Value.LowerMargins); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.IsAnomaly, result.Value.IsAnomaly); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.IsPositiveAnomaly, result.Value.IsPositiveAnomaly); + Assert.AreEqual(TestData.ExpectedEntireDetectResult.IsNegativeAnomaly, result.Value.IsNegativeAnomaly); } [Test] diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Infrastructure/TestData.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Infrastructure/TestData.cs index e0c7b9d227606..e547609c89998 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Infrastructure/TestData.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/Infrastructure/TestData.cs @@ -63,7 +63,7 @@ internal static class TestData }, TimeGranularity.Monthly); - public static EntireDetectResponse ExpectedEntireResult = new EntireDetectResponse( + public static EntireDetectResponse ExpectedEntireDetectResult = new EntireDetectResponse( 12, new List {