Some quick thoughts on Unit Testing ActivityPub
Web page · https://shkspr.mobi/blog/2026/10/some-thoughts-on-unit-testing-activitypub
First seen by Oriel on .
AI summary
This post describes building ActivityPub unit tests for ActivityBot and the difficulties of validating messages, verifying signatures, and testing interoperability with external servers.
- ActivityPub username validation must account for domain rules, Internationalised Domain Names, Emoji domains, and unclear user-part syntax.
- Message validation is complicated by scattered specifications, although JSON Schemas cover some message types.
- Signature verification requires replayable captured signatures, while generating signatures ultimately requires testing their acceptance.
- Interoperability tests must communicate with external servers; sending signed requests is repeatable, but receiving messages requires controlling a public server.
- The author is publishing tests, messages, and signatures for other ActivityPub projects to reuse.
#activitypub #unit testing #http signatures #mastodon
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | gwuebx | https://shkspr.mobi/blog/2026/10/some-thoughts-on-unit-testing-activitypub/ Read discussion |