@@ -50,7 +50,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulEncryption) {
5050 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ));
5151
5252 std::vector<uint8_t > test_data = BuildByteArrayValueBytesForTesting (" test_ABC" );
53- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
53+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
5454 auto result = agent.Encrypt (test_data, encoding_attributes);
5555
5656 ASSERT_NE (result, nullptr );
@@ -74,7 +74,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulEncryptionCompressedDictiona
7474 0x03 , 0x32 , 0x92 , 0x12 , 0xF3 , 0x80 , 0x10 , 0x00 , 0xC7 , 0xB8 ,
7575 0x50 , 0xFC , 0x13 , 0x00 , 0x00 , 0x00
7676 };
77- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
77+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
7878 auto result = agent.Encrypt (test_data_gzip, encoding_attributes);
7979
8080 ASSERT_NE (result, nullptr );
@@ -93,7 +93,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, SuccessfulDecryption) {
9393 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::UNCOMPRESSED , DBPS_ENCRYPTION_METADATA ));
9494
9595 std::vector<uint8_t > test_data = BuildByteArrayValueBytesForTesting (" test_EFG" );
96- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
96+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
9797 auto result = agent.Decrypt (test_data, encoding_attributes);
9898
9999 ASSERT_NE (result, nullptr );
@@ -113,7 +113,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, RoundTripEncryptDecrypt) {
113113
114114 // Original data to encrypt
115115 std::vector<uint8_t > original_data = BuildByteArrayValueBytesForTesting (" roundtrip_XYZ" );
116- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
116+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
117117
118118 // Encrypt the data
119119 auto encrypt_result = encrypt_agent.Encrypt (original_data, encoding_attributes);
@@ -156,7 +156,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, EncryptWithoutInit) {
156156 LocalDataBatchProtectionAgent agent;
157157
158158 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
159- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
159+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
160160 auto result = agent.Encrypt (test_data, encoding_attributes);
161161
162162 ASSERT_NE (result, nullptr );
@@ -171,7 +171,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, DecryptWithoutInit) {
171171 LocalDataBatchProtectionAgent agent;
172172
173173 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
174- std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }};
174+ std::map<std::string, std::string> encoding_attributes = {{" page_encoding" , " PLAIN" }, {" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
175175 auto result = agent.Decrypt (test_data, encoding_attributes);
176176
177177 ASSERT_NE (result, nullptr );
@@ -203,7 +203,7 @@ TEST_F(LocalDataBatchProtectionAgentTest, MissingPageEncoding) {
203203 Type::BYTE_ARRAY , std::nullopt , CompressionCodec::UNCOMPRESSED , std::nullopt ));
204204
205205 std::vector<uint8_t > test_data = {1 , 2 , 3 , 4 };
206- std::map<std::string, std::string> encoding_attributes = {{" page_type" , " DICTIONARY_PAGE" }};
206+ std::map<std::string, std::string> encoding_attributes = {{" page_type" , " DICTIONARY_PAGE" }, { " dict_page_num_values " , " 1 " } };
207207 auto result = agent.Encrypt (test_data, encoding_attributes);
208208
209209 ASSERT_NE (result, nullptr );
0 commit comments