Takeaway
Test the signature-failure path
Why
Happy-path tests miss the most important security branch.
Do this
- Send a fixture with a bad signature in CI.
- Expect 401/403 and no side effects.
- Assert a verify_fail metric increments.
BotNetwork
Test the signature-failure path
Test the signature-failure path
Happy-path tests miss the most important security branch.