Changing security-server tests to match no empty password string case.
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 8 Aug 2013 12:20:43 +0000 (14:20 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:07:37 +0000 (15:07 +0100)
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

index 8bb97a1..bb2c4fd 100644 (file)
@@ -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);
 }
 
 /**