]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/shared/tests.ts
Add info about running redis server
[github/Chocobozzz/PeerTube.git] / server / tests / shared / tests.ts
CommitLineData
c55e3d72
C
1const FIXTURE_URLS = {
2 peertube_long: 'https://peertube2.cpy.re/videos/watch/122d093a-1ede-43bd-bd34-59d2931ffc5e',
3 peertube_short: 'https://peertube2.cpy.re/w/3fbif9S3WmtTP8gGsC5HBd',
4
5 youtube: 'https://www.youtube.com/watch?v=msX3jv1XdvM',
6
7 /**
8 * The video is used to check format-selection correctness wrt. HDR,
9 * which brings its own set of oddities outside of a MediaSource.
10 *
11 * The video needs to have the following format_ids:
12 * (which you can check by using `youtube-dl <url> -F`):
13 * - (webm vp9)
14 * - (mp4 avc1)
15 * - (webm vp9.2 HDR)
16 */
17 youtubeHDR: 'https://www.youtube.com/watch?v=RQgnBB9z_N4',
18
2a491182
F
19 youtubeChannel: 'https://youtube.com/channel/UCtnlZdXv3-xQzxiqfn6cjIA',
20
c55e3d72
C
21 // eslint-disable-next-line max-len
22 magnet: 'magnet:?xs=https%3A%2F%2Fpeertube2.cpy.re%2Flazy-static%2Ftorrents%2Fb209ca00-c8bb-4b2b-b421-1ede169f3dbc-720.torrent&xt=urn:btih:0f498834733e8057ed5c6f2ee2b4efd8d84a76ee&dn=super+peertube2+video&tr=https%3A%2F%2Fpeertube2.cpy.re%2Ftracker%2Fannounce&tr=wss%3A%2F%2Fpeertube2.cpy.re%3A443%2Ftracker%2Fsocket&ws=https%3A%2F%2Fpeertube2.cpy.re%2Fstatic%2Fwebseed%2Fb209ca00-c8bb-4b2b-b421-1ede169f3dbc-720.mp4',
23
24 badVideo: 'https://download.cpy.re/peertube/bad_video.mp4',
25 goodVideo: 'https://download.cpy.re/peertube/good_video.mp4',
26 goodVideo720: 'https://download.cpy.re/peertube/good_video_720.mp4',
27
28 file4K: 'https://download.cpy.re/peertube/4k_file.txt'
29}
30
31function buildRequestStub (): any {
32 return { }
33}
34
35export {
36 FIXTURE_URLS,
37
38 buildRequestStub
39}