diff options
Diffstat (limited to 'test/fixtures')
| -rw-r--r-- | test/fixtures/emoji/packs/blank.png.zip | bin | 0 -> 284 bytes | |||
| -rw-r--r-- | test/fixtures/emoji/packs/default-manifest.json | 10 | ||||
| -rw-r--r-- | test/fixtures/emoji/packs/finmoji.json | 3 | ||||
| -rw-r--r-- | test/fixtures/emoji/packs/manifest.json | 10 | ||||
| -rw-r--r-- | test/fixtures/tesla_mock/funkwhale_audio.json | 44 | ||||
| -rw-r--r-- | test/fixtures/tesla_mock/funkwhale_channel.json | 44 | ||||
| -rw-r--r-- | test/fixtures/users_mock/localhost.json | 41 | ||||
| -rw-r--r-- | test/fixtures/warnings/otp_version/21.1 | 1 | ||||
| -rw-r--r-- | test/fixtures/warnings/otp_version/22.1 | 1 | ||||
| -rw-r--r-- | test/fixtures/warnings/otp_version/22.4 | 1 | ||||
| -rw-r--r-- | test/fixtures/warnings/otp_version/23.0 | 1 | 
11 files changed, 156 insertions, 0 deletions
diff --git a/test/fixtures/emoji/packs/blank.png.zip b/test/fixtures/emoji/packs/blank.png.zip Binary files differnew file mode 100644 index 000000000..651daf127 --- /dev/null +++ b/test/fixtures/emoji/packs/blank.png.zip diff --git a/test/fixtures/emoji/packs/default-manifest.json b/test/fixtures/emoji/packs/default-manifest.json new file mode 100644 index 000000000..c8433808d --- /dev/null +++ b/test/fixtures/emoji/packs/default-manifest.json @@ -0,0 +1,10 @@ +{ +  "finmoji": { +    "license": "CC BY-NC-ND 4.0", +    "homepage": "https://finland.fi/emoji/", +    "description": "Finland is the first country in the world to publish its own set of country themed emojis. The Finland emoji collection contains 56 tongue-in-cheek emotions, which were created to explain some hard-to-describe Finnish emotions, Finnish words and customs.", +    "src": "https://finland.fi/wp-content/uploads/2017/06/finland-emojis.zip", +    "src_sha256": "384025A1AC6314473863A11AC7AB38A12C01B851A3F82359B89B4D4211D3291D", +    "files": "finmoji.json" +  } +}
\ No newline at end of file diff --git a/test/fixtures/emoji/packs/finmoji.json b/test/fixtures/emoji/packs/finmoji.json new file mode 100644 index 000000000..279770998 --- /dev/null +++ b/test/fixtures/emoji/packs/finmoji.json @@ -0,0 +1,3 @@ +{ +  "blank": "blank.png" +}
\ No newline at end of file diff --git a/test/fixtures/emoji/packs/manifest.json b/test/fixtures/emoji/packs/manifest.json new file mode 100644 index 000000000..2d51a459b --- /dev/null +++ b/test/fixtures/emoji/packs/manifest.json @@ -0,0 +1,10 @@ +{ +  "blobs.gg": { +    "src_sha256": "3a12f3a181678d5b3584a62095411b0d60a335118135910d879920f8ade5a57f", +    "src": "https://git.pleroma.social/pleroma/emoji-index/raw/master/packs/blobs_gg.zip", +    "license": "Apache 2.0", +    "homepage": "https://blobs.gg", +    "files": "blobs_gg.json", +    "description": "Blob Emoji from blobs.gg repacked as apng" +  } +}
\ No newline at end of file diff --git a/test/fixtures/tesla_mock/funkwhale_audio.json b/test/fixtures/tesla_mock/funkwhale_audio.json new file mode 100644 index 000000000..15736b1f8 --- /dev/null +++ b/test/fixtures/tesla_mock/funkwhale_audio.json @@ -0,0 +1,44 @@ +{ +  "id": "https://channels.tests.funkwhale.audio/federation/music/uploads/42342395-0208-4fee-a38d-259a6dae0871", +  "type": "Audio", +  "name": "Compositions - Test Audio for Pleroma", +  "attributedTo": "https://channels.tests.funkwhale.audio/federation/actors/compositions", +  "published": "2020-03-11T10:01:52.714918+00:00", +  "to": "https://www.w3.org/ns/activitystreams#Public", +  "url": [ +    { +      "type": "Link", +      "mimeType": "audio/ogg", +      "href": "https://channels.tests.funkwhale.audio/api/v1/listen/3901e5d8-0445-49d5-9711-e096cf32e515/?upload=42342395-0208-4fee-a38d-259a6dae0871&download=false" +    }, +    { +      "type": "Link", +      "mimeType": "text/html", +      "href": "https://channels.tests.funkwhale.audio/library/tracks/74" +    } +  ], +  "content": "<p>This is a test Audio for Pleroma.</p>", +  "mediaType": "text/html", +  "tag": [ +    { +      "type": "Hashtag", +      "name": "#funkwhale" +    }, +    { +      "type": "Hashtag", +      "name": "#test" +    }, +    { +      "type": "Hashtag", +      "name": "#tests" +    } +  ], +  "summary": "#funkwhale #test #tests", +  "@context": [ +    "https://www.w3.org/ns/activitystreams", +    "https://w3id.org/security/v1", +    { +      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers" +    } +  ] +} diff --git a/test/fixtures/tesla_mock/funkwhale_channel.json b/test/fixtures/tesla_mock/funkwhale_channel.json new file mode 100644 index 000000000..cf9ee8151 --- /dev/null +++ b/test/fixtures/tesla_mock/funkwhale_channel.json @@ -0,0 +1,44 @@ +{ +  "id": "https://channels.tests.funkwhale.audio/federation/actors/compositions", +  "outbox": "https://channels.tests.funkwhale.audio/federation/actors/compositions/outbox", +  "inbox": "https://channels.tests.funkwhale.audio/federation/actors/compositions/inbox", +  "preferredUsername": "compositions", +  "type": "Person", +  "name": "Compositions", +  "followers": "https://channels.tests.funkwhale.audio/federation/actors/compositions/followers", +  "following": "https://channels.tests.funkwhale.audio/federation/actors/compositions/following", +  "manuallyApprovesFollowers": false, +  "url": [ +    { +      "type": "Link", +      "href": "https://channels.tests.funkwhale.audio/channels/compositions", +      "mediaType": "text/html" +    }, +    { +      "type": "Link", +      "href": "https://channels.tests.funkwhale.audio/api/v1/channels/compositions/rss", +      "mediaType": "application/rss+xml" +    } +  ], +  "icon": { +    "type": "Image", +    "url": "https://channels.tests.funkwhale.audio/media/attachments/75/b4/f1/nosmile.jpeg", +    "mediaType": "image/jpeg" +  }, +  "summary": "<p>I'm testing federation with the fediverse :)</p>", +  "@context": [ +    "https://www.w3.org/ns/activitystreams", +    "https://w3id.org/security/v1", +    { +      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers" +    } +  ], +  "publicKey": { +    "owner": "https://channels.tests.funkwhale.audio/federation/actors/compositions", +    "publicKeyPem": "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAv25u57oZfVLV3KltS+HcsdSx9Op4MmzIes1J8Wu8s0KbdXf2zEwS\nsVqyHgs/XCbnzsR3FqyJTo46D2BVnvZcuU5srNcR2I2HMaqQ0oVdnATE4K6KdcgV\nN+98pMWo56B8LTgE1VpvqbsrXLi9jCTzjrkebVMOP+ZVu+64v1qdgddseblYMnBZ\nct0s7ONbHnqrWlTGf5wES1uIZTVdn5r4MduZG+Uenfi1opBS0lUUxfWdW9r0oF2b\nyneZUyaUCbEroeKbqsweXCWVgnMarUOsgqC42KM4cf95lySSwTSaUtZYIbTw7s9W\n2jveU/rVg8BYZu5JK5obgBoxtlUeUoSswwIDAQAB\n-----END RSA PUBLIC KEY-----\n", +    "id": "https://channels.tests.funkwhale.audio/federation/actors/compositions#main-key" +  }, +  "endpoints": { +    "sharedInbox": "https://channels.tests.funkwhale.audio/federation/shared/inbox" +  } +} diff --git a/test/fixtures/users_mock/localhost.json b/test/fixtures/users_mock/localhost.json new file mode 100644 index 000000000..a49935db1 --- /dev/null +++ b/test/fixtures/users_mock/localhost.json @@ -0,0 +1,41 @@ +{ +  "@context": [ +    "https://www.w3.org/ns/activitystreams", +    "http://localhost:4001/schemas/litepub-0.1.jsonld", +    { +      "@language": "und" +    } +  ], +  "attachment": [], +  "endpoints": { +    "oauthAuthorizationEndpoint": "http://localhost:4001/oauth/authorize", +    "oauthRegistrationEndpoint": "http://localhost:4001/api/v1/apps", +    "oauthTokenEndpoint": "http://localhost:4001/oauth/token", +    "sharedInbox": "http://localhost:4001/inbox" +  }, +  "followers": "http://localhost:4001/users/{{nickname}}/followers", +  "following": "http://localhost:4001/users/{{nickname}}/following", +  "icon": { +    "type": "Image", +    "url": "http://localhost:4001/media/4e914f5b84e4a259a3f6c2d2edc9ab642f2ab05f3e3d9c52c81fc2d984b3d51e.jpg" +  }, +  "id": "http://localhost:4001/users/{{nickname}}", +  "image": { +    "type": "Image", +    "url": "http://localhost:4001/media/f739efddefeee49c6e67e947c4811fdc911785c16ae43da4c3684051fbf8da6a.jpg?name=f739efddefeee49c6e67e947c4811fdc911785c16ae43da4c3684051fbf8da6a.jpg" +  }, +  "inbox": "http://localhost:4001/users/{{nickname}}/inbox", +  "manuallyApprovesFollowers": false, +  "name": "{{nickname}}", +  "outbox": "http://localhost:4001/users/{{nickname}}/outbox", +  "preferredUsername": "{{nickname}}", +  "publicKey": { +    "id": "http://localhost:4001/users/{{nickname}}#main-key", +    "owner": "http://localhost:4001/users/{{nickname}}", +    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5DLtwGXNZElJyxFGfcVc\nXANhaMadj/iYYQwZjOJTV9QsbtiNBeIK54PJrYuU0/0YIdrvS1iqheX5IwXRhcwa\nhm3ZyLz7XeN9st7FBni4BmZMBtMpxAuYuu5p/jbWy13qAiYOhPreCx0wrWgm/lBD\n9mkgaxIxPooBE0S4ZWEJIDIV1Vft3AWcRUyWW1vIBK0uZzs6GYshbQZB952S0yo4\nFzI1hABGHncH8UvuFauh4EZ8tY7/X5I0pGRnDOcRN1dAht5w5yTA+6r5kebiFQjP\nIzN/eCO/a9Flrj9YGW7HDNtjSOH0A31PLRGlJtJO3yK57dnf5ppyCZGfL4emShQo\ncQIDAQAB\n-----END PUBLIC KEY-----\n\n" +  }, +  "summary": "your friendly neighborhood pleroma developer<br>I like cute things and distributed systems, and really hate delete and redrafts", +  "tag": [], +  "type": "Person", +  "url": "http://localhost:4001/users/{{nickname}}" +}
\ No newline at end of file diff --git a/test/fixtures/warnings/otp_version/21.1 b/test/fixtures/warnings/otp_version/21.1 new file mode 100644 index 000000000..90cd64c4f --- /dev/null +++ b/test/fixtures/warnings/otp_version/21.1 @@ -0,0 +1 @@ +21.1
\ No newline at end of file diff --git a/test/fixtures/warnings/otp_version/22.1 b/test/fixtures/warnings/otp_version/22.1 new file mode 100644 index 000000000..d9b314368 --- /dev/null +++ b/test/fixtures/warnings/otp_version/22.1 @@ -0,0 +1 @@ +22.1
\ No newline at end of file diff --git a/test/fixtures/warnings/otp_version/22.4 b/test/fixtures/warnings/otp_version/22.4 new file mode 100644 index 000000000..1da8ccd28 --- /dev/null +++ b/test/fixtures/warnings/otp_version/22.4 @@ -0,0 +1 @@ +22.4
\ No newline at end of file diff --git a/test/fixtures/warnings/otp_version/23.0 b/test/fixtures/warnings/otp_version/23.0 new file mode 100644 index 000000000..4266d8634 --- /dev/null +++ b/test/fixtures/warnings/otp_version/23.0 @@ -0,0 +1 @@ +23.0
\ No newline at end of file  | 
