Disable HTTP import in push actions

This commit is contained in:
Chocobozzz 2020-11-17 14:23:52 +01:00
parent 1648dcb509
commit 5c0ecc340e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 8 additions and 1 deletions

View File

@ -2,8 +2,10 @@
import 'mocha'
import { expect } from 'chai'
import { Video, VideoDetails } from '../../../shared'
import {
addVideoChannel,
areHttpImportTestsDisabled,
buildAbsoluteFixturePath,
cleanupTests,
createUser,
@ -21,7 +23,6 @@ import {
userLogin,
waitJobs
} from '../../../shared/extra-utils'
import { Video, VideoDetails } from '../../../shared'
import { getYoutubeVideoUrl } from '../../../shared/extra-utils/videos/video-imports'
describe('Test CLI wrapper', function () {
@ -112,6 +113,8 @@ describe('Test CLI wrapper', function () {
})
it('Should import a video', async function () {
if (areHttpImportTestsDisabled()) return
this.timeout(60000)
const env = getEnvCli(server)
@ -122,6 +125,8 @@ describe('Test CLI wrapper', function () {
})
it('Should have imported the video', async function () {
if (areHttpImportTestsDisabled()) return
this.timeout(60000)
await waitJobs([ server ])
@ -144,6 +149,8 @@ describe('Test CLI wrapper', function () {
})
it('Should import and override some imported attributes', async function () {
if (areHttpImportTestsDisabled()) return
this.timeout(60000)
const env = getEnvCli(server)