Skip to content

Commit 47f6740

Browse files
new scenarios e2e bq
1 parent c797528 commit 47f6740

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/e2e-test/java/io/cdap/plugin/bigquery/stepsdesign/BQValidationExistingTables.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static boolean validateActualDataToExpectedData(String table, String file
3838
InterruptedException, URISyntaxException {
3939
Map<String, JsonObject> bigQueryMap = new HashMap<>();
4040
Map<String, JsonObject> fileMap = new HashMap<>();
41-
Path bqExpectedFilePath = Paths.get(BQValidationExistingTables.class.getResource("/" + fileName).toURI());
41+
Path bqExpectedFilePath = Paths.get(BQValidationExistingTables.class.getResource("/" + fileName).toURI());
4242

4343
getBigQueryTableData(table, bigQueryMap);
4444
getFileData(bqExpectedFilePath.toString(), fileMap);
@@ -113,4 +113,4 @@ private static String getIdKey(JsonObject json) {
113113
return null;
114114
}
115115
}
116-
}
116+
}

src/e2e-test/java/io/cdap/plugin/common/stepsdesign/TestSetupHooks.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ public static void createSourceBQDedupeUpsertTable() throws IOException, Interru
11231123
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqSourceTable + "` " +
11241124
"(ID, Name, Price, Customer_Exists)" +
11251125
"VALUES" + "(1, 'string_1', 0.1, true)," +
1126-
"(2, 'string_1', 0.2, false)" +
1126+
"(2, 'string_1', 0.2, false)," +
11271127
"(3, 'string_3', 0.3, false)");
11281128
} catch (NoSuchElementException e) {
11291129
// Insert query does not return any record.
@@ -1145,7 +1145,7 @@ public static void createSinkBQDeupeUpsertTable() throws IOException, Interrupte
11451145
try {
11461146
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqTargetTable + "` " +
11471147
"(ID, Name, Price, Customer_Exists)" +
1148-
"VALUES" + "(0, 'string_0', 0, true)" +
1148+
"VALUES" + "(0, 'string_0', 0, true)," +
11491149
"(10, 'string_1', 1.1, false)");
11501150
} catch (NoSuchElementException e) {
11511151
// Insert query does not return any record.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{"string_value":string_1,"int_value":2,"float_value":"0.2","boolean_value":false}
2-
{"string_value":string_3,"int_value":3,"float_value":"0.3","boolean_value":false}
3-
{"string_value":string_0,"int_value":0,"float_value":"0.0","boolean_value":true}
1+
{"Customer_Exists":false,"ID":3,"Name":"string_3","Price":0.3}
2+
{"Customer_Exists":false,"ID":2,"Name":"string_1","Price":0.2}
3+
{"Customer_Exists":true,"ID":0,"Name":"string_0","Price":0.0}

0 commit comments

Comments
 (0)