From 4f72b14038709a069fffea12fdf0f14992bf566e Mon Sep 17 00:00:00 2001 From: AnkitCLI Date: Mon, 16 Dec 2024 11:45:09 +0530 Subject: [PATCH] Wrangler connection step changes --- .../src/e2e-test/features/WranglerUI/DataTypeParsers.feature | 2 +- .../src/e2e-test/features/WranglerUI/ParseAsCsv.feature | 2 +- .../src/e2e-test/features/WranglerUI/ParseAsExcel.feature | 2 +- .../e2e-test/features/WranglerUI/ParseAsFixedLength.feature | 2 +- .../src/e2e-test/features/WranglerUI/ParseAsHl7.feature | 2 +- .../src/e2e-test/features/WranglerUI/ParseAsJson.feature | 2 +- .../src/e2e-test/features/WranglerUI/ParseAsLog.feature | 2 +- .../e2e-test/features/WranglerUI/ParseAsXmlToJson.feature | 2 +- .../io/cdap/plugin/common/stepsdesign/TestSetupHooks.java | 5 +++++ 9 files changed, 13 insertions(+), 8 deletions(-) diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/DataTypeParsers.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/DataTypeParsers.feature index 67788a813..93e44e08d 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/DataTypeParsers.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/DataTypeParsers.feature @@ -15,7 +15,7 @@ @Wrangler_Required Feature: Runtime Scenarios for datatype parsers - @BQ_SOURCE_TS_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_TS_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse timestamp directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsCsv.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsCsv.feature index 43e661071..59cbe6cbe 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsCsv.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsCsv.feature @@ -15,7 +15,7 @@ @Wrangler Feature: Wrangler - Run time scenarios for parse csv using UI - @BQ_SOURCE_CSV_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_CSV_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse csv directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsExcel.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsExcel.feature index 2e6a11ba8..3d4b8a3bb 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsExcel.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsExcel.feature @@ -15,7 +15,7 @@ @Wrangler Feature: Parse as excel - @BQ_SINK_TEST + @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse Excel directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsFixedLength.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsFixedLength.feature index 108c586a3..6321c0a35 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsFixedLength.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsFixedLength.feature @@ -15,7 +15,7 @@ @Wrangler_Required Feature: parse as fixed length - @BQ_SOURCE_FXDLEN_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_FXDLEN_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse fixedlength directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsHl7.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsHl7.feature index 337978e83..b1836aa4a 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsHl7.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsHl7.feature @@ -15,7 +15,7 @@ @Wrangler Feature: parse as HL7 - @BQ_SOURCE_HL7_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_HL7_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse hl7 directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsJson.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsJson.feature index d4a395d5a..d46092c54 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsJson.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsJson.feature @@ -15,7 +15,7 @@ @Wrangler Feature: parse as Json - @BQ_SOURCE_JSON_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_JSON_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse Json directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsLog.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsLog.feature index 911f1f833..3a25ac4ef 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsLog.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsLog.feature @@ -15,7 +15,7 @@ @Wrangler Feature: Wrangler - Run time scenarios for Parse Log - @BQ_SOURCE_LOG_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_LOG_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse log directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsXmlToJson.feature b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsXmlToJson.feature index b71bdd519..c43a5e17d 100644 --- a/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsXmlToJson.feature +++ b/wrangler-transform/src/e2e-test/features/WranglerUI/ParseAsXmlToJson.feature @@ -15,7 +15,7 @@ @Wrangler Feature: parse as XmlToJson - @BQ_SOURCE_XML_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST + @BQ_SOURCE_XML_TEST @BQ_SOURCE_TEST @BQ_SINK_TEST @BQ_CONNECTION Scenario: To verify User is able to run a pipeline using parse XmlToJson directive Given Open Wrangler connections page Then Click plugin property: "addConnection" button diff --git a/wrangler-transform/src/e2e-test/java/io/cdap/plugin/common/stepsdesign/TestSetupHooks.java b/wrangler-transform/src/e2e-test/java/io/cdap/plugin/common/stepsdesign/TestSetupHooks.java index 47b122a8c..ad90ef486 100644 --- a/wrangler-transform/src/e2e-test/java/io/cdap/plugin/common/stepsdesign/TestSetupHooks.java +++ b/wrangler-transform/src/e2e-test/java/io/cdap/plugin/common/stepsdesign/TestSetupHooks.java @@ -219,4 +219,9 @@ private static void createSourceBQTableWithQueries(String bqCreateTableQueryFile PluginPropertyUtils.addPluginProp("bqSourceTable", bqSourceTable); BeforeActions.scenario.write("BQ Source Table " + bqSourceTable + " created successfully"); } + + @Before(order = 1, value = "@BQ_CONNECTION") + public static void setBQConnectionName() { + PluginPropertyUtils.addPluginProp("bqConnectionName", "BQ-" + UUID.randomUUID()); + } }