Skip to content

Test 017: deleting a message for good - #28

Merged
markmnl merged 1 commit into
mainfrom
test-delete-for-good
Nov 26, 2026
Merged

markmnl merged 1 commit into
mainfrom
test-delete-for-good

Conversation

@markmnl

@markmnl markmnl commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

Adds test/tests/017-delete-for-good.sh, covering DELETE /fmsg/:id?permanent=true:

  • Across hosts: Alice (hairpin) sends Bob (example) a message. Bob deletes it for good and his host removes it; Alice still has her copy until she deletes it too.
  • On one host: Bob sends Carol a message. Carol's delete leaves it on the host because Bob still holds it; Bob's delete then removes it.
  • A deleted message answers 404 to its former holder, and a second delete answers 404.

The removal check runs fmsg_api_delivery_pending from fmsg-webapi's dd.sql. No test reached it, which is how this stack's copy of that schema went without the function for four weeks (fixed in #27) with the suite still green.

Testing

  • The suite passes 17/17 locally.
  • With the function dropped from the example stack's database, the new test fails; with it restored, it passes.

🤖 Generated with Claude Code

Each participant deletes their own copy, and a host removes a message once
nobody on it holds it and no delivery of it is pending. That check runs
fmsg_api_delivery_pending from fmsg-webapi's dd.sql, which no test reached:
the stack's copy of that schema was missing the function for four weeks
without a failure.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@markmnl
markmnl merged commit 7d8b034 into main Nov 26, 2026
1 check passed
@markmnl
markmnl deleted the test-delete-for-good branch November 26, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant