From d959b763f089ed4c1087aa4aeb824a8ef6743111 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Jul 2023 10:53:46 +0200 Subject: Avoid duplicate runner names --- server/tests/api/check-params/runners.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server/tests/api') 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 () { toDeleteId = id }) + + it('Should fail with the same runner name', async function () { + await server.runners.register({ + name, + description: 'super description', + registrationToken, + expectedStatus: HttpStatusCode.BAD_REQUEST_400 + }) + }) }) describe('Delete', function () { -- cgit v1.2.3