hub (unreleased): a box cannot mint operator events — only a queued job is told as refused, the give-up list is bounded (R-1383); docs for the clock-step fix and HSTS (R-1395, R-1050)
gates / gates (push) Successful in 2m3s
gates / gates (push) Successful in 2m3s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
1886030782
commit
186f3fca58
11 files changed
+184
-14
No files matched your search
@@ -38,3 +38,17 @@
|
||||
r1383_box_told_test.go:130: after the guest runs again: gave_up=1 ok=0, want one recovery
|
||||
|
||||
9 mutations, 0 not a red-proof
|
||||
== MUTATION: a job that was never queued is told (a box mints operator events)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestSignedJobOutcome_RefusedIsToldDoneIsNot (0.05s)
|
||||
r1383_box_told_test.go:52: events=2, want ONE for the refused job
|
||||
== MUTATION: a vmid the report does not list is read
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestPowerGaveUp_ToldOnceClearedOnlyByARunningGuest (0.07s)
|
||||
r1383_box_told_test.go:153: 500 invented guests and a list past the cap: gave_up=18 ok=1, want no new alarm
|
||||
== MUTATION: the give-up list has no cap
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestPowerGaveUp_ToldOnceClearedOnlyByARunningGuest (0.06s)
|
||||
r1383_box_told_test.go:153: 500 invented guests and a list past the cap: gave_up=3 ok=1, want no new alarm
|
||||
|
||||
3 mutations, 0 not a red-proof
|
||||
@@ -0,0 +1,31 @@
|
||||
== MUTATION: the key is built from the boot time (the defect)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootKey_AClockStepDoesNotMoveIt (0.00s)
|
||||
guest_boot_key_test.go:49: tokens = "1794112518-4242" / "1794112518-4242"
|
||||
== MUTATION: the key ignores the guest's init start (a guest reboot is not seen)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootKey_AClockStepDoesNotMoveIt (0.00s)
|
||||
guest_boot_key_test.go:49: tokens = "1794112518-4242" / "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-0"
|
||||
== MUTATION: an unreadable boot_id still gives a key
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootKey_AClockStepDoesNotMoveIt (0.00s)
|
||||
guest_boot_key_test.go:73: boot_id "" gave the key "-991234", want "" (the controller then reads the old token)
|
||||
guest_boot_key_test.go:73: boot_id "not-a-boot-id" gave the key "not-a-boot-id-991234", want "" (the controller then reads the old token)
|
||||
guest_boot_key_test.go:73: boot_id "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11\nx" gave the key "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11\nx-991234", want "" (the controller then reads the old token)
|
||||
== MUTATION: a guest that does not run gives a key
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootKey_AClockStepDoesNotMoveIt (0.00s)
|
||||
guest_boot_key_test.go:81: a guest that does not run gave the key "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-"
|
||||
|
||||
4 mutations, 0 not a red-proof
|
||||
(the first two /disks mutants did not compile and proved nothing; done again below)
|
||||
== MUTATION: /disks does not carry the key under its name
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestDisks_CarriesBothBootTokens (0.00s)
|
||||
guest_boot_key_test.go:103: /disks boot tokens: id="boot-1" key="", want boot-1 and key-1 ({"ok":true,"data":{"disks":[],"guest_boot_id":"boot-1","guest_boot_k":"key-1","vmid":8200}}
|
||||
== MUTATION: /disks swaps the two tokens (older controllers lose their signal)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestDisks_CarriesBothBootTokens (0.00s)
|
||||
guest_boot_key_test.go:103: /disks boot tokens: id="key-1" key="boot-1", want boot-1 and key-1 ({"ok":true,"data":{"disks":[],"guest_boot_id":"key-1","guest_boot_key":"boot-1","vmid":8200}}
|
||||
|
||||
2 mutations, 0 not a red-proof
|
||||
@@ -0,0 +1,39 @@
|
||||
== MUTATION: the key is ignored — the old rule decides (a clock step is a new boot again)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_AClockStepIsNotANewBoot (0.00s)
|
||||
guest_boot_verdict_test.go:48: THE CASE: the clock stepped, the key did not move: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794112550-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (true, "1794112550-4
|
||||
guest_boot_verdict_test.go:48: same boot, nothing moved: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794112518-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (true, "1794112518-4242"), want (false, "")
|
||||
guest_boot_verdict_test.go:48: a host reboot: the key changes: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794200000-3907", "c0ffee00-1111-2222-3333-444455556666-3907") = (true, "1794200000-3907"), want (true,
|
||||
== MUTATION: the old token still decides when a key is there
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_AClockStepIsNotANewBoot (0.00s)
|
||||
guest_boot_verdict_test.go:48: THE CASE: the clock stepped, the key did not move: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794112550-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (true, "5b1f6c1e-8f0
|
||||
guest_boot_verdict_test.go:48: same boot, nothing moved: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794112518-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (true, "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-
|
||||
== MUTATION: the move to the key recreates every app once
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_AClockStepIsNotANewBoot (0.00s)
|
||||
guest_boot_verdict_test.go:48: the first report with a key, same boot by the old token: the record moves, no recreate: guestBootVerdict("1794112518-4242", "1794112518-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (true, "5
|
||||
== MUTATION: the move keeps the old record (the key is never taken)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_AClockStepIsNotANewBoot (0.00s)
|
||||
guest_boot_verdict_test.go:48: the first report with a key, same boot by the old token: the record moves, no recreate: guestBootVerdict("1794112518-4242", "1794112518-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242") = (false, "
|
||||
== MUTATION: a real reboot is not seen once the key is in use
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_AClockStepIsNotANewBoot (0.00s)
|
||||
guest_boot_verdict_test.go:48: a host reboot: the key changes: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794200000-3907", "c0ffee00-1111-2222-3333-444455556666-3907") = (false, "c0ffee00-1111-2222-3333-444455
|
||||
guest_boot_verdict_test.go:48: a guest reboot: the key's second half changes: guestBootVerdict("5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242", "1794112518-991234", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-991234") = (false, "5b1f6c1e-8f
|
||||
guest_boot_verdict_test.go:48: the first report with a key, and the old token differs: a new boot: guestBootVerdict("1794112518-4242", "1794200000-3907", "c0ffee00-1111-2222-3333-444455556666-3907") = (false, "c0ffee00-1111-2222-3
|
||||
== MUTATION: the boot pass compares the old token itself (the verdict is not wired)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_IsWhatTheBootPassReads (0.00s)
|
||||
guest_boot_verdict_test.go:93: processGuestBootChange: guestBootVerdict(…, resp.GuestBootKey) calls=0 (want 1), raw uses of the old token=2 (want 0), persists of the verdict's token=3 (want 3)
|
||||
== MUTATION: the boot pass gives the verdict no key
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_IsWhatTheBootPassReads (0.00s)
|
||||
guest_boot_verdict_test.go:93: processGuestBootChange: guestBootVerdict(…, resp.GuestBootKey) calls=0 (want 1), raw uses of the old token=0 (want 0), persists of the verdict's token=3 (want 3)
|
||||
== MUTATION: the record moved to the key is not saved
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestGuestBootVerdict_IsWhatTheBootPassReads (0.00s)
|
||||
guest_boot_verdict_test.go:93: processGuestBootChange: guestBootVerdict(…, resp.GuestBootKey) calls=1 (want 1), raw uses of the old token=0 (want 0), persists of the verdict's token=2 (want 3)
|
||||
|
||||
8 mutations, 0 not a red-proof
|
||||
@@ -0,0 +1,18 @@
|
||||
== MUTATION: HSTS is back at one day
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestRenderForwardedHeaders_HTTPSOnly (0.00s)
|
||||
tunnel_test.go:169: HSTS must be one year (31536000) — decision 249 — got 86400 (constant 86400)
|
||||
== MUTATION: HSTS covers subdomains
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestRenderForwardedHeaders_HTTPSOnly (0.00s)
|
||||
tunnel_test.go:172: HSTS must not include subdomains nor preload, got true / false
|
||||
== MUTATION: HSTS asks for preload
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestRenderForwardedHeaders_HTTPSOnly (0.00s)
|
||||
tunnel_test.go:172: HSTS must not include subdomains nor preload, got false / true
|
||||
== MUTATION: the rendered file carries another number than the constant
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestRenderForwardedHeaders_HTTPSOnly (0.00s)
|
||||
tunnel_test.go:169: HSTS must be one year (31536000) — decision 249 — got 86400 (constant 31536000)
|
||||
|
||||
4 mutations, 0 not a red-proof
|
||||
Reference in new issue
Block a user