Skip to content

Commit

Permalink
FIx to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Sep 1, 2023
1 parent 1e69571 commit 30d20a7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/RepoGovernance.Tests/SummaryItemsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public async Task UpdateRepoGovernanceSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -67,10 +67,10 @@ public async Task UpdateDevOpsMetricsSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -100,10 +100,10 @@ public async Task UpdateSamsFeatureFlagsSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -132,10 +132,10 @@ public async Task UpdateSamSmithNZdotComSummaryItemTest()

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -164,10 +164,10 @@ public async Task UpdateAzurePipelinesToGitHubActionsConverterWebSummaryItemTest

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
GitHubId,
GitHubSecret,
AzureStorageConnectionString,
DevOpsServiceURL,
user, owner, repo,
AzureTenantId,
AzureClientId,
Expand Down Expand Up @@ -274,8 +274,8 @@ public async Task GetSummaryItemsTest()
Assert.AreEqual(1, item2.Actions.Count);
Assert.AreEqual(0, item2.ActionRecommendations.Count);
Assert.AreEqual(1, item2.Dependabot.Count);
Assert.AreEqual(null, item2.DependabotFile);
Assert.AreEqual(null, item2.DependabotRoot);
Assert.IsNotNull(item2.DependabotFile);
Assert.IsNotNull(item2.DependabotRoot);
Assert.AreEqual(0, item2.DependabotRecommendations.Count);
//Assert.AreEqual("Consider adding a Dependabot file to automatically update dependencies", item2.DependabotRecommendations[0]);
Assert.IsNotNull(item2.BranchPolicies);
Expand Down

0 comments on commit 30d20a7

Please sign in to comment.