@@ -236,6 +236,7 @@ const std::string oss_config = " \
236236 \" oss_access_id\" : \" test_id\" , \
237237 \" ev_storage_type\" : 12, \
238238 \" ev_storage_path\" : \" 123\" , \
239+ \" ev_storage_size\" : [1024, 1024], \
239240 \" oss_access_key\" : \" test_key\" \
240241 }" ;
241242
@@ -244,6 +245,12 @@ const std::string oss_config = " \
244245 ModelConfigFactory::Create (oss_config.c_str (), &config).ok ());
245246 EXPECT_EQ (12 , config->storage_type );
246247 EXPECT_EQ (" 123" , config->storage_path );
248+ for (int i = 0 ; i < 2 ; i++) {
249+ EXPECT_EQ (1024 , config->storage_size [i]);
250+ }
251+ for (int i = 2 ; i < 4 ; i++) {
252+ EXPECT_EQ (1024 *1024 *1024 , config->storage_size [i]);
253+ }
247254}
248255
249256TEST_F (ModelConfigTest, ShouldFailureWhenConfigEmbeddingConfig) {
@@ -266,6 +273,7 @@ const std::string oss_config = " \
266273 \" oss_access_id\" : \" test_id\" , \
267274 \" ev_storage_type\" : 14, \
268275 \" ev_storage_path\" : \" 123\" , \
276+ \" ev_storage_size\" : [1024, 1024, 1024, 1024], \
269277 \" oss_access_key\" : \" test_key\" \
270278 }" ;
271279
0 commit comments