public async Task <IReadOnlyList <TestCase> > GetAllTestIdentitiesAsync(IEnumerable <string> repositories, CancellationToken cancellationToken = default) { _logger.LogDebug("Sending Query: GetAllTestIdentitiesAsync([{Repositories}])", repositories); var results = await ExecuteQueryAsync <TestCase>( GetQuery("GetAllTestIdentities"), cancellationToken, ("Repositories", string.Join(";", repositories))); _logger.LogDebug("Query Complete: GetAllTestIdentitiesAsync([{Repositories}])", repositories); return(results); }
public async Task <Timeline> IssueTimeline(string organization, string repository, string areaPrefix, CancellationToken cancellationToken = default) { _logger.LogDebug($"Sending Query: {nameof(IssueTimeline)}, ([{{Organization}}], [{{Repository}}])", organization, repository); var reader = await ExecuteQueryAsync <Repository>( GetQuery(nameof(IssueTimeline)), cancellationToken, ("Organization", organization), ("Repository", repository), ("AreaPrefix", areaPrefix)); _logger.LogDebug($"Query Complete: {nameof(IssueTimeline)}, ([{{Organization}}], [{{Repository}}])", organization, repository); return(AreaStatsByWeek.FromReader(reader)); }
public async Task <IReadOnlyList <Repository> > IssuesByMilestoneAndArea(string organization, string repository, string areaPrefix, CancellationToken cancellationToken = default) { _logger.LogDebug($"Sending Query: {nameof(IssuesByMilestoneAndArea)}, ([{{Organization}}], [{{Repository}}])", organization, repository); var reader = await ExecuteQueryAsync <Repository>( GetQuery(nameof(IssuesByMilestoneAndArea)), cancellationToken, ("Organization", organization), ("Repository", repository), ("AreaPrefix", areaPrefix)); _logger.LogDebug($"Query Complete: {nameof(IssuesByMilestoneAndArea)}, ([{{Organization}}], [{{Repository}}])", organization, repository); return(IssuesByRepository.FromReader(organization, reader)); }
public async Task <IReadOnlyList <TestResult> > GetFailingTestsAsync(DateTime startUtc, DateTime endUtc, IEnumerable <string> repositories, IEnumerable <string> branches, bool includeQuarantined, CancellationToken cancellationToken = default) { _logger.LogDebug("Sending Query: GetFailingTests({StartUtc}, {EndUtc}, [{Repositories}], [{Branches}])", startUtc, endUtc, repositories, branches); var results = await ExecuteQueryAsync <TestResult>( GetQuery("GetFailingTests"), cancellationToken, ("Start", startUtc), ("End", endUtc), ("Repositories", string.Join(";", repositories)), ("Branches", string.Join(";", branches)), ("IncludeQuarantined", includeQuarantined)); _logger.LogDebug("Query Complete: GetFailingTests({StartUtc}, {EndUtc}, [{Repositories}], [{Branches}])", startUtc, endUtc, repositories, branches); return(results); }
public async Task <IReadOnlyList <TestResult> > GetRunHistoryAsync(string?project, string?type, string?method, string?argumentHash, int limit = 1000, CancellationToken cancellationToken = default) { _logger.LogDebug("Sending Query: GetRunHistory({Project}, {Type}, {Method}, {ArgumentHash}, {Limit})", project, type, method, argumentHash, limit); var results = await ExecuteQueryAsync <TestResult>( GetQuery("GetRunHistory"), cancellationToken, ("TestProject", project), ("TestType", type), ("TestMethod", method), ("TestArgumentHash", argumentHash ?? string.Empty), ("Limit", limit)); _logger.LogDebug("Query Complete: GetRunHistory({Project}, {Type}, {Method}, {ArgumentHash}, {Limit})", project, type, method, argumentHash, limit); return(results); }
public async Task Query() { const string query = @" { orderedList { level requiredGold rewards { itemId quantity } } }"; var queryResult = await ExecuteQueryAsync <MonsterCollectionSheetType>( query, source : (Fixtures.TableSheetsFX.MonsterCollectionSheet, Fixtures.TableSheetsFX.MonsterCollectionRewardSheet) ); Dictionary <string, object> data = queryResult.Data.As <Dictionary <string, object> >(); Assert.NotEmpty(data); Assert.Null(queryResult.Errors); }