*/
#include <sys/types.h>
#include <unistd.h>
+#include <ckm-common.h>
#include <dpl/test/test_runner.h>
#include <dpl/test/test_runner_child.h>
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->removeUserData(ps.GetUid())),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->resetUserPassword(ps.GetUid(),
"simple-password")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->resetUserPassword(ps.GetUid(), "something")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->unlockUserKey(ps.GetUid(), "test-pass")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->lockUserKey(ps.GetUid())),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->resetUserPassword(ps.GetUid(), "something")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_ACCESS_DENIED == (temp = control->removeUserData(ps.GetUid())),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
}
RUNNER_CHILD_TEST(G01T02_ControlPositive) {
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->removeUserData(USER_UID)),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->resetUserPassword(USER_UID,
"simple-password")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->resetUserPassword(USER_UID, "something")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->unlockUserKey(USER_UID, "test-pass")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->lockUserKey(USER_UID)),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_ERROR_BAD_REQUEST == (temp = control->resetUserPassword(USER_UID, "something")),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
RUNNER_ASSERT_MSG(
CKM_API_SUCCESS == (temp = control->removeUserData(USER_UID)),
- "Error=" << CKM::ErrorToString(temp));
+ "Error=" << CKMErrorToString(temp));
}
RUNNER_CHILD_TEST(G01T03_ProcessIdentificationBySecurityManager) {