Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DevOpsMetrics.Core/DataAccess/LeadTimeForChangesDA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public static async Task<LeadTimeForChangesModel> GetGitHubLeadTimesForChanges(b
AverageBuildHours = averageBuildHours,
AveragePullRequestHours = leadTime,
LeadTimeForChangesMetric = leadTime + averageBuildHours,
LeadTimeForChangesMetricDescription = LeadTimeForChanges.GetLeadTimeForChangesRating(leadTime),
LeadTimeForChangesMetricDescription = LeadTimeForChanges.GetLeadTimeForChangesRating(leadTime + averageBuildHours),
PullRequests = utility.GetLastNItems(pullRequests, maxNumberOfItems),
NumberOfDays = numberOfDays,
MaxNumberOfItems = uiPullRequests.Count,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public List<AzureStorageTableModel> GetItems(string partitionKey)

// execute the query on the table
List<AzureStorageTableModel> list = table.CreateQuery<AzureStorageTableModel>()
//.Where(ent => ent.PartitionKey == partitionKey)
.Where(ent => ent.PartitionKey == partitionKey)
.ToList();

return list;
Expand Down
31 changes: 26 additions & 5 deletions src/DevOpsMetrics.Tests/Service/DORASummaryControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,39 @@ public void DORASummaryControllerGetIntegrationTest()
//Assert
Assert.IsNotNull(model);

}
[TestMethod]
public void DORASummaryControllerGetIntegrationTest2()
{
//Arrange
string organization = "samsmithnz";
string repository = "AzurePipelinesToGitHubActionsConverter";
DORASummaryController controller = new(base.Configuration);

//Act
DORASummaryItem model = controller.GetDORASummaryItem(organization, repository);

//Assert
Assert.IsNotNull(model);

}

[TestMethod]
public async Task DORASummaryControllerUpdateIntegrationTest()
{
//Arrange
string organization = "DeveloperMetrics";
string repository = "DevOpsMetrics";
string organization = "samsmithnz";
string repository = "AzurePipelinesToGitHubActionsConverter";
string branch = "main";
string workflowName = "1162561";
string workflowId = "1162561";
string resourceGroup = "DevOpsMetrics";
string workflowName = "CI/CD";
string workflowId = "38158";
string resourceGroup = "PipelinesToActions";
//string organization = "DeveloperMetrics";
//string repository = "DevOpsMetrics";
//string branch = "main";
//string workflowName = "CI/CD";
//string workflowId = "1162561";
//string resourceGroup = "DevOpsMetrics";
int numberOfDays = 30;
int maxNumberOfItems = 20;
DORASummaryController controller = new(base.Configuration);
Expand Down