Stabilize web test lane warning cleanup

This commit is contained in:
master
2026-04-06 00:51:15 +03:00
parent fc798a1573
commit f8e4bf65fb
35 changed files with 258 additions and 138 deletions

View File

@@ -83,7 +83,9 @@ internal static class TrustCommandHandlers
// Fetch initial TUF metadata
Console.WriteLine($"Fetching TUF metadata from {tufUrl}...");
using var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(30) };
using var httpClient = StellaOps.Cli.Services.CliHttpClients.CreateClient(
services,
timeout: TimeSpan.FromSeconds(30));
// Fetch root.json
var rootResponse = await httpClient.GetAsync($"{tufUrl.TrimEnd('/')}/root.json", cancellationToken);
@@ -168,7 +170,9 @@ internal static class TrustCommandHandlers
Console.WriteLine($"Syncing TUF metadata from {config.TufUrl}...");
using var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(30) };
using var httpClient = StellaOps.Cli.Services.CliHttpClients.CreateClient(
services,
timeout: TimeSpan.FromSeconds(30));
var tufUrl = config.TufUrl.TrimEnd('/');
// Fetch timestamp first (freshness indicator)