Skip to content

Align example backend edge tests with current server behavior - #80

Open
Herklos wants to merge 1 commit into
masterfrom
cursor/align-edge-backend-tests-89dc
Open

Herklos wants to merge 1 commit into
masterfrom
cursor/align-edge-backend-tests-89dc

Conversation

@Herklos

@Herklos Herklos commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Updates four stale tests in examples/app/backend/tests/test_edge.py so they match how the server handles author proofs, the withKeyring optimization, and rendezvous TTL expiry.

  • Reject spoofed authorPubkey with 403 and assert no document is stored
  • Rename and rewrite the author proof test: incomplete proof returns 400, invalid proof returns 403
  • Expect no keyring field when the reader cap scope does not cover _keyring
  • Use document-level ts in the TTL fixture so expired rendezvous reads return empty data

Tests only; no production code changes. Full backend suite: 121 passed.

Open in Web Open in Cursor 

Co-authored-by: herklos.dev <herklos.dev@protonmail.com>

This branch has not been deployed

No deployments
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.

2 participants