aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-12 10:53:46 +0200
committerChocobozzz <me@florianbigard.com>2023-07-12 10:56:07 +0200
commitd959b763f089ed4c1087aa4aeb824a8ef6743111 (patch)
treef4b5e77757fde022c91e415906bcf4619f8ec31c /server/tests/api
parent88cde4392a27d5d37685a471f9bf83d537282c43 (diff)
downloadPeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.tar.gz
PeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.tar.zst
PeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.zip
Avoid duplicate runner names
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/runners.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/tests/api/check-params/runners.ts b/server/tests/api/check-params/runners.ts
index 4ba90802f..7d70c412e 100644
--- a/server/tests/api/check-params/runners.ts
+++ b/server/tests/api/check-params/runners.ts
@@ -177,6 +177,15 @@ describe('Test managing runners', function () {
177 177
178 toDeleteId = id 178 toDeleteId = id
179 }) 179 })
180
181 it('Should fail with the same runner name', async function () {
182 await server.runners.register({
183 name,
184 description: 'super description',
185 registrationToken,
186 expectedStatus: HttpStatusCode.BAD_REQUEST_400
187 })
188 })
180 }) 189 })
181 190
182 describe('Delete', function () { 191 describe('Delete', function () {