Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitCLI committed Nov 27, 2024
1 parent d6c1956 commit 879765b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public void validateDataTransferredFromBigQueryToBigQueryMultiTableIsEqual()
List<String> sourceTables = Arrays.asList(PluginPropertyUtils.pluginProp("bqSourceTable"),
PluginPropertyUtils.pluginProp("bqSourceTable2"));

List<String> targetTables = Arrays.asList(PluginPropertyUtils.pluginProp("bqTargetTable"),
PluginPropertyUtils.pluginProp("bqTargetTable2"));
List<String> targetTables = Arrays.asList(PluginPropertyUtils.pluginProp("bqmtTargetTable"),
PluginPropertyUtils.pluginProp("bqmtTargetTable2"));
boolean recordsMatched = BigQueryMultiTableValidation.validateBQToBigQueryMultiTable(sourceTables, targetTables);
Assert.assertTrue("Value of records transferred to the BQ sink should be equal to the value " +
"of the records in the source table", recordsMatched);
Expand All @@ -49,7 +49,7 @@ public void validateDataTransferredFromBigQueryToBigQueryMultiTableInOneTableIsE
boolean recordsMatched = BigQueryMultiTableValidation.
validateBQToBigQueryMultiTable(Collections.singletonList(TestSetupHooks.bqSourceTable),
Collections.singletonList(PluginPropertyUtils.pluginProp
("bqTargetTable")));
("bqmtTargetTable")));
Assert.assertTrue("Value of records transferred to the BQ sink should be equal to the value " +
"of the records in the source table", recordsMatched);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ public static void createSourceTables() throws IOException, InterruptedException
@After(order = 2, value = "@BQ_SINK_BQMT_TEST")
public static void deleteTargetBqmtTable() throws IOException, InterruptedException {
try {
bqTargetTable = PluginPropertyUtils.pluginProp("bqTargetTable");
bqTargetTable = PluginPropertyUtils.pluginProp("bqmtTargetTable");
BigQueryClient.dropBqQuery(bqTargetTable);
BeforeActions.scenario.write("BQ Target table - " + bqTargetTable + " deleted successfully");
} catch (BigQueryException e) {
Expand Down Expand Up @@ -1666,8 +1666,8 @@ public static void deleteTwoSourceTables() throws IOException, InterruptedExcept
@After(order = 2, value = "@BQ_TWO_SINK_BQMT_TEST")
public static void deleteTwoTargetTables() throws IOException, InterruptedException {
try {
bqTargetTable = PluginPropertyUtils.pluginProp("bqTargetTable");
bqTargetTable2 = PluginPropertyUtils.pluginProp("bqTargetTable2");
bqTargetTable = PluginPropertyUtils.pluginProp("bqmtTargetTable");
bqTargetTable2 = PluginPropertyUtils.pluginProp("bqmtTargetTable2");
BigQueryClient.dropBqQuery(bqTargetTable);
BigQueryClient.dropBqQuery(bqTargetTable2);
BeforeActions.scenario.write("BQ Target table - " + bqTargetTable + " deleted successfully");
Expand Down
6 changes: 4 additions & 2 deletions src/e2e-test/resources/pluginParameters.properties
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,10 @@ dsExpectedFile=testdata/BQValidationExpectedFiles/datastoreexpectedfile
## BQMT-PLUGIN-PROPERTIES-START
bqmtCreateTableQueryFile=testdata/BigQuery/BqmtCreateTableQuery.txt
bqmtInsertDataQueryFile=testdata/BigQuery/BqmtInsertDataQuery.txt
bqTargetTable=tabA
bqTargetTable2=tabB
bqTargetTable=dummy
bqTargetTable2=dummy
bqmtTargetTable=tabA
bqmtTargetTable2=tabB
## BQMT-PLUGIN-PROPERTIES-END

##CLOUDBIGTABLE-PLUGIN-PROPERTIES-START
Expand Down

0 comments on commit 879765b

Please sign in to comment.