Stabilize web test lane warning cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user