hub (unreleased): two end dates warn the operator 14 days before — an operator token and a box's web certificate (R-1379, D77); the other sixteen as a design table
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
68292e40f6
commit
86bb912a4b
11 files changed
+527
-5
No files matched your search
@@ -0,0 +1,44 @@
|
||||
== MUTATION: more than a name leaves the box (a slice of the stored certificate field is appended to the name)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EndDatesAndNoKeyMaterial (0.00s)
|
||||
webcert_test.go:68: certificates = [{Domain:old.example.hu Zz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K NotAfter:2026-11-20T01:46:00Z Issuer:old.example.hu} {Domain:*.example.hu cFFzCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K NotAfter:2027-0
|
||||
== MUTATION: the end date is the start date
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EndDatesAndNoKeyMaterial (0.00s)
|
||||
webcert_test.go:68: certificates = [{Domain:old.example.hu NotAfter:2026-08-22T01:46:00Z Issuer:old.example.hu} {Domain:*.example.hu NotAfter:2026-10-21T01:46:00Z Issuer:*.example.hu}], want old.example.hu 2026-11-20 first, then *
|
||||
--- FAIL: TestReadWebCerts_EmptyMissingAndBroken (0.01s)
|
||||
webcert_test.go:117: cap: 8 entries, first {Domain:na.example.hu NotAfter:2026-10-03T00:00:00Z Issuer:na.example.hu}
|
||||
== MUTATION: the soonest end is not first
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EndDatesAndNoKeyMaterial (0.00s)
|
||||
webcert_test.go:68: certificates = [{Domain:*.example.hu NotAfter:2027-01-19T01:46:00Z Issuer:*.example.hu} {Domain:old.example.hu NotAfter:2026-11-20T01:46:00Z Issuer:old.example.hu}], want old.example.hu 2026-11-20 first, then *
|
||||
--- FAIL: TestReadWebCerts_EmptyMissingAndBroken (0.00s)
|
||||
webcert_test.go:117: cap: 8 entries, first {Domain:nl.example.hu NotAfter:2027-01-12T00:00:00Z Issuer:nl.example.hu}
|
||||
== MUTATION: a broken store's content is put in the error
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EmptyMissingAndBroken (0.01s)
|
||||
webcert_test.go:102: a broken store: err = web certificate store is not readable JSON: {"letsencrypt": SECRET-LOOKING-BYTES, want an error that does not quote the file
|
||||
== MUTATION: an empty store is an error (every new box would warn)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EmptyMissingAndBroken (0.00s)
|
||||
webcert_test.go:93: an empty store: [], web certificate store is not readable JSON
|
||||
== MUTATION: no cap on the list
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestReadWebCerts_EmptyMissingAndBroken (0.01s)
|
||||
webcert_test.go:117: cap: 12 entries, first {Domain:na.example.hu NotAfter:2027-01-01T00:00:00Z Issuer:na.example.hu}
|
||||
|
||||
6 mutations, 0 not a red-proof
|
||||
== MUTATION: the report reads another folder than Traefik's
|
||||
*** NOT A RED-PROOF *** (mutant rc=0 built=True real rc=0)
|
||||
== MUTATION: BuildReport never fills the field
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestWebCertsForReport_PathFieldAndBrokenStore (0.00s)
|
||||
web_certs_report_test.go:57: BuildReport assigns r.WebCerts from webCertsForReport 0 time(s), want 1
|
||||
|
||||
2 mutations, 1 not a red-proof
|
||||
== MUTATION: the report reads another folder than Traefik's — done again: the first run was GREEN (the test had no certificate in the folder; one was added, with a decoy in the wrong folder)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestWebCertsForReport_PathFieldAndBrokenStore (0.00s)
|
||||
web_certs_report_test.go:50: certificates read for the report = [{Domain:decoy.example.hu NotAfter:2026-12-01T00:00:00Z Issuer:decoy.example.hu}], want the one in <stacks>/traefik/acme.json
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
@@ -0,0 +1,60 @@
|
||||
== MUTATION: nothing is told before the end date (the old behaviour)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_FourteenDaysOnceThenEndedOnce (0.00s)
|
||||
end_dates_test.go:65: inside the 14 days, 31 hourly checks: 0 event(s), want ONE per end date: []
|
||||
== MUTATION: the warning comes at 30 days, not 14
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_FourteenDaysOnceThenEndedOnce (0.00s)
|
||||
end_dates_test.go:58: at more than 14 days: [|operator_token_ends_soon|warning|The operator access token „CC hub token” ends in 16 day(s), on 2026-11-30. On that day every script that uses it gets 401 (for one: the release step th
|
||||
== MUTATION: the warning is repeated at every hourly check
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_FourteenDaysOnceThenEndedOnce (0.00s)
|
||||
end_dates_test.go:65: inside the 14 days, 31 hourly checks: 62 event(s), want ONE per end date: [|operator_token_ends_soon|warning|The operator access token „CC hub token” ends in 13 day(s), on 2026-11-30. On that day every script
|
||||
== MUTATION: the passed end date is not told again as ended
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_FourteenDaysOnceThenEndedOnce (0.00s)
|
||||
end_dates_test.go:82: after the end date: []
|
||||
== MUTATION: a renewed certificate is still told (the key ignores the end date)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_RenewedAndLongGoneAreQuiet (0.00s)
|
||||
end_dates_test.go:112: the new certificate's own warning: 1 event(s)
|
||||
== MUTATION: a token that ended long ago is told at the first run
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_RenewedAndLongGoneAreQuiet (0.00s)
|
||||
end_dates_test.go:97: a token that ended 120 days ago and a certificate 40 days out: [|operator_token_ends_soon|error|The operator access token „old” ENDED on 2026-07-17 and is not replaced: every script that uses it gets 401. Do:
|
||||
== MUTATION: the box's name is not checked
|
||||
*** NOT A RED-PROOF *** (mutant rc=1 built=False real rc=0)
|
||||
FAIL gitea.dooplex.hu/admin/felhom-hub/internal/monitor [build failed]
|
||||
== MUTATION: the box's list has no cap
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_TheBoxesWordsAreChecked (0.00s)
|
||||
end_dates_test.go:141: household „many”: 20 event(s), want the cap 8
|
||||
== MUTATION: the token's name is not checked
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_TheBoxesWordsAreChecked (0.00s)
|
||||
end_dates_test.go:135: an unchecked word of a box or a token name reached an event:
|
||||
== MUTATION: a duplicate row of a household is read twice
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_TheBoxesWordsAreChecked (0.00s)
|
||||
end_dates_test.go:135: an unchecked word of a box or a token name reached an event:
|
||||
|
||||
10 mutations, 1 not a red-proof
|
||||
(the wiring mutation did not run: its spec matched nothing; done again at the end)
|
||||
== MUTATION: the end-date warnings reach the household
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDateEventsAreOperatorOnly (0.00s)
|
||||
box_clock_operator_only_test.go:18: web_cert_ends_soon must be operator-only
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
== MUTATION: the box's name is not checked — done again: the first mutant did not compile (an import was left unused)
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestEndDates_TheBoxesWordsAreChecked (0.00s)
|
||||
end_dates_test.go:135: an unchecked word of a box or a token name reached an event:
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
== MUTATION: the end-date check is not on the sweep — done again: gofmt had moved the comment, so the first spec matched nothing
|
||||
RED on the mutant, GREEN on the real file
|
||||
--- FAIL: TestR1383_MainWiresTheSilentFailureChecks (0.00s)
|
||||
r1383_wiring_test.go:72: main.go: end-date sweep — found 0 time(s), want 1
|
||||
|
||||
1 mutations, 0 not a red-proof
|
||||
Reference in new issue
Block a user