SM : Adjust to new path handling
[platform/core/test/security-tests.git] / src / security-manager-tests / test_cases_register_paths.cpp
index 88e0896..cc98ac6 100644 (file)
@@ -85,7 +85,8 @@ RUNNER_TEST(security_manager_57_path_req_wrong_uid)
     preq.setInstallType(SM_APP_INSTALL_LOCAL);
     preq.addPath(app.getPrivateDir(), SECURITY_MANAGER_PATH_RW);
 
-    Api::registerPaths(preq, (lib_retcode)SECURITY_MANAGER_ERROR_SERVER_ERROR);
+    // Not sure why this shouldn't be invalid param
+    Api::registerPaths(preq, (lib_retcode)SECURITY_MANAGER_ERROR_UNKNOWN);
 }
 
 RUNNER_TEST(security_manager_58_path_req_empty_paths)
@@ -172,7 +173,7 @@ static void checkOutsidePath(const std::string& pkgId, uid_t uid, const std::str
     preq.setUid(uid);
     preq.addPath(path, SECURITY_MANAGER_PATH_RW);
 
-    Api::registerPaths(preq, (lib_retcode)SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED);
+    Api::registerPaths(preq, (lib_retcode)SECURITY_MANAGER_ERROR_NOT_PATH_OWNER);
 }
 
 RUNNER_TEST(security_manager_62_path_req_path_outside)
@@ -212,7 +213,7 @@ RUNNER_CHILD_TEST(security_manager_63a_path_req_as_user)
     preq.setInstallType(SM_APP_INSTALL_GLOBAL);
     preq.addPath(app.getPrivateDir(), SECURITY_MANAGER_PATH_RW);
 
-    Api::registerPaths(preq, SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED);
+    Api::registerPaths(preq, SECURITY_MANAGER_ERROR_NOT_PATH_OWNER);
 }
 
 RUNNER_CHILD_TEST(security_manager_63b_path_req_preloaded_as_user)
@@ -234,7 +235,7 @@ RUNNER_CHILD_TEST(security_manager_63b_path_req_preloaded_as_user)
     preq.setInstallType(SM_APP_INSTALL_PRELOADED);
     preq.addPath(app.getPrivateDir(), SECURITY_MANAGER_PATH_RW);
 
-    Api::registerPaths(preq, SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED);
+    Api::registerPaths(preq, SECURITY_MANAGER_ERROR_NOT_PATH_OWNER);
 }
 
 RUNNER_TEST(security_manager_64a_path_req_as_local_as_root)