[FIX] correct Test unit

This commit is contained in:
Edouard DUPIN 2024-05-12 08:54:04 +02:00
parent 2c00b15e8c
commit 4f2cfbe6af

View File

@ -174,13 +174,13 @@ public class TestUnAuthorizedAPI {
checkFail("POST", "users/0/application/0/link", 401, "{}"); checkFail("POST", "users/0/application/0/link", 401, "{}");
checkFail("POST", "users/0/set_admin", 401, "{}"); checkFail("POST", "users/0/set_admin", 401, "{}");
checkFail("POST", "users/0/set_blocked", 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("GET", "users/me", 401, "{}");
checkFail("POST", "users/password", 401, "{}"); checkFail("POST", "users/password", 401, "{}");
checkWork("GET", "users/check_login?login=karadmin"); checkWork("GET", "users/is_login_exist?login=karadmin");
checkFail("GET", "users/check_login?login=jhkjhkjh", 404); checkWork("GET", "users/is_login_exist?login=jhkjhkjh");
checkWork("GET", "users/check_email?email=admin@admin.ZZZ"); checkWork("GET", "users/is_email_exist?email=admin@admin.ZZZ");
checkFail("GET", "users/check_email?email=ksjhdkjfhskjdh", 404); checkWork("GET", "users/is_email_exist?email=ksjhdkjfhskjdh");
// not testable : get_token // not testable : get_token
} }