Skip to content

Commit

Permalink
MappingConverterTest add backendstoreinfo,fix hugegraph-loader-ci che…
Browse files Browse the repository at this point in the history
…ck faield
  • Loading branch information
haohao0103 committed Nov 10, 2022
1 parent 62a2e66 commit e3c8a90
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ public void testConvertV1ToV2() throws IOException {
" \"Rating\": \"rate\"" +
" }" +
" }" +
" ]" +
" ]," +
" \"backendStoreInfo\":" +
" {" +
" \"edge_tablename\": \"hugegraph:g_oe\"," +
" \"vertex_tablename\": \"hugegraph:g_v\"," +
" \"hbase_zookeeper_quorum\": \"127.0.0.1\"," +
" \"hbase_zookeeper_property_clientPort\": \"2181\"," +
" \"zookeeper_znode_parent\": \"/hbase\"" +
" }" +
"}";
String input = "struct.json";
File inputFile = new File(input);
Expand Down Expand Up @@ -117,7 +125,13 @@ public void testConvertV1ToV2() throws IOException {
"\"field_mapping\":{\"UserID\":\"id\",\"MovieID\":\"id\"," +
"\"Rating\":\"rate\"},\"value_mapping\":{},\"selected\":[]," +
"\"ignored\":[\"Timestamp\"],\"null_values\":[\"\"]," +
"\"update_strategies\":{},\"batch_size\":500}]}]}";
"\"update_strategies\":{},\"batch_size\":500}]}]," +
"\"backendStoreInfo\":{" +
"\"edge_tablename\":\"hugegraph:g_oe\"," +
"\"vertex_tablename\":\"hugegraph:g_v\"," +
"\"hbase_zookeeper_quorum\":\"127.0.0.1\"," +
"\"hbase_zookeeper_property_clientPort\":\"2181\"," +
"\"zookeeper_znode_parent\":\"/hbase\"}}";
Assert.assertEquals(expectV2Json, actualV2Json);

FileUtils.forceDelete(inputFile);
Expand Down

0 comments on commit e3c8a90

Please sign in to comment.