fediverse-devnet / feditest-tests-fediverse

The tests for the fediverse testsuite
MIT License
5 stars 4 forks source link

Test Webfinger serving #13

Closed snarfed closed 1 month ago

snarfed commented 6 months ago

Fetch /.well-known/webfinger?resource=acct:[user]@[instance], check that it returns a valid Webfinger response with at least one item with rel=self, type=application/ld+json or application/activity+json, and href=[id]. https://www.rfc-editor.org/rfc/rfc7033

julianlam commented 5 months ago

NodeBB's test suite for webfinger includes the following tests:

  1. should return a 404 Not Found if no user exists by that username
  2. should return a 400 Bad Request if the request is malformed (e.g. .well-known/webfinger?resource=acct:foobar)
  3. should return a valid WebFinger response otherwise (that is, 200 status code with subject, aliases, and links properties, and that those items match expected values for NodeBB
jernst commented 1 month ago

I think we have those now https://github.com/fediverse-devnet/feditest-tests-fediverse/tree/develop/tests/webfinger/server e2b9aaca484296db44b79ee1bc9bd61aa3090cae, so closing. Feel free to reopen if you think something is missing.