FediTest: Test Run Session 6/84

feditest-run-20241229-191246

This FediTest report requires a desktop or laptop-class monitor.

It cannot be viewed on a mobile device with a small screen.

Sorry about that. But then, you weren't going to use a phone to fix reported bugs, either, right?

Test Run Session Summary

Status Count
Passed
12 (66.7%)
Failed
Interoperability
Compromised Degraded Unaffected Unknown Total
Conformance Must
2
1
3
0
6 (33.3%)
Should
0
0
0
0
0 (0.0%)
Implied
0
0
0
0
0 (0.0%)
Unspecified
0
0
0
0
0 (0.0%)
Total
2 (11.1%)
1 (5.6%)
3 (16.7%)
0 (0.0%)
6 (33.3%)
Skipped
0
Errors
0
Total
18

Constellation

client

ImpInProcessNodeDriver
Imp
0.6.dev20241229191155

server

FediverseSaasNodeDriver
Bookwyrm
?

Test Results

Test: webfinger.server.4_1__2_parameter_ordering_not_significant::parameter_ordering

Parameter ordering is not significant.

Started 2024:12:29-19:13:50.921232Z, ended 2024:12:29-19:13:52.759632Z (duration: 0:00:01.838400)

Passed

Test: webfinger.server.4_2__14_must_only_redirect_to_https::must_only_redirect_to_https

Test that if the server redirected, the final URL is an HTTPS URL.

Started 2024:12:29-19:13:52.759696Z, ended 2024:12:29-19:13:53.276981Z (duration: 0:00:00.517285)

Passed

Test: webfinger.server.4_2__2_perform_query::normal_query

Perform a normal, simple query on an existing account.

Started 2024:12:29-19:13:53.277108Z, ended 2024:12:29-19:13:53.371746Z (duration: 0:00:00.094638)

AssertionFailure: AssertionFailure (Must, Problem): Accessed URI: "https://bookwyrm.social/.well-known/webfinger?resource=acct%3Amouse%40bookwyrm.social":
0: Wrong HTTP content type.
 -> "application/json"
