aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/real-world/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/real-world/tools')
-rw-r--r--server/tests/real-world/tools/upload.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/tests/real-world/tools/upload.js b/server/tests/real-world/tools/upload.js
index 856251c7f..7b97ebf0b 100644
--- a/server/tests/real-world/tools/upload.js
+++ b/server/tests/real-world/tools/upload.js
@@ -9,7 +9,8 @@ program
9 .option('-u, --url <url>', 'Server url') 9 .option('-u, --url <url>', 'Server url')
10 .option('-a, --access-token <token>', 'Access token') 10 .option('-a, --access-token <token>', 'Access token')
11 .option('-n, --name <name>', 'Video name') 11 .option('-n, --name <name>', 'Video name')
12 .option('-d, --category <category number>', 'Category number') 12 .option('-c, --category <category number>', 'Category number')
13 .option('-l, --licence <licence number>', 'Licence number')
13 .option('-d, --description <description>', 'Video description') 14 .option('-d, --description <description>', 'Video description')
14 .option('-t, --tags <tags>', 'Video tags', list) 15 .option('-t, --tags <tags>', 'Video tags', list)
15 .option('-f, --file <file>', 'Video absolute file path') 16 .option('-f, --file <file>', 'Video absolute file path')
@@ -20,6 +21,7 @@ if (
20 !program.accessToken || 21 !program.accessToken ||
21 !program.name || 22 !program.name ||
22 !program.category || 23 !program.category ||
24 !program.licence ||
23 !program.description || 25 !program.description ||
24 !program.tags || 26 !program.tags ||
25 !Array.isArray(program.tags) || 27 !Array.isArray(program.tags) ||
@@ -37,6 +39,7 @@ fs.access(program.file, fs.F_OK, function (err) {
37 program.accessToken, 39 program.accessToken,
38 program.name, 40 program.name,
39 program.category, 41 program.category,
42 program.licence,
40 program.description, 43 program.description,
41 program.tags, 44 program.tags,
42 program.file 45 program.file
@@ -49,12 +52,13 @@ function list (val) {
49 return val.split(',') 52 return val.split(',')
50} 53}
51 54
52function upload (url, accessToken, name, category, description, tags, fixture) { 55function upload (url, accessToken, name, category, licence, description, tags, fixture) {
53 console.log('Uploading %s video...', program.name) 56 console.log('Uploading %s video...', program.name)
54 57
55 const videoAttributes = { 58 const videoAttributes = {
56 name, 59 name,
57 category, 60 category,
61 licence,
58 description, 62 description,
59 tags, 63 tags,
60 fixture 64 fixture