Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Disable HTTP import in push actions

Chocobozzz5c0ecc340ec6
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts
index 27fbde02de..e2861f46e7 100644
--- a/server/tests/cli/peertube.ts
+++ b/server/tests/cli/peertube.ts
@@ -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)