@@ -41,10 +41,10 @@ class LocalDataBatchProtectionAgentTest : public ::testing::Test {
4141TEST_F (LocalDataBatchProtectionAgentTest, SuccessfulEncryption) {
4242 LocalDataBatchProtectionAgent agent;
4343
44- std::map<std::string, std::string> connection_config ;
44+ std::map<std::string, std::string> configuration_map = {} ;
4545 std::string app_context = R"( {"user_id": "test_user"})" ;
4646
47- EXPECT_NO_THROW (agent.init (" test_column" , connection_config , app_context, " test_key" ,
47+ EXPECT_NO_THROW (agent.init (" test_column" , configuration_map , app_context, " test_key" ,
4848 Type::UNDEFINED , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ));
4949
5050 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
@@ -59,10 +59,10 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulEncryption) {
5959TEST_F (LocalDataBatchProtectionAgentTest, SuccessfulEncryptionCompressedDictionary) {
6060 LocalDataBatchProtectionAgent agent;
6161
62- std::map<std::string, std::string> connection_config ;
62+ std::map<std::string, std::string> configuration_map = {} ;
6363 std::string app_context = R"( {"user_id": "test_user"})" ;
6464
65- EXPECT_NO_THROW (agent.init (" test_column" , connection_config , app_context, " test_key" ,
65+ EXPECT_NO_THROW (agent.init (" test_column" , configuration_map , app_context, " test_key" ,
6666 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::GZIP , std::nullopt ));
6767
6868 // GZIP compressed data for strings "apple" and "banana"
@@ -84,10 +84,10 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulEncryptionCompressedDictiona
8484TEST_F (LocalDataBatchProtectionAgentTest, SuccessfulDecryption) {
8585 LocalDataBatchProtectionAgent agent;
8686
87- std::map<std::string, std::string> connection_config ;
87+ std::map<std::string, std::string> configuration_map = {} ;
8888 std::string app_context = R"( {"user_id": "test_user"})" ;
8989
90- EXPECT_NO_THROW (agent.init (" test_column" , connection_config , app_context, " test_key" ,
90+ EXPECT_NO_THROW (agent.init (" test_column" , configuration_map , app_context, " test_key" ,
9191 Type::UNDEFINED , std::nullopt , CompressionCodec::UNCOMPRESSED , DBPS_ENCRYPTION_METADATA ));
9292
9393 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
@@ -103,10 +103,10 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulDecryption) {
103103TEST_F (LocalDataBatchProtectionAgentTest, RoundTripEncryptDecrypt) {
104104 LocalDataBatchProtectionAgent encrypt_agent;
105105
106- std::map<std::string, std::string> connection_config ;
106+ std::map<std::string, std::string> configuration_map = {} ;
107107 std::string app_context = R"( {"user_id": "test_user"})" ;
108108
109- EXPECT_NO_THROW (encrypt_agent.init (" test_column" , connection_config , app_context, " test_key" ,
109+ EXPECT_NO_THROW (encrypt_agent.init (" test_column" , configuration_map , app_context, " test_key" ,
110110 Type::UNDEFINED , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ));
111111
112112 // Original data to encrypt
@@ -132,7 +132,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, RoundTripEncryptDecrypt) {
132132
133133 // Create a new agent for decryption with the encryption_metadata from the encryption result
134134 LocalDataBatchProtectionAgent decrypt_agent;
135- EXPECT_NO_THROW (decrypt_agent.init (" test_column" , connection_config , app_context, " test_key" ,
135+ EXPECT_NO_THROW (decrypt_agent.init (" test_column" , configuration_map , app_context, " test_key" ,
136136 Type::UNDEFINED , std::nullopt , CompressionCodec::UNCOMPRESSED , encryption_metadata));
137137
138138 // Decrypt the ciphertext
@@ -183,21 +183,21 @@ TEST_F(LocalDataBatchProtectionAgentTest, DecryptWithoutInit) {
183183TEST_F (LocalDataBatchProtectionAgentTest, MissingUserId) {
184184 LocalDataBatchProtectionAgent agent;
185185
186- std::map<std::string, std::string> connection_config ;
186+ std::map<std::string, std::string> configuration_map = {} ;
187187 std::string app_context = R"( {"role": "admin"})" ;
188188
189- EXPECT_THROW (agent.init (" test_column" , connection_config , app_context, " test_key" ,
189+ EXPECT_THROW (agent.init (" test_column" , configuration_map , app_context, " test_key" ,
190190 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ), DBPSException);
191191}
192192
193193// Test missing page_encoding in encoding_attributes
194194TEST_F (LocalDataBatchProtectionAgentTest, MissingPageEncoding) {
195195 LocalDataBatchProtectionAgent agent;
196196
197- std::map<std::string, std::string> connection_config ;
197+ std::map<std::string, std::string> configuration_map = {} ;
198198 std::string app_context = R"( {"user_id": "test_user"})" ;
199199
200- EXPECT_NO_THROW (agent.init (" test_column" , connection_config , app_context, " test_key" ,
200+ EXPECT_NO_THROW (agent.init (" test_column" , configuration_map , app_context, " test_key" ,
201201 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ));
202202
203203 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
0 commit comments