-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I'm not sure what the test actually tests for so no clue what to fix.
Maybe someone can enlighten me?
output:
2025-05-08T14:37:43Z [ERROR] feditest: Ended test webfinger.server.4__1_accepts_all_link_rels_in_query::accepts_unknown_link_rels_in_query in Quickstart WebFinger with Exception:
Traceback (most recent call last):
File "/home/sash/scm/feditest/lib/python3.12/site-packages/feditest/testrun.py", line 209, in run
self.test_from_test_function.test_function(**args)
File "/home/sash/scm/feditest/feditest-tests-fediverse/tests/webfinger/server/4__1_accepts_all_link_rels_in_query.py", line 113, in accepts_unknown_link_rels_in_query
assert_that(
File "/home/sash/scm/feditest/lib/python3.12/site-packages/feditest/__init__.py", line 324, in assert_that
_assert_match(actual=actual_or_assertion, matcher=matcher, reason=reason, spec_level=spec_level, interop_level=interop_level)
File "/home/sash/scm/feditest/lib/python3.12/site-packages/feditest/__init__.py", line 292, in _assert_match
raise AssertionFailure(spec_level, interop_level, description)
feditest.AssertionFailure: AssertionFailure (Must, Problem): ok
Expected: No exception other than: WrongContentTypeError,InvalidMediaTypeError,InvalidRelError
but: was <WebFingerQueryDiagResponse(http_request_response_pair=HttpRequestResponsePair(request=HttpRequest(parsed_uri=ParsedNonAcctUri(https://local.contentnation.net/.well-known/webfinger?resource=acct%3Agrumpydevelop%40local.contentnation.net), method='GET', accept_header=None, payload=None, content_type=None, when_started=datetime.datetime(2025, 5, 8, 12, 37, 21, 38164, tzinfo=datetime.timezone.utc)), final_request=HttpRequest(parsed_uri=ParsedNonAcctUri(https://local.contentnation.net/.well-known/webfinger?resource=acct%3Agrumpydevelop%40local.contentnation.net), method='GET', accept_header=None, payload=None, content_type=None, when_started=datetime.datetime(2025, 5, 8, 12, 37, 21, 38164, tzinfo=datetime.timezone.utc)), response=HttpResponse(http_status=200, response_headers=<MultiDict('date': 'Thu, 08 May 2025 12:37:43 GMT', 'server': 'Apache/2.4.63 (Gentoo)', 'vary': 'accept,content-type,Accept-Encoding', 'x-powered-by': 'PHP/8.3.20', 'access-control-allow-origin': '*', 'content-length': '511', 'content-type': 'application/jrd+json; charset=UTF-8')>, payload=b'{"subject":"acct:grumpydevelop@local.contentnation.net","aliases":["https:\\/\\/local.contentnation.net\\/grumpydevelop\\/"],"links":[{"rel":"self","type":"application\\/activity+json","href":"https:\\/\\/local.contentnation.net\\/grumpydevelop"},{"rel":"http:\\/\\/webfinger.net\\/rel\\/profile-page","type":"text\\/html","href":"https:\\/\\/local.contentnation.net\\/en\\/grumpydevelop\\/"},{"rel":"http:\\/\\/ostatus.org\\/schema\\/1.0\\/subscribe","template":"https:\\/\\/local.contentnation.net\\/authorize_interaction?uri={uri}"}]}', when_completed=datetime.datetime(2025, 5, 8, 12, 37, 21, 38564, tzinfo=datetime.timezone.utc))), jrd=<feditest.protocols.webfinger.diag.ClaimedJrd object at 0x7f6efdd15550>, exceptions=[])>
{
"subject": "acct:grumpydevelop@local.contentnation.net",
"aliases": [
"https://local.contentnation.net/grumpydevelop/"
],
"links": [
{
"rel": "self",
"type": "application/activity+json",
"href": "https://local.contentnation.net/grumpydevelop"
},
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://local.contentnation.net/en/grumpydevelop/"
},
{
"rel": "http://ostatus.org/schema/1.0/subscribe",
"template": "https://local.contentnation.net/authorize_interaction?uri={uri}"
}
]
}
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels