fix(test): prevent fixture password expiry after baseline restore

This commit is contained in:
cabbage committed 2026-10-27 06:03:02 +00:00
1 parent 34274f0f62
commit 14cb3570c1
3 files changed
+32

No files matched your search

+10
View File
@@ -45,6 +45,16 @@ func TestNativeFixtureAssets_HP_HARNESS_20(t *testing.T) {
}
}
testHost := read("scripts/windows/test-host")
for _, required := range []string{"configure_fixture_password_expiry", "Set-LocalUser -Name $name -PasswordNeverExpires $true", "prepare-fixture-password-expiry", "Fixture password still expires"} {
if !strings.Contains(testHost, required) {
t.Fatalf("native test-host is missing fixed fixture credential contract %q", required)
}
}
expiryStep := strings.Index(testHost, " step prepare-fixture-password-expiry")
cleanStep := strings.Index(testHost, " assert_clean_guest\n")
if expiryStep < 0 || cleanStep < expiryStep {
t.Fatal("fixture password expiration must be disabled before normal-user cleanliness checks")
}
for _, required := range []string{"xz -T0 -3", "accelerated_stage", "copy_stage_file", "--proxy", "--anyauth", "--continue-at", "rvbox.exe.xz", "retry_limit=4", "ConnectTimeout=10", "bundle transfer did not reach the expected SHA-256 manifest", "verified transfer_sha256", "reset-force-poweroff", "$run_root/.accelerated-stage.XXXXXX", "service-startup.log", "test-logs/rvbox.log"} {
if !strings.Contains(testHost, required) {
t.Fatalf("native test-host is missing compressed transfer contract %q", required)