f-50: lab: image vérifiée, disques et seeds des VM #50

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-04 14:21:20 +02:00
commit d1cd943d86
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
7 changed files with 999 additions and 20 deletions

View file

@ -107,6 +107,14 @@ func TestCompute_TwoHypervisorsPlan(t *testing.T) {
}
}
func TestCompute_CarriesTheDeclaredImages(t *testing.T) {
p := compute(t, twoHypervisors)
want := []Image{{Name: "deb", URL: "https://example.invalid/deb.qcow2", Sums: "https://example.invalid/SHA512SUMS"}}
if !reflect.DeepEqual(p.Images, want) {
t.Errorf("images = %+v, want %+v", p.Images, want)
}
}
func TestCompute_IsStableAcrossRuns(t *testing.T) {
first := compute(t, twoHypervisors)
for i := 0; i < 20; i++ {