diff options
Diffstat (limited to 'test/fixtures/webfinger')
| -rw-r--r-- | test/fixtures/webfinger/masto-host-meta.xml | 4 | ||||
| -rw-r--r-- | test/fixtures/webfinger/masto-user.json | 92 | ||||
| -rw-r--r-- | test/fixtures/webfinger/masto-webfinger.json | 23 | ||||
| -rw-r--r-- | test/fixtures/webfinger/pleroma-host-meta.xml | 1 | ||||
| -rw-r--r-- | test/fixtures/webfinger/pleroma-user.json | 58 | ||||
| -rw-r--r-- | test/fixtures/webfinger/pleroma-webfinger.json | 27 | 
6 files changed, 205 insertions, 0 deletions
diff --git a/test/fixtures/webfinger/masto-host-meta.xml b/test/fixtures/webfinger/masto-host-meta.xml new file mode 100644 index 000000000..f432a27c3 --- /dev/null +++ b/test/fixtures/webfinger/masto-host-meta.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"> +  <Link rel="lrdd" template="https://{{domain}}/.well-known/webfinger?resource={uri}"/> +</XRD> diff --git a/test/fixtures/webfinger/masto-user.json b/test/fixtures/webfinger/masto-user.json new file mode 100644 index 000000000..1702de011 --- /dev/null +++ b/test/fixtures/webfinger/masto-user.json @@ -0,0 +1,92 @@ +{ +  "@context": [ +    "https://www.w3.org/ns/activitystreams", +    "https://w3id.org/security/v1", +    { +      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", +      "toot": "http://joinmastodon.org/ns#", +      "featured": { +        "@id": "toot:featured", +        "@type": "@id" +      }, +      "featuredTags": { +        "@id": "toot:featuredTags", +        "@type": "@id" +      }, +      "alsoKnownAs": { +        "@id": "as:alsoKnownAs", +        "@type": "@id" +      }, +      "movedTo": { +        "@id": "as:movedTo", +        "@type": "@id" +      }, +      "schema": "http://schema.org#", +      "PropertyValue": "schema:PropertyValue", +      "value": "schema:value", +      "IdentityProof": "toot:IdentityProof", +      "discoverable": "toot:discoverable", +      "Device": "toot:Device", +      "Ed25519Signature": "toot:Ed25519Signature", +      "Ed25519Key": "toot:Ed25519Key", +      "Curve25519Key": "toot:Curve25519Key", +      "EncryptedMessage": "toot:EncryptedMessage", +      "publicKeyBase64": "toot:publicKeyBase64", +      "deviceId": "toot:deviceId", +      "claim": { +        "@type": "@id", +        "@id": "toot:claim" +      }, +      "fingerprintKey": { +        "@type": "@id", +        "@id": "toot:fingerprintKey" +      }, +      "identityKey": { +        "@type": "@id", +        "@id": "toot:identityKey" +      }, +      "devices": { +        "@type": "@id", +        "@id": "toot:devices" +      }, +      "messageFranking": "toot:messageFranking", +      "messageType": "toot:messageType", +      "cipherText": "toot:cipherText", +      "suspended": "toot:suspended", +      "focalPoint": { +        "@container": "@list", +        "@id": "toot:focalPoint" +      } +    } +  ], +  "id": "https://{{domain}}/users/{{nickname}}", +  "type": "Person", +  "following": "https://{{domain}}/users/{{nickname}}/following", +  "followers": "https://{{domain}}/users/{{nickname}}/followers", +  "inbox": "https://{{domain}}/users/{{nickname}}/inbox", +  "outbox": "https://{{domain}}/users/{{nickname}}/outbox", +  "featured": "https://{{domain}}/users/{{nickname}}/collections/featured", +  "featuredTags": "https://{{domain}}/users/{{nickname}}/collections/tags", +  "preferredUsername": "{{nickname}}", +  "name": "Name Name", +  "summary": "<p>Summary</p>", +  "url": "https://{{domain}}/@{{nickname}}", +  "manuallyApprovesFollowers": false, +  "discoverable": false, +  "devices": "https://{{domain}}/users/{{nickname}}/collections/devices", +  "publicKey": { +    "id": "https://{{domain}}/users/{{nickname}}#main-key", +    "owner": "https://{{domain}}/users/{{nickname}}", +    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvwDujxmxoYHs64MyVB3L\nG5ZyBxV3ufaMRBFu42bkcTpISq1WwZ+3Zb6CI8zOO+nM+Q2llrVRYjZa4ZFnOLvM\nTq/Kf+Zf5wy2aCRer88gX+MsJOAtItSi412y0a/rKOuFaDYLOLeTkRvmGLgZWbsr\nZJOp+YWb3zQ5qsIOInkc5BwI172tMsGeFtsnbNApPV4lrmtTGaJ8RiM8MR7XANBO\nfOHggSt1+eAIKGIsCmINEMzs1mG9D75xKtC/sM8GfbvBclQcBstGkHAEj1VHPW0c\nh6Bok5/QQppicyb8UA1PAA9bznSFtKlYE4xCH8rlCDSDTBRtdnBWHKcj619Ujz4Q\nawIDAQAB\n-----END PUBLIC KEY-----\n" +  }, +  "tag": [], +  "attachment": [], +  "endpoints": { +    "sharedInbox": "https://{{domain}}/inbox" +  }, +  "icon": { +    "type": "Image", +    "mediaType": "image/jpeg", +    "url": "https://s3.wasabisys.com/merp/accounts/avatars/000/000/001/original/6fdd3eee632af247.jpg" +  } +} diff --git a/test/fixtures/webfinger/masto-webfinger.json b/test/fixtures/webfinger/masto-webfinger.json new file mode 100644 index 000000000..561be3fff --- /dev/null +++ b/test/fixtures/webfinger/masto-webfinger.json @@ -0,0 +1,23 @@ +{ +  "subject": "acct:{{nickname}}@{{domain}}", +  "aliases": [ +    "https://{{subdomain}}/@{{nickname}}", +    "https://{{subdomain}}/users/{{nickname}}" +  ], +  "links": [ +    { +      "rel": "http://webfinger.net/rel/profile-page", +      "type": "text/html", +      "href": "https://{{subdomain}}/@{{nickname}}" +    }, +    { +      "rel": "self", +      "type": "application/activity+json", +      "href": "https://{{subdomain}}/users/{{nickname}}" +    }, +    { +      "rel": "http://ostatus.org/schema/1.0/subscribe", +      "template": "https://{{subdomain}}/authorize_interaction?uri={uri}" +    } +  ] +} diff --git a/test/fixtures/webfinger/pleroma-host-meta.xml b/test/fixtures/webfinger/pleroma-host-meta.xml new file mode 100644 index 000000000..88c274a1a --- /dev/null +++ b/test/fixtures/webfinger/pleroma-host-meta.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"><Link rel="lrdd" template="https://{{domain}}/.well-known/webfinger?resource={uri}" type="application/xrd+xml" /></XRD> diff --git a/test/fixtures/webfinger/pleroma-user.json b/test/fixtures/webfinger/pleroma-user.json new file mode 100644 index 000000000..b822db46c --- /dev/null +++ b/test/fixtures/webfinger/pleroma-user.json @@ -0,0 +1,58 @@ +{ +  "@context": [ +    "https://www.w3.org/ns/activitystreams", +    "https://{{domain}}/schemas/litepub-0.1.jsonld", +    { +      "@language": "und" +    } +  ], +  "alsoKnownAs": [], +  "attachment": [], +  "capabilities": { +    "acceptsChatMessages": true +  }, +  "discoverable": true, +  "endpoints": { +    "oauthAuthorizationEndpoint": "https://{{domain}}/oauth/authorize", +    "oauthRegistrationEndpoint": "https://{{domain}}/api/v1/apps", +    "oauthTokenEndpoint": "https://{{domain}}/oauth/token", +    "sharedInbox": "https://{{domain}}/inbox", +    "uploadMedia": "https://{{domain}}/api/ap/upload_media" +  }, +  "followers": "https://{{domain}}/users/{{nickname}}/followers", +  "following": "https://{{domain}}/users/{{nickname}}/following", +  "icon": { +    "type": "Image", +    "url": "https://{{domain}}/media/a932a27f158b63c3a97e3a57d5384f714a82249274c6fc66c9eca581b4fd8af2.jpg" +  }, +  "id": "https://{{domain}}/users/{{nickname}}", +  "image": { +    "type": "Image", +    "url": "https://{{domain}}/media/db15f476d0ad14488db4762b7800479e6ef67b1824f8b9ea5c1fa05b7525c5b7.jpg" +  }, +  "inbox": "https://{{domain}}/users/{{nickname}}/inbox", +  "manuallyApprovesFollowers": false, +  "name": "{{nickname}} :verified:", +  "outbox": "https://{{domain}}/users/{{nickname}}/outbox", +  "preferredUsername": "{{nickname}}", +  "publicKey": { +    "id": "https://{{domain}}/users/{{nickname}}#main-key", +    "owner": "https://{{domain}}/users/{{nickname}}", +    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu4XOAopC4nRIxNlHlt60\n//nCicuedu5wvLGIoQ+KUM2u7/PhLrrTDEqr1A7yQL95S0X8ryYtALgFLI5A54ww\nqjMIbIGAs44lEmDLMEd+XI+XxREE8wdsFpb4QQzWug0DTyqlMouTU25k0tfKh1rF\n4PMJ3uBSjDTAGgFvLNyFWTiVVgChbTNgGOmrEBucRl4NmKzQ69/FIUwENV88oQSU\n3bWvQTEH9rWH1rCLpkmQwdRiWfnhFX/4EUqXukfgoskvenKR8ff3nYhElDqFoE0e\nqUnIW1OZceyl8JewVLcL6m0/wdKeosTsfrcWc8DKfnRYQcBGNoBEq9GrOHDU0q2v\nyQIDAQAB\n-----END PUBLIC KEY-----\n\n" +  }, +  "summary": "Pleroma BE dev", +  "tag": [ +    { +      "icon": { +        "type": "Image", +        "url": "https://{{domain}}/emoji/mine/6143373a807b1ae7.png" +      }, +      "id": "https://{{domain}}/emoji/mine/6143373a807b1ae7.png", +      "name": ":verified:", +      "type": "Emoji", +      "updated": "1970-01-01T00:00:00Z" +    } +  ], +  "type": "Person", +  "url": "https://{{domain}}/users/{{nickname}}" +} diff --git a/test/fixtures/webfinger/pleroma-webfinger.json b/test/fixtures/webfinger/pleroma-webfinger.json new file mode 100644 index 000000000..8f075eaaf --- /dev/null +++ b/test/fixtures/webfinger/pleroma-webfinger.json @@ -0,0 +1,27 @@ +{ +  "aliases": [ +    "https://{{subdomain}}/users/{{nickname}}" +  ], +  "links": [ +    { +      "href": "https://{{subdomain}}/users/{{nickname}}", +      "rel": "http://webfinger.net/rel/profile-page", +      "type": "text/html" +    }, +    { +      "href": "https://{{subdomain}}/users/{{nickname}}", +      "rel": "self", +      "type": "application/activity+json" +    }, +    { +      "href": "https://{{subdomain}}/users/{{nickname}}", +      "rel": "self", +      "type": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" +    }, +    { +      "rel": "http://ostatus.org/schema/1.0/subscribe", +      "template": "https://{{subdomain}}/ostatus_subscribe?acct={uri}" +    } +  ], +  "subject": "acct:{{nickname}}@{{domain}}" +}  | 
