mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
server: serve files from storage/well-known (#5214)
* server: serve files from storage/well-known closes #5206 * well-known: add tests * test: try to skip new tests * test: another try * fix(config/prod): well_known path * test: fix broken tests * Update misc-endpoints.ts * Use getDirectoryPath for tests * Fix tests Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
@@ -159,8 +159,8 @@ async function check2Webseeds (videoUUID?: string) {
|
||||
const { webtorrentFilenames } = await ensureSameFilenames(videoUUID)
|
||||
|
||||
const directories = [
|
||||
'test' + servers[0].internalServerNumber + '/redundancy',
|
||||
'test' + servers[1].internalServerNumber + '/videos'
|
||||
servers[0].getDirectoryPath('redundancy'),
|
||||
servers[1].getDirectoryPath('videos')
|
||||
]
|
||||
|
||||
for (const directory of directories) {
|
||||
@@ -214,8 +214,8 @@ async function check1PlaylistRedundancies (videoUUID?: string) {
|
||||
const { hlsFilenames } = await ensureSameFilenames(videoUUID)
|
||||
|
||||
const directories = [
|
||||
'test' + servers[0].internalServerNumber + '/redundancy/hls',
|
||||
'test' + servers[1].internalServerNumber + '/streaming-playlists/hls'
|
||||
servers[0].getDirectoryPath('redundancy/hls'),
|
||||
servers[1].getDirectoryPath('streaming-playlists/hls')
|
||||
]
|
||||
|
||||
for (const directory of directories) {
|
||||
|
||||
@@ -197,7 +197,7 @@ describe('Test users with multiple servers', function () {
|
||||
it('Should not have actor files', async () => {
|
||||
for (const server of servers) {
|
||||
for (const userAvatarFilename of userAvatarFilenames) {
|
||||
await checkActorFilesWereRemoved(userAvatarFilename, server.internalServerNumber)
|
||||
await checkActorFilesWereRemoved(userAvatarFilename, server)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1049,7 +1049,7 @@ describe('Test video playlists', function () {
|
||||
this.timeout(30000)
|
||||
|
||||
for (const server of servers) {
|
||||
await checkPlaylistFilesWereRemoved(playlistServer1UUID, server.internalServerNumber)
|
||||
await checkPlaylistFilesWereRemoved(playlistServer1UUID, server)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user