From 4f2cfbe6af12dffe5530acdcc1aee194e5aaa1b3 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 12 May 2024 08:54:04 +0200 Subject: [PATCH] [FIX] correct Test unit --- back/test/src/test/kar/karso/TestUnAuthorizedAPI.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/back/test/src/test/kar/karso/TestUnAuthorizedAPI.java b/back/test/src/test/kar/karso/TestUnAuthorizedAPI.java index fd445da..371d78f 100644 --- a/back/test/src/test/kar/karso/TestUnAuthorizedAPI.java +++ b/back/test/src/test/kar/karso/TestUnAuthorizedAPI.java @@ -174,13 +174,13 @@ public class TestUnAuthorizedAPI { checkFail("POST", "users/0/application/0/link", 401, "{}"); checkFail("POST", "users/0/set_admin", 401, "{}"); checkFail("POST", "users/0/set_blocked", 401, "{}"); - checkFail("POST", "users/create_new_user", 401, "{}"); + checkFail("POST", "users", 401, "{}"); checkFail("GET", "users/me", 401, "{}"); checkFail("POST", "users/password", 401, "{}"); - checkWork("GET", "users/check_login?login=karadmin"); - checkFail("GET", "users/check_login?login=jhkjhkjh", 404); - checkWork("GET", "users/check_email?email=admin@admin.ZZZ"); - checkFail("GET", "users/check_email?email=ksjhdkjfhskjdh", 404); + checkWork("GET", "users/is_login_exist?login=karadmin"); + checkWork("GET", "users/is_login_exist?login=jhkjhkjh"); + checkWork("GET", "users/is_email_exist?email=admin@admin.ZZZ"); + checkWork("GET", "users/is_email_exist?email=ksjhdkjfhskjdh"); // not testable : get_token }