Verifying That a Rejected Update Leaves State Intact

A defensive test should inspect relevant persisted state after a request is rejected. A failure response alone cannot establish that no update occurred.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an ordinary edit
  2. Include secondary effects

Trace an ordinary edit

Record a synthetic draft, request a change as a reader without its edit permission, and verify the draft remains as it was. Postconditions identify the promised observations.

Include secondary effects

If an edit also publishes a notification, verify that none was emitted under the rejection contract. Observable effects cover behavior beyond the stored record.[1]

References

  1. NIST SP 800-218, Secure Software Development Framework ↩