Expected: No exception
     but: was <[WrongContentTypeError(HttpRequestResponsePair(request=HttpRequest(parsed_uri=ParsedNonAcctUri(https://bookwyrm.social/.well-known/webfinger?resource=acct%3Amouse%40bookwyrm.social), method='GET', accept_header=None, payload=None, content_type=None, when_started=datetime.datetime(2024, 12, 29, 19, 12, 46, 457527, tzinfo=datetime.timezone.utc)), final_request=HttpRequest(parsed_uri=ParsedNonAcctUri(https://bookwyrm.social/.well-known/webfinger?resource=acct%3Amouse%40bookwyrm.social), method='GET', accept_header=None, payload=None, content_type=None, when_started=datetime.datetime(2024, 12, 29, 19, 12, 46, 457527, tzinfo=datetime.timezone.utc)), response=HttpResponse(http_status=200, response_headers=<MultiDict('server': 'nginx/1.25.2', 'date': 'Sun, 29 Dec 2024 19:13:53 GMT', 'content-type': 'application/json', 'content-length': '272', 'connection': 'keep-alive', 'x-frame-options': 'DENY', 'content-security-policy': "default-src 'self' https://bookwyrm-social.sfo3.digitaloceanspaces.com; script-src 'self' https://bookwyrm-social.sfo3.digitaloceanspaces.com", 'vary': 'Accept-Language, Cookie', 'content-language': 'en-us', 'x-content-type-options': 'nosniff', 'referrer-policy': 'same-origin', 'cross-origin-opener-policy': 'same-origin', 'x-cache-status': 'HIT')>, payload=b'{"subject": "acct:mouse@bookwyrm.social", "links": [{"rel": "self", "type": "application/activity+json", "href": "https://bookwyrm.social/user/mouse"}, {"rel": "http://ostatus.org/schema/1.0/subscribe", "template": "https://bookwyrm.social/ostatus_subscribe?acct={uri}"}]}', when_completed=datetime.datetime(2024, 12, 29, 19, 12, 46, 457820, tzinfo=datetime.timezone.utc))))]>
./tests/webfinger/server/4_2__2_perform_query.py:20

Test: webfinger.server.4_2__3_requires_resource_uri::requires_resource_uri_http_status

Do not accept requests with missing resource parameter: HTTP status.

Started 2024:12:29-19:13:53.375902Z, ended 2024:12:29-19:13:53.481470Z (duration: 0:00:00.105568)

AssertionFailure: AssertionFailure (Must, Unaffected): Not HTTP status 400.
Accessed URI: "https://bookwyrm.social/.well-known/webfinger".
Expected: <400>
     but: was <404>
./tests/webfinger/server/4_2__3_requires_resource_uri.py:37

Test: webfinger.server.4_2__3_requires_resource_uri::requires_resource_uri_jrd

Do not accept requests with missing resource parameter: JRD content.

Started 2024:12:29-19:13:53.484199Z, ended 2024:12:29-19:13:53.570196Z (duration: 0:00:00.085997)

Passed

Test: webfinger.server.4_2__4_do_not_accept_malformed_resource_parameters::double_equals_http_status

Do not accept malformed resource parameters. Test HTTP status for inserting an extra = character.

Started 2024:12:29-19:13:53.570258Z, ended 2024:12:29-19:13:53.687450Z (duration: 0:00:00.117192)

AssertionFailure: AssertionFailure (Must, Unaffected): Not HTTP status 400
Accessed URI: "https://bookwyrm.social/.well-known/webfinger?resource==acct%3Amouse%40bookwyrm.social".
Expected: <400>
     but: was <404>
./tests/webfinger/server/4_2__4_do_not_accept_malformed_resource_parameters.py:112

Test: webfinger.server.4_2__4_do_not_accept_malformed_resource_parameters::double_equals_jrd

Do not accept malformed resource parameters. Test JRD content for inserting an extra = character.

Started 2024:12:29-19:13:53.688811Z, ended 2024:12:29-19:13:53.787229Z (duration: 0:00:00.098418)

Passed

Test: webfinger.server.4_2__4_do_not_accept_malformed_resource_parameters::requires_valid_resource_uri_http_status

Do not accept malformed resource parameters. Test HTTP status for missing acct: scheme.

Started 2024:12:29-19:13:53.787291Z, ended 2024:12:29-19:13:53.887881Z (duration: 0:00:00.100590)

AssertionFailure: AssertionFailure (Must, Unaffected): Not HTTP status 400
Accessed URI: "https://bookwyrm.social/.well-known/webfinger?resource=mouse@bookwyrm.social".
Expected: <400>
     but: was <404>
./tests/webfinger/server/4_2__4_do_not_accept_malformed_resource_parameters.py:39

Test: webfinger.server.4_2__4_do_not_accept_malformed_resource_parameters::requires_valid_resource_uri_jrd

Do not accept malformed resource parameters. Test JRD content for missing acct: scheme.

Started 2024:12:29-19:13:53.889303Z, ended 2024:12:29-19:13:53.976856Z (duration: 0:00:00.087553)

Passed

Test: webfinger.server.4_2__5_status_404_for_nonexisting_resources::status_404_for_nonexisting_resources

The server responds with 404 when the resource parameter identifies a non-existent resource.

Started 2024:12:29-19:13:53.976923Z, ended 2024:12:29-19:13:54.500678Z (duration: 0:00:00.523755)

Passed

Test: webfinger.server.4_2__9_content_type::returns_jrd_in_response_to_https

Test that a query over HTTPS produces a JRD.

Started 2024:12:29-19:13:54.501180Z, ended 2024:12:29-19:13:54.614734Z (duration: 0:00:00.113554)

AssertionFailure: AssertionFailure (Must, Degraded): Wrong content type.
Accessed URI: "https://bookwyrm.social/.well-known/webfinger?resource=acct%3Amouse%40bookwyrm.social".
Expected: ('application/jrd+json' or a string starting with 'application/jrd+json;')
     but: was 'application/json'
./tests/webfinger/server/4_2__9_content_type.py:43

Test: webfinger.server.4_5__1_any_uri_scheme_for_resource_identifiers::any_uri_scheme_for_resource_identifiers

The server must accept resource identifiers provided in the query that use any scheme.

Started 2024:12:29-19:13:54.621739Z, ended 2024:12:29-19:13:54.867514Z (duration: 0:00:00.245775)

Passed

Test: webfinger.server.4__1_accepts_all_link_rels_in_query::accepts_combined_link_rels_in_query

A server must accept all link rels in the query, even if it does not understand them. Tests several known an unknown link rels at a time.

Started 2024:12:29-19:13:54.867567Z, ended 2024:12:29-19:13:56.025225Z (duration: 0:00:01.157658)

Passed

Test: webfinger.server.4__1_accepts_all_link_rels_in_query::accepts_known_link_rels_in_query

A server must accept all link rels in the query, even if it does not understand them. Tests one known link rel at a time.

Started 2024:12:29-19:13:56.025292Z, ended 2024:12:29-19:13:57.195726Z (duration: 0:00:01.170434)

Passed

Test: webfinger.server.4__1_accepts_all_link_rels_in_query::accepts_unknown_link_rels_in_query

A server must accept all link rels in the query, even if it does not understand them. Tests one unknown link rels at a time.

Started 2024:12:29-19:13:57.195778Z, ended 2024:12:29-19:13:57.829281Z (duration: 0:00:00.633503)

Passed

Test: webfinger.server.4__3_only_returns_jrd_in_response_to_https_requests::does_not_return_jrd_in_response_to_http

Test that a query over HTTP does not produce a JRD.

Started 2024:12:29-19:13:57.829360Z, ended 2024:12:29-19:13:57.903597Z (duration: 0:00:00.074237)

Passed

Test: webfinger.server.4__3_only_returns_jrd_in_response_to_https_requests::uses_valid_https_certificate

Test that the server uses a valid HTTPS certificate.

Started 2024:12:29-19:13:57.903646Z, ended 2024:12:29-19:13:58.001125Z (duration: 0:00:00.097479)

Passed

Test: webfinger.server.5_1_cors_header_required::cors_header_required

The server must provide a valid value for HTTP Header "Access-Control-Allow-Origin".

Started 2024:12:29-19:13:58.001454Z, ended 2024:12:29-19:13:58.098258Z (duration: 0:00:00.096804)

AssertionFailure: AssertionFailure (Must, Problem): Missing CORS header.
Accessed URI: "https://bookwyrm.social/.well-known/webfinger?resource=acct%3Amouse%40bookwyrm.social".
Not present: "access-control-allow-origin".
./tests/webfinger/server/5_1_cors_header_required.py:21

Test Run Session Metadata

Started 2024:12:29-19:13:50.921009Z
Ended 2024:12:29-19:13:58.103826Z (total: 0:00:07.182817)
Platform Linux-6.8.0-1-aarch64-ARCH-aarch64-with-glibc2.35
FediTest version 0.6.dev20241229191155