Shared utils -> extra-utils

Because they need dev dependencies
This commit is contained in:
Chocobozzz 2019-04-15 15:26:15 +02:00
parent 4ee7a4c9ac
commit 94565d52bb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
131 changed files with 250 additions and 238 deletions

View File

@ -11,7 +11,7 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
const expect = chai.expect

View File

@ -17,7 +17,7 @@ import {
uploadVideo,
userLogin,
waitJobs
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import * as chai from 'chai'
import { Video } from '../../../../shared/models/videos'

View File

@ -2,7 +2,7 @@
import 'mocha'
import { expect } from 'chai'
import { buildRequestStub } from '../../../../shared/utils/miscs/stubs'
import { buildRequestStub } from '../../../../shared/extra-utils/miscs/stubs'
import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto'
import { cloneDeep } from 'lodash'
import { buildSignedActivity } from '../../../helpers/activitypub'

View File

@ -20,8 +20,8 @@ import {
uploadVideoAndGetId,
wait,
waitJobs
} from '../../../../shared/utils'
import { getAccount } from '../../../../shared/utils/users/accounts'
} from '../../../../shared/extra-utils'
import { getAccount } from '../../../../shared/extra-utils/users/accounts'
import { VideoPlaylistPrivacy } from '../../../../shared/models/videos'
describe('Test AP refresher', function () {

View File

@ -9,12 +9,12 @@ import {
killallServers,
ServerInfo,
setActorField
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { HTTP_SIGNATURE } from '../../../initializers/constants'
import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils'
import * as chai from 'chai'
import { activityPubContextify, buildSignedActivity } from '../../../helpers/activitypub'
import { makeFollowRequest, makePOSTAPRequest } from '../../../../shared/utils/requests/activitypub'
import { makeFollowRequest, makePOSTAPRequest } from '../../../../shared/extra-utils/requests/activitypub'
const expect = chai.expect

View File

@ -2,13 +2,13 @@
import 'mocha'
import { flushTests, killallServers, runServer, ServerInfo } from '../../../../shared/utils'
import { flushTests, killallServers, runServer, ServerInfo } from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { getAccount } from '../../../../shared/utils/users/accounts'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { getAccount } from '../../../../shared/extra-utils/users/accounts'
describe('Test accounts API validators', function () {
const path = '/api/v1/accounts/'

View File

@ -13,12 +13,12 @@ import {
makePostBodyRequest,
ServerInfo,
setAccessTokensToServers, userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
describe('Test blocklist API validators', function () {
let servers: ServerInfo[]

View File

@ -7,7 +7,7 @@ import { CustomConfig } from '../../../../shared/models/server/custom-config.mod
import {
createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, runServer, ServerInfo,
setAccessTokensToServers, userLogin, immutableAssign
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
describe('Test config API validators', function () {
const path = '/api/v1/config/custom'

View File

@ -10,15 +10,15 @@ import {
runServer,
ServerInfo,
setAccessTokensToServers
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { getAccount } from '../../../../shared/utils/users/accounts'
import { sendContactForm } from '../../../../shared/utils/server/contact-form'
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { getAccount } from '../../../../shared/extra-utils/users/accounts'
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
describe('Test contact form API validators', function () {
let server: ServerInfo

View File

@ -10,8 +10,8 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
import { makeGetRequest } from '../../../../shared/utils/requests/requests'
} from '../../../../shared/extra-utils'
import { makeGetRequest } from '../../../../shared/extra-utils/requests/requests'
describe('Test debug API validators', function () {
const path = '/api/v1/server/debug'

View File

@ -5,12 +5,12 @@ import 'mocha'
import {
createUser, flushTests, killallServers, makeDeleteRequest, makePostBodyRequest, runServer, ServerInfo, setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
describe('Test server follows API validators', function () {
let server: ServerInfo

View File

@ -10,13 +10,13 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { makeGetRequest } from '../../../../shared/utils/requests/requests'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { makeGetRequest } from '../../../../shared/extra-utils/requests/requests'
describe('Test jobs API validators', function () {
const path = '/api/v1/jobs/failed'

View File

@ -10,8 +10,8 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
import { makeGetRequest } from '../../../../shared/utils/requests/requests'
} from '../../../../shared/extra-utils'
import { makeGetRequest } from '../../../../shared/extra-utils/requests/requests'
describe('Test logs API validators', function () {
const path = '/api/v1/server/logs'

View File

@ -12,7 +12,7 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
describe('Test server redundancy API validators', function () {
let servers: ServerInfo[]

View File

@ -2,12 +2,12 @@
import 'mocha'
import { flushTests, immutableAssign, killallServers, makeGetRequest, runServer, ServerInfo } from '../../../../shared/utils'
import { flushTests, immutableAssign, killallServers, makeGetRequest, runServer, ServerInfo } from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
describe('Test videos API validator', function () {
let server: ServerInfo

View File

@ -10,7 +10,7 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
describe('Test services API validators', function () {
let server: ServerInfo

View File

@ -14,12 +14,12 @@ import {
ServerInfo,
setAccessTokensToServers,
wait
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { UserNotificationSetting, UserNotificationSettingValue } from '../../../../shared/models/users'
describe('Test user notifications API validators', function () {

View File

@ -13,14 +13,14 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
describe('Test user subscriptions API validators', function () {
const path = '/api/v1/users/me/subscriptions'

View File

@ -9,15 +9,15 @@ import {
createUser, flushTests, getMyUserInformation, getMyUserVideoRating, getUsersList, immutableAssign, killallServers, makeGetRequest,
makePostBodyRequest, makeUploadRequest, makePutBodyRequest, registerUser, removeUser, runServer, ServerInfo, setAccessTokensToServers,
updateUser, uploadVideo, userLogin, deleteMe, unblockUser, blockUser
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { getMagnetURI, getMyVideoImports, getYoutubeVideoUrl, importVideo } from '../../../../shared/utils/videos/video-imports'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { getMagnetURI, getMyVideoImports, getYoutubeVideoUrl, importVideo } from '../../../../shared/extra-utils/videos/video-imports'
import { VideoPrivacy } from '../../../../shared/models/videos'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { expect } from 'chai'
import { UserAdminFlag } from '../../../../shared/models/users/user-flag.model'

View File

@ -15,12 +15,12 @@ import {
updateVideoAbuse,
uploadVideo,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { VideoAbuseState } from '../../../../shared/models/videos'
describe('Test video abuses API validators', function () {

View File

@ -18,12 +18,12 @@ import {
setAccessTokensToServers,
uploadVideo,
userLogin, waitJobs
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { VideoDetails, VideoBlacklistType } from '../../../../shared/models/videos'
import { expect } from 'chai'

View File

@ -13,9 +13,9 @@ import {
setAccessTokensToServers,
uploadVideo,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { join } from 'path'
import { createVideoCaption } from '../../../../shared/utils/videos/video-captions'
import { createVideoCaption } from '../../../../shared/extra-utils/videos/video-captions'
describe('Test video captions API validator', function () {
const path = '/api/v1/videos/'

View File

@ -20,12 +20,12 @@ import {
ServerInfo,
setAccessTokensToServers,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { User } from '../../../../shared/models/users'
import { join } from 'path'

View File

@ -6,13 +6,13 @@ import {
createUser,
flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePostBodyRequest, runServer, ServerInfo, setAccessTokensToServers,
uploadVideo, userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { addVideoCommentThread } from '../../../../shared/utils/videos/video-comments'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments'
const expect = chai.expect

View File

@ -18,13 +18,13 @@ import {
setAccessTokensToServers,
updateCustomSubConfig,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { getMagnetURI, getYoutubeVideoUrl } from '../../../../shared/utils/videos/video-imports'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { getMagnetURI, getYoutubeVideoUrl } from '../../../../shared/extra-utils/videos/video-imports'
describe('Test video imports API validator', function () {
const path = '/api/v1/videos/imports'

View File

@ -20,12 +20,12 @@ import {
updateVideoPlaylist,
updateVideoPlaylistElement,
uploadVideoAndGetId
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model'
import { VideoPlaylistType } from '../../../../shared/models/videos/playlist/video-playlist-type.model'

View File

@ -11,7 +11,7 @@ import {
ServerInfo,
setAccessTokensToServers, setDefaultVideoChannel,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { UserRole } from '../../../../shared/models/users'
import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model'

View File

@ -14,7 +14,7 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
const expect = chai.expect

View File

@ -9,13 +9,13 @@ import {
createUser, flushTests, getMyUserInformation, getVideo, getVideosList, immutableAssign, killallServers, makeDeleteRequest,
makeGetRequest, makeUploadRequest, makePutBodyRequest, removeVideo, uploadVideo,
runServer, ServerInfo, setAccessTokensToServers, userLogin, updateCustomSubConfig
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
checkBadCountPagination,
checkBadSortPagination,
checkBadStartPagination
} from '../../../../shared/utils/requests/check-api-params'
import { getAccountsList } from '../../../../shared/utils/users/accounts'
} from '../../../../shared/extra-utils/requests/check-api-params'
import { getAccountsList } from '../../../../shared/extra-utils/users/accounts'
const expect = chai.expect

View File

@ -20,11 +20,11 @@ import {
wait,
getCustomConfig,
updateCustomConfig, getVideoThreadComments, getVideoCommentThreads, follow
} from '../../../../shared/utils'
import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/utils/index'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { getUserNotificationSocket } from '../../../../shared/utils/socket/socket-io'
} from '../../../../shared/extra-utils'
import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { getUserNotificationSocket } from '../../../../shared/extra-utils/socket/socket-io'
import {
checkCommentMention,
CheckerBaseParams,
@ -42,7 +42,7 @@ import {
markAsReadNotifications,
updateMyNotificationSettings,
markAsReadAllNotifications, checkNewInstanceFollower
} from '../../../../shared/utils/users/user-notifications'
} from '../../../../shared/extra-utils/users/user-notifications'
import {
User,
UserNotification,
@ -50,13 +50,13 @@ import {
UserNotificationSettingValue,
UserNotificationType
} from '../../../../shared/models/users'
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
import { addUserSubscription, removeUserSubscription } from '../../../../shared/utils/users/user-subscriptions'
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
import { addUserSubscription, removeUserSubscription } from '../../../../shared/extra-utils/users/user-subscriptions'
import { VideoPrivacy } from '../../../../shared/models/videos'
import { getBadVideoUrl, getYoutubeVideoUrl, importVideo } from '../../../../shared/utils/videos/video-imports'
import { addVideoCommentReply, addVideoCommentThread } from '../../../../shared/utils/videos/video-comments'
import { getBadVideoUrl, getYoutubeVideoUrl, importVideo } from '../../../../shared/extra-utils/videos/video-imports'
import { addVideoCommentReply, addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments'
import * as uuidv4 from 'uuid/v4'
import { addAccountToAccountBlocklist, removeAccountFromAccountBlocklist } from '../../../../shared/utils/users/blocklist'
import { addAccountToAccountBlocklist, removeAccountFromAccountBlocklist } from '../../../../shared/extra-utils/users/blocklist'
import { CustomConfig } from '../../../../shared/models/server'
import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'

View File

@ -24,16 +24,16 @@ import {
viewVideo,
wait,
waitUntilLog
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import * as magnetUtil from 'magnet-uri'
import { updateRedundancy } from '../../../../shared/utils/server/redundancy'
import { updateRedundancy } from '../../../../shared/extra-utils/server/redundancy'
import { ActorFollow } from '../../../../shared/models/actors'
import { readdir } from 'fs-extra'
import { join } from 'path'
import { VideoRedundancyStrategy } from '../../../../shared/models/redundancy'
import { getStats } from '../../../../shared/utils/server/stats'
import { getStats } from '../../../../shared/extra-utils/server/stats'
import { ServerStats } from '../../../../shared/models/server/server-stats.model'
const expect = chai.expect

View File

@ -17,10 +17,10 @@ import {
uploadVideo,
userLogin,
wait
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { VideoChannel } from '../../../../shared/models/videos'
import { searchVideoChannel } from '../../../../shared/utils/search/video-channels'
import { searchVideoChannel } from '../../../../shared/extra-utils/search/video-channels'
const expect = chai.expect

View File

@ -16,8 +16,8 @@ import {
uploadVideo,
wait,
searchVideo
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { Video, VideoPrivacy } from '../../../../shared/models/videos'
const expect = chai.expect

View File

@ -13,7 +13,7 @@ import {
uploadVideo,
wait,
immutableAssign
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
const expect = chai.expect

View File

@ -16,7 +16,7 @@ import {
runServer,
setAccessTokensToServers,
updateCustomConfig
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { ServerConfig } from '../../../../shared/models'
const expect = chai.expect

View File

@ -2,10 +2,10 @@
import * as chai from 'chai'
import 'mocha'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, wait } from '../../../../shared/utils'
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { sendContactForm } from '../../../../shared/utils/server/contact-form'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, wait } from '../../../../shared/extra-utils'
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
const expect = chai.expect

View File

@ -19,9 +19,9 @@ import {
killallServers,
ServerInfo,
setAccessTokensToServers
} from '../../../../shared/utils'
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -13,10 +13,10 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils'
import { unfollow } from '../../../../shared/utils/server/follows'
import { userLogin } from '../../../../shared/utils/users/login'
import { createUser } from '../../../../shared/utils/users/users'
} from '../../../../shared/extra-utils'
import { unfollow } from '../../../../shared/extra-utils/server/follows'
import { userLogin } from '../../../../shared/extra-utils/users/login'
import { createUser } from '../../../../shared/extra-utils/users/users'
const expect = chai.expect

View File

@ -9,15 +9,15 @@ import {
ServerInfo,
setAccessTokensToServers,
updateCustomSubConfig
} from '../../../../shared/utils/index'
} from '../../../../shared/extra-utils/index'
import {
follow,
getFollowersListPaginationAndSort,
getFollowingListPaginationAndSort,
removeFollower,
rejectFollower
} from '../../../../shared/utils/server/follows'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/server/follows'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { ActorFollow } from '../../../../shared/models/actors'
const expect = chai.expect

View File

@ -4,7 +4,7 @@ import * as chai from 'chai'
import 'mocha'
import { Video, VideoPrivacy } from '../../../../shared/models/videos'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
import { completeVideoCheck } from '../../../../shared/utils'
import { completeVideoCheck } from '../../../../shared/extra-utils'
import {
flushAndRunMultipleServers,
getVideosList,
@ -12,26 +12,26 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils/index'
import { dateIsValid } from '../../../../shared/utils/miscs/miscs'
} from '../../../../shared/extra-utils/index'
import { dateIsValid } from '../../../../shared/extra-utils/miscs/miscs'
import {
follow,
getFollowersListPaginationAndSort,
getFollowingListPaginationAndSort,
unfollow
} from '../../../../shared/utils/server/follows'
import { expectAccountFollows } from '../../../../shared/utils/users/accounts'
import { userLogin } from '../../../../shared/utils/users/login'
import { createUser } from '../../../../shared/utils/users/users'
} from '../../../../shared/extra-utils/server/follows'
import { expectAccountFollows } from '../../../../shared/extra-utils/users/accounts'
import { userLogin } from '../../../../shared/extra-utils/users/login'
import { createUser } from '../../../../shared/extra-utils/users/users'
import {
addVideoCommentReply,
addVideoCommentThread,
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/utils/videos/video-comments'
import { rateVideo } from '../../../../shared/utils/videos/videos'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { createVideoCaption, listVideoCaptions, testCaptionFile } from '../../../../shared/utils/videos/video-captions'
} from '../../../../shared/extra-utils/videos/video-comments'
import { rateVideo } from '../../../../shared/extra-utils/videos/videos'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { createVideoCaption, listVideoCaptions, testCaptionFile } from '../../../../shared/extra-utils/videos/video-captions'
import { VideoCaption } from '../../../../shared/models/videos/caption/video-caption.model'
const expect = chai.expect

View File

@ -20,15 +20,15 @@ import {
updateVideo,
uploadVideo,
wait
} from '../../../../shared/utils'
import { follow, getFollowersListPaginationAndSort } from '../../../../shared/utils/server/follows'
import { getJobsListPaginationAndSort, waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { follow, getFollowersListPaginationAndSort } from '../../../../shared/extra-utils/server/follows'
import { getJobsListPaginationAndSort, waitJobs } from '../../../../shared/extra-utils/server/jobs'
import {
addVideoCommentReply,
addVideoCommentThread,
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/utils/videos/video-comments'
} from '../../../../shared/extra-utils/videos/video-comments'
const expect = chai.expect

View File

@ -2,12 +2,12 @@
import * as chai from 'chai'
import 'mocha'
import { killallServers, ServerInfo, setAccessTokensToServers } from '../../../../shared/utils/index'
import { doubleFollow } from '../../../../shared/utils/server/follows'
import { getJobsList, getJobsListPaginationAndSort, waitJobs } from '../../../../shared/utils/server/jobs'
import { flushAndRunMultipleServers } from '../../../../shared/utils/server/servers'
import { uploadVideo } from '../../../../shared/utils/videos/videos'
import { dateIsValid } from '../../../../shared/utils/miscs/miscs'
import { killallServers, ServerInfo, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
import { getJobsList, getJobsListPaginationAndSort, waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { flushAndRunMultipleServers } from '../../../../shared/extra-utils/server/servers'
import { uploadVideo } from '../../../../shared/extra-utils/videos/videos'
import { dateIsValid } from '../../../../shared/extra-utils/miscs/miscs'
const expect = chai.expect

View File

@ -2,10 +2,10 @@
import * as chai from 'chai'
import 'mocha'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers } from '../../../../shared/utils/index'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { uploadVideo } from '../../../../shared/utils/videos/videos'
import { getLogs } from '../../../../shared/utils/logs/logs'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { uploadVideo } from '../../../../shared/extra-utils/videos/videos'
import { getLogs } from '../../../../shared/extra-utils/logs/logs'
const expect = chai.expect

View File

@ -4,8 +4,8 @@ import {
flushTests,
killallServers,
ServerInfo
} from '../../../../shared/utils'
import { runServer } from '../../../../shared/utils/server/servers'
} from '../../../../shared/extra-utils'
import { runServer } from '../../../../shared/extra-utils/server/servers'
describe('Start and stop server without web client routes', function () {
let server: ServerInfo

View File

@ -15,7 +15,7 @@ import {
userLogin,
viewVideo,
wait
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
const expect = chai.expect
import {
@ -23,7 +23,7 @@ import {
flushTests,
runServer,
registerUser, getCustomConfig, setAccessTokensToServers, updateCustomConfig
} from '../../../../shared/utils/index'
} from '../../../../shared/extra-utils/index'
describe('Test application behind a reverse proxy', function () {
let server = null

View File

@ -13,11 +13,11 @@ import {
uploadVideo,
viewVideo,
wait
} from '../../../../shared/utils'
import { flushTests, setAccessTokensToServers } from '../../../../shared/utils/index'
import { getStats } from '../../../../shared/utils/server/stats'
import { addVideoCommentThread } from '../../../../shared/utils/videos/video-comments'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { flushTests, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
import { getStats } from '../../../../shared/extra-utils/server/stats'
import { addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -2,8 +2,8 @@
import * as magnetUtil from 'magnet-uri'
import 'mocha'
import { getVideo, killallServers, reRunServer, runServer, ServerInfo, uploadVideo } from '../../../../shared/utils'
import { flushTests, setAccessTokensToServers } from '../../../../shared/utils/index'
import { getVideo, killallServers, reRunServer, runServer, ServerInfo, uploadVideo } from '../../../../shared/extra-utils'
import { flushTests, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
import { VideoDetails } from '../../../../shared/models/videos'
import * as WebTorrent from 'webtorrent'

View File

@ -12,16 +12,16 @@ import {
ServerInfo,
uploadVideo,
userLogin
} from '../../../../shared/utils/index'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
import { getVideosListWithToken, getVideosList } from '../../../../shared/utils/videos/videos'
} from '../../../../shared/extra-utils/index'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { getVideosListWithToken, getVideosList } from '../../../../shared/extra-utils/videos/videos'
import {
addVideoCommentReply,
addVideoCommentThread,
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/utils/videos/video-comments'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/videos/video-comments'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
import {
addAccountToAccountBlocklist,
@ -36,7 +36,7 @@ import {
removeAccountFromServerBlocklist,
removeServerFromAccountBlocklist,
removeServerFromServerBlocklist
} from '../../../../shared/utils/users/blocklist'
} from '../../../../shared/extra-utils/users/blocklist'
const expect = chai.expect

View File

@ -11,18 +11,18 @@ import {
unfollow,
updateVideo,
userLogin
} from '../../../../shared/utils'
import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/utils/index'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
} from '../../../../shared/extra-utils'
import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { Video, VideoChannel } from '../../../../shared/models/videos'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import {
addUserSubscription,
listUserSubscriptions,
listUserSubscriptionVideos,
removeUserSubscription,
getUserSubscription, areSubscriptionsExist
} from '../../../../shared/utils/users/user-subscriptions'
} from '../../../../shared/extra-utils/users/user-subscriptions'
const expect = chai.expect

View File

@ -14,13 +14,20 @@ import {
removeUser,
updateMyUser,
userLogin
} from '../../../../shared/utils'
import { getMyUserInformation, killallServers, ServerInfo, testImage, updateMyAvatar, uploadVideo } from '../../../../shared/utils/index'
import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../../../shared/utils/users/accounts'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
} from '../../../../shared/extra-utils'
import {
getMyUserInformation,
killallServers,
ServerInfo,
testImage,
updateMyAvatar,
uploadVideo
} from '../../../../shared/extra-utils/index'
import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../../../shared/extra-utils/users/accounts'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { User } from '../../../../shared/models/users'
import { VideoChannel } from '../../../../shared/models/videos'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -5,10 +5,10 @@ import 'mocha'
import {
registerUser, flushTests, getUserInformation, getMyUserInformation, killallServers,
userLogin, login, runServer, ServerInfo, verifyEmail, updateCustomSubConfig, wait
} from '../../../../shared/utils'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
import { MockSmtpServer } from '../../../../shared/utils/miscs/email'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -33,10 +33,10 @@ import {
updateUser,
uploadVideo,
userLogin
} from '../../../../shared/utils'
import { follow } from '../../../../shared/utils/server/follows'
import { setAccessTokensToServers } from '../../../../shared/utils/users/login'
import { getMyVideos } from '../../../../shared/utils/videos/videos'
} from '../../../../shared/extra-utils'
import { follow } from '../../../../shared/extra-utils/server/follows'
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
import { getMyVideos } from '../../../../shared/extra-utils/videos/videos'
import { UserAdminFlag } from '../../../../shared/models/users/user-flag.model'
const expect = chai.expect

View File

@ -32,15 +32,15 @@ import {
viewVideo,
wait,
webtorrentAdd
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
addVideoCommentReply,
addVideoCommentThread,
deleteVideoComment,
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/utils/videos/video-comments'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/videos/video-comments'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -10,8 +10,8 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils/index'
import { runServer } from '../../../../shared/utils/server/servers'
} from '../../../../shared/extra-utils/index'
import { runServer } from '../../../../shared/extra-utils/server/servers'
const expect = chai.expect

View File

@ -28,7 +28,7 @@ import {
uploadVideo,
viewVideo,
wait
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
const expect = chai.expect

View File

@ -14,9 +14,9 @@ import {
setAccessTokensToServers,
updateVideoAbuse,
uploadVideo
} from '../../../../shared/utils/index'
import { doubleFollow } from '../../../../shared/utils/server/follows'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/index'
import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -20,9 +20,9 @@ import {
updateVideoBlacklist,
uploadVideo,
userLogin
} from '../../../../shared/utils/index'
import { doubleFollow } from '../../../../shared/utils/server/follows'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/index'
import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { VideoBlacklist, VideoBlacklistType } from '../../../../shared/models/videos'
import { UserAdminFlag } from '../../../../shared/models/users/user-flag.model'
import { UserRole } from '../../../../shared/models/users'

View File

@ -9,10 +9,15 @@ import {
removeVideo,
uploadVideo,
wait
} from '../../../../shared/utils'
import { flushTests, killallServers, ServerInfo, setAccessTokensToServers } from '../../../../shared/utils/index'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { createVideoCaption, deleteVideoCaption, listVideoCaptions, testCaptionFile } from '../../../../shared/utils/videos/video-captions'
} from '../../../../shared/extra-utils'
import { flushTests, killallServers, ServerInfo, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import {
createVideoCaption,
deleteVideoCaption,
listVideoCaptions,
testCaptionFile
} from '../../../../shared/extra-utils/videos/video-captions'
import { VideoCaption } from '../../../../shared/models/videos/caption/video-caption.model'
const expect = chai.expect

View File

@ -18,8 +18,8 @@ import {
uploadVideo,
userLogin,
getVideo
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { User } from '../../../../shared/models/users'
import { VideoDetails } from '../../../../shared/models/videos'

View File

@ -13,7 +13,7 @@ import {
updateVideoChannelAvatar,
uploadVideo,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import {
addVideoChannel,
deleteVideoChannel,
@ -26,8 +26,8 @@ import {
ServerInfo,
setAccessTokensToServers,
updateVideoChannel
} from '../../../../shared/utils/index'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/index'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -3,7 +3,7 @@
import * as chai from 'chai'
import 'mocha'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
import { testImage } from '../../../../shared/utils'
import { testImage } from '../../../../shared/extra-utils'
import {
dateIsValid,
flushTests,
@ -13,14 +13,14 @@ import {
setAccessTokensToServers,
updateMyAvatar,
uploadVideo
} from '../../../../shared/utils/index'
} from '../../../../shared/extra-utils/index'
import {
addVideoCommentReply,
addVideoCommentThread,
deleteVideoComment,
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/utils/videos/video-comments'
} from '../../../../shared/extra-utils/videos/video-comments'
const expect = chai.expect

View File

@ -12,9 +12,9 @@ import {
setAccessTokensToServers,
updateVideo,
uploadVideo
} from '../../../../shared/utils/index'
import { doubleFollow } from '../../../../shared/utils/server/follows'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/index'
import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -18,7 +18,7 @@ import {
updateVideo,
uploadVideo,
waitJobs
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { VideoDetails } from '../../../../shared/models/videos'
import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type'
import { join } from 'path'

View File

@ -14,9 +14,9 @@ import {
killallServers,
ServerInfo,
setAccessTokensToServers
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { getMagnetURI, getYoutubeVideoUrl, importVideo, getMyVideoImports } from '../../../../shared/utils/videos/video-imports'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { getMagnetURI, getYoutubeVideoUrl, importVideo, getMyVideoImports } from '../../../../shared/extra-utils/videos/video-imports'
const expect = chai.expect

View File

@ -9,10 +9,10 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils/index'
import { userLogin } from '../../../../shared/utils/users/login'
import { createUser } from '../../../../shared/utils/users/users'
import { getMyVideos } from '../../../../shared/utils/videos/videos'
} from '../../../../shared/extra-utils/index'
import { userLogin } from '../../../../shared/extra-utils/users/login'
import { createUser } from '../../../../shared/extra-utils/users/users'
import { getMyVideos } from '../../../../shared/extra-utils/videos/videos'
import {
getAccountVideos,
getConfig,
@ -25,7 +25,7 @@ import {
searchVideoWithToken,
updateCustomConfig,
updateMyUser
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { ServerConfig } from '../../../../shared/models'
import { CustomConfig } from '../../../../shared/models/server/custom-config.model'
import { User } from '../../../../shared/models/users'

View File

@ -36,7 +36,7 @@ import {
uploadVideoAndGetId,
userLogin,
waitJobs
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/video-playlist-privacy.model'
import { VideoPlaylist } from '../../../../shared/models/videos/playlist/video-playlist.model'
import { Video } from '../../../../shared/models/videos'

View File

@ -10,12 +10,12 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../../shared/utils/index'
import { doubleFollow } from '../../../../shared/utils/server/follows'
import { userLogin } from '../../../../shared/utils/users/login'
import { createUser } from '../../../../shared/utils/users/users'
import { getMyVideos, getVideo, getVideoWithToken, updateVideo } from '../../../../shared/utils/videos/videos'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils/index'
import { doubleFollow } from '../../../../shared/extra-utils/server/follows'
import { userLogin } from '../../../../shared/extra-utils/users/login'
import { createUser } from '../../../../shared/extra-utils/users/users'
import { getMyVideos, getVideo, getVideoWithToken, updateVideo } from '../../../../shared/extra-utils/videos/videos'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -15,8 +15,8 @@ import {
updateVideo,
uploadVideo,
wait
} from '../../../../shared/utils'
import { waitJobs } from '../../../../shared/utils/server/jobs'
} from '../../../../shared/extra-utils'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -19,9 +19,9 @@ import {
setAccessTokensToServers,
uploadVideo,
webtorrentAdd
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { extname, join } from 'path'
import { waitJobs } from '../../../../shared/utils/server/jobs'
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
import { VIDEO_TRANSCODING_FPS } from '../../../../server/initializers/constants'
const expect = chai.expect

View File

@ -13,7 +13,7 @@ import {
setAccessTokensToServers,
uploadVideo,
userLogin
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { Video, VideoPrivacy } from '../../../../shared/models/videos'
import { UserRole } from '../../../../shared/models/users'

View File

@ -16,9 +16,9 @@ import {
uploadVideo,
userLogin,
wait
} from '../../../../shared/utils'
} from '../../../../shared/extra-utils'
import { Video, VideoDetails } from '../../../../shared/models/videos'
import { listMyVideosHistory, removeMyVideosHistory, userWatchVideo } from '../../../../shared/utils/videos/video-history'
import { listMyVideosHistory, removeMyVideosHistory, userWatchVideo } from '../../../../shared/extra-utils/videos/video-history'
const expect = chai.expect

View File

@ -2,8 +2,8 @@
import * as chai from 'chai'
import 'mocha'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../../../shared/utils'
import { getVideosOverview } from '../../../../shared/utils/overviews/overviews'
import { flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../../../shared/extra-utils'
import { getVideosOverview } from '../../../../shared/extra-utils/overviews/overviews'
import { VideosOverview } from '../../../../shared/models/overviews'
const expect = chai.expect

View File

@ -11,10 +11,10 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo, uploadVideoAndGetId, viewVideo, wait, countVideoViewsOf, doubleFollow, waitJobs
} from '../../../../shared/utils'
import { getVideosOverview } from '../../../../shared/utils/overviews/overviews'
} from '../../../../shared/extra-utils'
import { getVideosOverview } from '../../../../shared/extra-utils/overviews/overviews'
import { VideosOverview } from '../../../../shared/models/overviews'
import { listMyVideosHistory } from '../../../../shared/utils/videos/video-history'
import { listMyVideosHistory } from '../../../../shared/extra-utils/videos/video-history'
const expect = chai.expect

View File

@ -15,8 +15,8 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../shared/utils'
import { waitJobs } from '../../../shared/utils/server/jobs'
} from '../../../shared/extra-utils'
import { waitJobs } from '../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -15,8 +15,8 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo, wait
} from '../../../shared/utils'
import { waitJobs } from '../../../shared/utils/server/jobs'
} from '../../../shared/extra-utils'
import { waitJobs } from '../../../shared/extra-utils/server/jobs'
const expect = chai.expect

View File

@ -15,8 +15,8 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo, viewVideo, wait
} from '../../../shared/utils'
import { waitJobs } from '../../../shared/utils/server/jobs'
} from '../../../shared/extra-utils'
import { waitJobs } from '../../../shared/extra-utils/server/jobs'
import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../../helpers/ffmpeg-utils'
import { VIDEO_TRANSCODING_FPS } from '../../initializers/constants'
import { join } from 'path'

View File

@ -11,7 +11,7 @@ import {
runServer,
ServerInfo,
setAccessTokensToServers
} from '../../../shared/utils'
} from '../../../shared/extra-utils'
describe('Test CLI wrapper', function () {
let server: ServerInfo

View File

@ -10,7 +10,7 @@ import {
runServer,
ServerInfo,
setAccessTokensToServers
} from '../../../shared/utils'
} from '../../../shared/extra-utils'
describe('Test reset password scripts', function () {
let server: ServerInfo

View File

@ -3,8 +3,8 @@
import 'mocha'
import * as chai from 'chai'
import { VideoDetails } from '../../../shared/models/videos'
import { waitJobs } from '../../../shared/utils/server/jobs'
import { addVideoCommentThread } from '../../../shared/utils/videos/video-comments'
import { waitJobs } from '../../../shared/extra-utils/server/jobs'
import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments'
import {
addVideoChannel,
createUser,
@ -21,8 +21,8 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../shared/utils'
import { getAccountsList } from '../../../shared/utils/users/accounts'
} from '../../../shared/extra-utils'
import { getAccountsList } from '../../../shared/extra-utils/users/accounts'
const expect = chai.expect

View File

@ -15,7 +15,7 @@ import {
updateCustomConfig,
updateCustomSubConfig,
uploadVideo
} from '../../shared/utils'
} from '../../shared/extra-utils'
const expect = chai.expect

View File

@ -13,10 +13,10 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo, userLogin
} from '../../../shared/utils'
} from '../../../shared/extra-utils'
import * as libxmljs from 'libxmljs'
import { addVideoCommentThread } from '../../../shared/utils/videos/video-comments'
import { waitJobs } from '../../../shared/utils/server/jobs'
import { addVideoCommentThread } from '../../../shared/extra-utils/videos/video-comments'
import { waitJobs } from '../../../shared/extra-utils/server/jobs'
import { User } from '../../../shared/models/users'
chai.use(require('chai-xml'))

View File

@ -2,7 +2,7 @@
import 'mocha'
import { doRequest, doRequestAndSaveToFile } from '../../helpers/requests'
import { get4KFileUrl, root, wait } from '../../../shared/utils'
import { get4KFileUrl, root, wait } from '../../../shared/extra-utils'
import { join } from 'path'
import { pathExists, remove } from 'fs-extra'
import { expect } from 'chai'

View File

@ -12,7 +12,7 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../shared/utils'
} from '../../shared/extra-utils'
import { VideoPrivacy } from '../../shared/models/videos'
const expect = chai.expect

View File

@ -10,7 +10,7 @@ import {
ServerInfo,
setAccessTokensToServers,
uploadVideo
} from '../../../shared/utils'
} from '../../../shared/extra-utils'
import * as Bluebird from 'bluebird'
start()

View File

@ -16,8 +16,8 @@ import {
updateVideo,
uploadVideo, viewVideo,
wait
} from '../../../shared/utils'
import { getJobsListPaginationAndSort } from '../../../shared/utils/server/jobs'
} from '../../../shared/extra-utils'
import { getJobsListPaginationAndSort } from '../../../shared/extra-utils/server/jobs'
interface ServerInfo extends DefaultServerInfo {
requestsNumber: number

View File

@ -6,7 +6,7 @@ import {
Server,
Client,
User
} from '../../shared/utils'
} from '../../shared/extra-utils'
program
.option('-u, --url <url>', 'Server url')

View File

@ -6,7 +6,7 @@ import { join } from 'path'
import { VideoPrivacy } from '../../shared/models/videos'
import { doRequestAndSaveToFile } from '../helpers/requests'
import { CONSTRAINTS_FIELDS } from '../initializers/constants'
import { getClient, getVideoCategories, login, searchVideoWithSort, uploadVideo } from '../../shared/utils/index'
import { getClient, getVideoCategories, login, searchVideoWithSort, uploadVideo } from '../../shared/extra-utils/index'
import { truncate } from 'lodash'
import * as prompt from 'prompt'
import { remove } from 'fs-extra'

View File

@ -1,8 +1,8 @@
import * as program from 'commander'
import { access, constants } from 'fs-extra'
import { isAbsolute } from 'path'
import { getClient, login } from '../../shared/utils'
import { uploadVideo } from '../../shared/utils/'
import { getClient, login } from '../../shared/extra-utils'
import { uploadVideo } from '../../shared/extra-utils/'
import { VideoPrivacy } from '../../shared/models/videos'
import { netrc, getSettings } from './cli'

View File

@ -33,7 +33,7 @@ function webtorrentAdd (torrent: string, refreshWebTorrent = false) {
}
function root () {
// We are in /shared/utils/miscs
// We are in /miscs
return join(__dirname, '..', '..', '..')
}

Some files were not shown because too many files have changed in this diff Show More