tests (unit/ap-gateway): tests for XMPP identity/vCard4 <=> AP actor data conversion:
rel 368
This commit is contained in:
parent
5a021e63a1
commit
a5381c8c86
1 changed files with 60 additions and 6 deletions
|
|
@ -291,7 +291,7 @@ class HTTPAPGServer(web_resource.Resource):
|
|||
account_jid: jid.JID,
|
||||
node: Optional[str],
|
||||
ap_account: str,
|
||||
actor_url: str,
|
||||
ap_url: str,
|
||||
signing_actor: Optional[str]
|
||||
) -> dict:
|
||||
inbox = self.apg.buildAPURL(TYPE_INBOX, ap_account)
|
||||
|
|
@ -312,7 +312,7 @@ class HTTPAPGServer(web_resource.Resource):
|
|||
"https://w3id.org/security/v1"
|
||||
],
|
||||
|
||||
"id": actor_url,
|
||||
"id": ap_url,
|
||||
"type": "Person",
|
||||
"preferredUsername": preferred_username,
|
||||
"inbox": inbox,
|
||||
|
|
@ -320,8 +320,8 @@ class HTTPAPGServer(web_resource.Resource):
|
|||
"followers": followers,
|
||||
"following": following,
|
||||
"publicKey": {
|
||||
"id": f"{actor_url}#main-key",
|
||||
"owner": actor_url,
|
||||
"id": f"{ap_url}#main-key",
|
||||
"owner": ap_url,
|
||||
"publicKeyPem": self.apg.public_key_pem
|
||||
},
|
||||
"endpoints": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue