Skip to content

Commit

Permalink
[MetricsAdvisor] Fixing test failures (#22555)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinelski authored Jul 9, 2021
1 parent 2d513b5 commit 658a941
Show file tree
Hide file tree
Showing 27 changed files with 700 additions and 2,776 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ private DataFeed GetDataFeedWithOptionalMembersSet(string name, DataFeedSource d
{
Name = name,
DataSource = dataSource,
Granularity = new DataFeedGranularity(DataFeedGranularityType.Custom) { CustomGranularityValue = 1360 },
Granularity = new DataFeedGranularity(DataFeedGranularityType.Custom) { CustomGranularityValue = 3000 },
Schema = new DataFeedSchema() { TimestampColumn = "timestamp" },
IngestionSettings = ingestionSettings,
Description = "This data feed was created to test the .NET client.",
Expand Down Expand Up @@ -1957,7 +1957,7 @@ private void ValidateDataFeedWithOptionalMembersSet(DataFeed dataFeed, string ex

Assert.That(dataFeed.Granularity, Is.Not.Null);
Assert.That(dataFeed.Granularity.GranularityType, Is.EqualTo(DataFeedGranularityType.Custom));
Assert.That(dataFeed.Granularity.CustomGranularityValue, Is.EqualTo(1360));
Assert.That(dataFeed.Granularity.CustomGranularityValue, Is.EqualTo(3000));

Assert.That(dataFeed.Schema, Is.Not.Null);
Assert.That(dataFeed.Schema.MetricColumns, Is.Not.Null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,6 @@ public async Task GetHooksWithMinimumSetup(bool useTokenCredential)
var webHook = hook as WebNotificationHook;

Assert.That(webHook, Is.Not.Null);
Assert.That(webHook.CertificateKey, Is.Not.Null);
Assert.That(webHook.CertificatePassword, Is.Not.Null);
Assert.That(webHook.Username, Is.Not.Null);
Assert.That(webHook.Password, Is.Not.Null);
Assert.That(webHook.Headers, Is.Not.Null);
Assert.That(webHook.Headers.Values.Any(value => value == null), Is.False);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public async Task RefreshDataFeedIngestionAsync()

string dataFeedId = DataFeedId;

var startsOn = DateTimeOffset.Parse("2020-08-01T00:00:00Z");
var endsOn = DateTimeOffset.Parse("2020-08-03T00:00:00Z");
var startsOn = DateTimeOffset.Parse("2021-06-01T00:00:00Z");
var endsOn = DateTimeOffset.Parse("2021-06-03T00:00:00Z");

await adminClient.RefreshDataFeedIngestionAsync(dataFeedId, startsOn, endsOn);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 658a941

Please sign in to comment.