mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:29:17 +02:00
Ensures federation urls can answer to application/ld+json, application/activity+json and application/json requests
This commit is contained in:
parent
c9e7eea65b
commit
12c9db3960
19 changed files with 1294 additions and 1001 deletions
|
@ -1,6 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from funkwhale_api.federation import authentication, exceptions, keys
|
||||
from funkwhale_api.federation import authentication, exceptions, keys, jsonld
|
||||
|
||||
|
||||
def test_authenticate(factories, mocker, api_request):
|
||||
|
@ -10,6 +10,7 @@ def test_authenticate(factories, mocker, api_request):
|
|||
mocker.patch(
|
||||
"funkwhale_api.federation.actors.get_actor_data",
|
||||
return_value={
|
||||
"@context": jsonld.get_default_context(),
|
||||
"id": actor_url,
|
||||
"type": "Person",
|
||||
"outbox": "https://test.com",
|
||||
|
@ -105,6 +106,7 @@ def test_authenticate_ignore_inactive_policy(factories, api_request, mocker):
|
|||
mocker.patch(
|
||||
"funkwhale_api.federation.actors.get_actor_data",
|
||||
return_value={
|
||||
"@context": jsonld.get_default_context(),
|
||||
"id": actor_url,
|
||||
"type": "Person",
|
||||
"outbox": "https://test.com",
|
||||
|
@ -142,6 +144,7 @@ def test_autenthicate_supports_blind_key_rotation(factories, mocker, api_request
|
|||
mocker.patch(
|
||||
"funkwhale_api.federation.actors.get_actor_data",
|
||||
return_value={
|
||||
"@context": jsonld.get_default_context(),
|
||||
"id": actor_url,
|
||||
"type": "Person",
|
||||
"outbox": "https://test.com",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue