Exemple #1
0
        private async Task UpdateQuarantinedTestsAsync(KustoContext context, CancellationToken cancellationToken)
        {
            _logger.LogInformation("Reloading quarantined tests lists...");

            var list = await context.GetQuarantinedTestsAsync(
                new[] { "dotnet/aspnetcore", "dotnet-aspnetcore" },
                new[] { "refs/heads/master" },
                cancellationToken);

            _backgroundDataStore.UpdateQuarantinedTests(list);
        }
Exemple #2
0
        private async Task UpdateTestCaseListAsync(KustoContext context, CancellationToken cancellationToken)
        {
            _logger.LogInformation("Reloading test case lists...");

            var list = await context.GetAllTestIdentitiesAsync(
                new[] { "dotnet/aspnetcore", "dotnet-aspnetcore" },
                cancellationToken);

            // Build a data structure to hold all the data
            var testCollection = TestCollection.Build(list);

            _backgroundDataStore.UpdateTestCollection(testCollection);
        }