aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/check-params/videos.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/server/tests/api/check-params/videos.js b/server/tests/api/check-params/videos.js
index 25b4eae31..03b4db3fe 100644
--- a/server/tests/api/check-params/videos.js
+++ b/server/tests/api/check-params/videos.js
@@ -187,18 +187,6 @@ describe('Test videos API validator', function () {
187 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done) 187 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done)
188 }) 188 })
189 189
190 it('Should fail without tags', function (done) {
191 const data = {
192 name: 'my super name',
193 category: 5,
194 description: 'my super description'
195 }
196 const attach = {
197 'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm')
198 }
199 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done)
200 })
201
202 it('Should fail with too many tags', function (done) { 190 it('Should fail with too many tags', function (done) {
203 const data = { 191 const data = {
204 name: 'my super name', 192 name: 'my super name',
@@ -212,19 +200,6 @@ describe('Test videos API validator', function () {
212 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done) 200 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done)
213 }) 201 })
214 202
215 it('Should fail with not enough tags', function (done) {
216 const data = {
217 name: 'my super name',
218 category: 5,
219 description: 'my super description',
220 tags: [ ]
221 }
222 const attach = {
223 'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm')
224 }
225 requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, done)
226 })
227
228 it('Should fail with a tag length too low', function (done) { 203 it('Should fail with a tag length too low', function (done) {
229 const data = { 204 const data = {
230 name: 'my super name', 205 name: 'my super name',
@@ -386,16 +361,6 @@ describe('Test videos API validator', function () {
386 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done) 361 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done)
387 }) 362 })
388 363
389 it('Should fail with not enough tags', function (done) {
390 const data = {
391 name: 'my super name',
392 category: 5,
393 description: 'my super description',
394 tags: [ ]
395 }
396 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done)
397 })
398
399 it('Should fail with a tag length too low', function (done) { 364 it('Should fail with a tag length too low', function (done) {
400 const data = { 365 const data = {
401 name: 'my super name', 366 name: 'my super name',
@@ -416,16 +381,6 @@ describe('Test videos API validator', function () {
416 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done) 381 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done)
417 }) 382 })
418 383
419 it('Should fail with malformed tags', function (done) {
420 const data = {
421 name: 'my super name',
422 category: 5,
423 description: 'my super description',
424 tags: [ 'my tag' ]
425 }
426 requestsUtils.makePutBodyRequest(server.url, path + videoId, server.accessToken, data, done)
427 })
428
429 it('Should fail with a video of another user') 384 it('Should fail with a video of another user')
430 385
431 it('Should fail with a video of another pod') 386 it('Should fail with a video of another pod')