aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-channels.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 15:18:07 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 15:20:14 +0200
commit601527d7953a83d6ad08dbb2ed8ac02851beaf1e (patch)
tree8c2c83b526a6f137043ef3c7c06cb13e03b94438 /server/tests/api/check-params/video-channels.ts
parent7361c401b17415931f25f3a2137ba22a06a6a4ed (diff)
downloadPeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.tar.gz
PeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.tar.zst
PeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.zip
Check video channel name is unique on our instance
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r--server/tests/api/check-params/video-channels.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts
index bcf4b7473..3a7942945 100644
--- a/server/tests/api/check-params/video-channels.ts
+++ b/server/tests/api/check-params/video-channels.ts
@@ -136,6 +136,16 @@ describe('Test video channels API validator', function () {
136 statusCodeExpected: 200 136 statusCodeExpected: 200
137 }) 137 })
138 }) 138 })
139
140 it('Should fail when adding a channel with the same username', async function () {
141 await makePostBodyRequest({
142 url: server.url,
143 path: videoChannelPath,
144 token: server.accessToken,
145 fields: baseCorrectParams,
146 statusCodeExpected: 409
147 })
148 })
139 }) 149 })
140 150
141 describe('When updating a video channel', function () { 151 describe('When updating a video channel', function () {