test(bug): SmsNotificationE2ETests SID "ACtest123" fails the ^AC[0-9a-fA-F]{32}$ guard — red since 2026-07-10 #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium (a shipped E2E has been failing unnoticed; also silences a secret-leak assertion) · Area: Central UI Playwright tests / Notifications · Found: Phase 1 rig gating
What
tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Notifications/SmsNotificationE2ETests.cs:44uses:The test fills that SID into the SMS-config form (line ~101). The management create path validates the Account SID against
^AC[0-9a-fA-F]{32}$(src/ZB.MOM.WW.ScadaBridge.ManagementService/ManagementActor.cs:2205).ACtest123isAC+ 6 chars, notAC+ 32 hex, so the create is rejected and the test's config-card / list assertions fail.The guard was added 2026-07-10 (
40088a21); the fixture predates it (2026-06-19), so this E2E has been red since then.Side effect
The test's Auth-Token secret-non-leak assertion is downstream of the create and is never reached — so that safety check has been silently inert too.
Fix
Change the fixture to a valid SID form, e.g.
AC+ 32 hex (AC00000000000000000000000000000001), and re-verify the secret-non-leak assertion runs.Fixed in c72922d4 (on main @
8524a7f7, pushed to origin). TestAccountSid is now a valid Twilio SID (AC + 32 hex: AC00000000000000000000000000000001) so the management create guard ^AC[0-9a-fA-F]{32}$ accepts it — the config-card + Auth-Token secret-non-leak assertions run again. Verified against the guard by inspection; the E2E itself runs only against a live cluster. Unit-level RepositoryCoverageTests keep their short SIDs (they construct SmsConfiguration directly, bypassing the guard).