Disable HTTP import in push actions

This commit is contained in:
Chocobozzz
2020-11-17 14:23:52 +01:00
parent 1648dcb509
commit 5c0ecc340e

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)