From de4fc1a42d6b8e8c54ec351acd4417c48b6286de Mon Sep 17 00:00:00 2001 From: Marcin Niesluchowski Date: Thu, 8 Aug 2013 14:20:43 +0200 Subject: [PATCH] Changing security-server tests to match no empty password string case. New empty password given should return SECURITY_SERVER_API_ERROR_INPUT_PARAM. [Issue#] SSDWSSP-422 [Bug/Feature] Security-server empty password issue was unclear. [Cause] N/A [Solution] N/A [Verification] Run ss-password tests based on security-server http://slp-info.sec.samsung.net/gerrit/#/c/259876/ commit. Change-Id: Iaa44daba668f7aa1149e0c55adf993504eec8c07 --- tests/security-server-tests/security_server_tests_password.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/security-server-tests/security_server_tests_password.cpp b/tests/security-server-tests/security_server_tests_password.cpp index 8bb97a1..bb2c4fd 100644 --- a/tests/security-server-tests/security_server_tests_password.cpp +++ b/tests/security-server-tests/security_server_tests_password.cpp @@ -294,7 +294,7 @@ RUNNER_TEST(tc12_security_server_set_pwd_current_pwd_nonempty2zero) // TEST sleep(1); ret = security_server_set_pwd(TEST_PASSWORD, "", 0, 0); - RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_ERROR_PASSWORD_EMPTY, "ret = " << ret); + RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_ERROR_INPUT_PARAM, "ret = " << ret); } /** @@ -333,7 +333,7 @@ RUNNER_TEST(tc15_security_server_chk_pwd_shortest_password) // TEST sleep(1); ret = security_server_chk_pwd("", &attempt, &max_attempt, &expire_sec); - RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_ERROR_PASSWORD_EMPTY, "ret = " << ret); + RUNNER_ASSERT_MSG(ret == SECURITY_SERVER_API_ERROR_INPUT_PARAM, "ret = " << ret); } /** -- 2.7.4