Client del sito contro il sito di prova (#36, S2)
verifica / controlli (push) Successful in 17s
verifica / prove (push) Successful in 15m4s
verifica / installatore (push) Successful in 4m22s
verifica / immagine (push) Successful in 15m55s

HttpSiteRequester è l'unica classe che parla col sito: va solo a
https://www.instagram.com/ o a un sito di prova di loopback, non segue i
rinvii, una richiesta per volta col permesso del Governatore, solo le
intestazioni del catalogo con l'user agent della sessione, e registra solo
operazione, forma del percorso e stato. Cookie rinnovati e claim finiscono
nella sessione (ISiteSession, per ora in memoria; la copia cifrata è S4).
SiteAnswerSignals traduce le risposte nei segnali di §7.6: 429 rallenta;
rinvii, 401/403, HTML o campi mancanti valgono come Verifica (H16).
Il sito di prova risponde alle richieste dirette come dice
richieste.prova.json e simula i casi d'arresto; una visita senza sessione
viva apre una sessione nuova anche per il client. Nulla è ancora collegato
al motore (S3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-16 18:34:12 +01:00
1 parent e10c25d12d
commit ce9691fe1c
19 files changed
+3563 -51

No files matched your search

+3 -2
View File
@@ -24,11 +24,12 @@ internal static class SyntheticSite
public static int Seed => ParseSeed(Environment.GetEnvironmentVariable(Variable));
/// <summary>Starts the test site with the seed of this run, and says which one in the output of the test.</summary>
public static Task<TestSite> StartAsync()
/// <param name="time">Clock of the site (dates, signed addresses); the system clock by default.</param>
public static Task<TestSite> StartAsync(TimeProvider? time = null)
{
var seed = Seed;
Console.WriteLine($"Sito di prova con il seme {seed.ToString(CultureInfo.InvariantCulture)} (si cambia con {Variable}).");
return TestSite.StartAsync(new TestSiteOptions { Seed = seed });
return TestSite.StartAsync(new TestSiteOptions { Seed = seed, Time = time ?? TimeProvider.System });
}
/// <summary>The seed written in <paramref name="value"/>: the default when it is empty, an error when it is not a number.</summary>