Add downloadingEnabled property to video model

This commit is contained in:
Lucas Declercq
2018-10-06 19:17:21 +02:00
parent 35d50b7dd2
commit 156c50af30
34 changed files with 100 additions and 4 deletions

View File

@@ -84,6 +84,7 @@ describe('Test video imports API validator', function () {
language: 'pt',
nsfw: false,
commentsEnabled: true,
downloadingEnabled: true,
waitTranscoding: true,
description: 'my super description',
support: 'my super support text',

View File

@@ -175,6 +175,7 @@ describe('Test videos API validator', function () {
language: 'pt',
nsfw: false,
commentsEnabled: true,
downloadingEnabled: true,
waitTranscoding: true,
description: 'my super description',
support: 'my super support text',
@@ -419,6 +420,7 @@ describe('Test videos API validator', function () {
language: 'pt',
nsfw: false,
commentsEnabled: false,
downloadingEnabled: false,
description: 'my super description',
privacy: VideoPrivacy.PUBLIC,
tags: [ 'tag1', 'tag2' ]

View File

@@ -305,6 +305,7 @@ describe('Test follows', function () {
},
isLocal,
commentsEnabled: true,
downloadingEnabled: true,
duration: 5,
tags: [ 'tag1', 'tag2', 'tag3' ],
privacy: VideoPrivacy.PUBLIC,

View File

@@ -70,6 +70,7 @@ describe('Test handle downs', function () {
tags: [ 'tag1p1', 'tag2p1' ],
privacy: VideoPrivacy.PUBLIC,
commentsEnabled: true,
downloadingEnabled: true,
channel: {
name: 'root_channel',
displayName: 'Main root channel',

View File

@@ -127,6 +127,7 @@ describe('Test multiple servers', function () {
tags: [ 'tag1p1', 'tag2p1' ],
privacy: VideoPrivacy.PUBLIC,
commentsEnabled: true,
downloadingEnabled: true,
channel: {
displayName: 'my channel',
name: 'super_channel_name',
@@ -198,6 +199,7 @@ describe('Test multiple servers', function () {
},
isLocal,
commentsEnabled: true,
downloadingEnabled: true,
duration: 5,
tags: [ 'tag1p2', 'tag2p2', 'tag3p2' ],
privacy: VideoPrivacy.PUBLIC,
@@ -306,6 +308,7 @@ describe('Test multiple servers', function () {
isLocal,
duration: 5,
commentsEnabled: true,
downloadingEnabled: true,
tags: [ 'tag1p3' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
@@ -337,6 +340,7 @@ describe('Test multiple servers', function () {
host: 'localhost:9003'
},
commentsEnabled: true,
downloadingEnabled: true,
isLocal,
duration: 5,
tags: [ 'tag2p3', 'tag3p3', 'tag4p3' ],
@@ -654,6 +658,7 @@ describe('Test multiple servers', function () {
isLocal,
duration: 5,
commentsEnabled: true,
downloadingEnabled: true,
tags: [ 'tag_up_1', 'tag_up_2' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
@@ -975,6 +980,7 @@ describe('Test multiple servers', function () {
isLocal,
duration: 5,
commentsEnabled: false,
downloadingEnabled: false,
tags: [ ],
privacy: VideoPrivacy.PUBLIC,
channel: {

View File

@@ -55,6 +55,7 @@ describe('Test a single server', function () {
tags: [ 'tag1', 'tag2', 'tag3' ],
privacy: VideoPrivacy.PUBLIC,
commentsEnabled: true,
downloadingEnabled: true,
channel: {
displayName: 'Main root channel',
name: 'root_channel',
@@ -87,6 +88,7 @@ describe('Test a single server', function () {
privacy: VideoPrivacy.PUBLIC,
duration: 5,
commentsEnabled: false,
downloadingEnabled: false,
channel: {
name: 'root_channel',
displayName: 'Main root channel',
@@ -356,6 +358,7 @@ describe('Test a single server', function () {
nsfw: false,
description: 'my super description updated',
commentsEnabled: false,
downloadingEnabled: false,
tags: [ 'tagup1', 'tagup2' ]
}
await updateVideo(server.url, server.accessToken, videoId, attributes)