const CKM::Password NEW_PASSWORD = "NEW12345TIZEN12345NEW";
const std::string USERNAME_SHORT = "AB";
-const std::string USERNAME_LONG = "SOFTWARE_CENTER_SYSTEM_SW_LAB_SECURITY_PART";
+const std::string USERNAME_LONG = "SOFTWARE_CENTER_SYSTEM_SW_LAB";
const std::string CLIENT_ID_1 = "SAMPLE_CLIENT_ID_1";
const std::string CLIENT_ID_2 = "SAMPLE_CLIENT_ID_2";
BOOST_REQUIRE_NO_THROW(wrappedContainer.setKeyInfoSalt(salt.data(), salt.size()));
BOOST_REQUIRE_NO_THROW(wrappedContainer.setKeyInfoClient("key_info_client"));
+ BOOST_REQUIRE_THROW(wrappedContainer.setKeyInfoClient("key_info_client_waaaaay_too_long"),
+ CKM::Exc::InternalError);
+
CKM::WrappedKeyAndInfoContainer wrappedContainer2;
BOOST_REQUIRE_NO_THROW(
wrappedContainer2.setKeyInfo(&wrappedContainer.getWrappedKeyAndInfo().keyInfo));