diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTime.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTime.feature index 2eac819b..0f13bfe2 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTime.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTime.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Sink @Cloudsqlpostgresql_Sink_Required +@Regression @Sink_Required Feature: CloudSQL-PostgreSQL sink - Verify CloudSQL-PostgreSQL sink plugin design time scenarios Scenario: To verify CloudSQLPostgreSQL sink plugin validation with connection and basic details for connectivity diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithMacros.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithMacros.feature index 6c68180f..98b6f689 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithMacros.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithMacros.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Sink @Cloudsqlpostgresql_Sink_Required +@Regression @Sink_Required Feature: CloudSQL-PostgreSQL sink- Verify CloudSQL-PostgreSQL sink plugin design time macro scenarios Scenario: To verify CloudSQLPostgreSQL sink plugin validation with macro enabled fields for connection section diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithValidation.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithValidation.feature index 0eda6558..482ac5cb 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithValidation.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/DesignTimeWithValidation.feature @@ -1,5 +1,5 @@ # -# Copyright © 2022 Cask Data, Inc. +# Copyright © 2023 Cask Data, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Sink @Cloudsqlpostgresql_Sink_Required +@Regression @Sink_Required Feature: CloudSQL-PostgreSQL Sink - Verify CloudSQL-postgreSQL Sink Plugin Error scenarios Scenario:Verify CloudSQLPostgreSQL sink plugin validation errors for mandatory fields diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTime.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTime.feature index 2216773c..1ee11cbe 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTime.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTime.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Sink @Cloudsqlpostgresql_Sink_Required +@Regression @Sink_Required Feature: CloudSQL-PostgreSQL sink - Verify data transfer from BigQuery source to CloudSQL-PostgreSQL sink @BQ_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TEST_TABLE @PLUGIN-1526 @@ -50,7 +50,7 @@ Feature: CloudSQL-PostgreSQL sink - Verify data transfer from BigQuery source to Then Save the pipeline Then Preview and run the pipeline Then Verify the preview of pipeline is "success" - Then Click on preview data for CloudSQLPostgreSQL sink + Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL" Then Close the preview data Then Deploy the pipeline Then Run the Pipeline in Runtime @@ -93,7 +93,7 @@ Feature: CloudSQL-PostgreSQL sink - Verify data transfer from BigQuery source to Then Save the pipeline Then Preview and run the pipeline Then Verify the preview of pipeline is "success" - Then Click on preview data for CloudSQLPostgreSQL sink + Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL" Then Close the preview data Then Deploy the pipeline Then Run the Pipeline in Runtime @@ -136,7 +136,7 @@ Feature: CloudSQL-PostgreSQL sink - Verify data transfer from BigQuery source to Then Save the pipeline Then Preview and run the pipeline Then Verify the preview of pipeline is "success" - Then Click on preview data for CloudSQLPostgreSQL sink + Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL" Then Close the preview data Then Deploy the pipeline Then Run the Pipeline in Runtime diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTimeMacro.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTimeMacro.feature index cf6a89cb..5bb22887 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTimeMacro.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/sink/RunTimeMacro.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Sink @Cloudsqlpostgresql_Sink_Required +@Regression @Sink_Required Feature: CloudSQL-PostgreSQL sink - Verify data transfer to PostgreSQL sink with macro arguments @BQ_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TEST_TABLE @PLUGIN-1629 @PLUGIN-1526 diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTime.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTime.feature index fdedeaa7..4302bb91 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTime.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTime.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Source @Cloudsqlpostgresql_Source_Required +@Regression @Source_Required Feature: CloudSQL-PostgreSQL source - Verify CloudSQLPostgreSQL source plugin design time scenarios @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_SINK_TEST diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithMacro.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithMacro.feature index 25e7ac52..c35a4b99 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithMacro.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithMacro.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Source @Cloudsqlpostgresql_Source_Required +@Regression @Source_Required Feature: CloudSQL-PostgreSQL source - Verify CloudSQL-PostgreSQL source plugin design time macros scenarios Scenario: To verify CloudSQLPostgreSQL source plugin validation with macro enabled fields for connection section diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithValidation.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithValidation.feature index 907906b4..2ccf2a53 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithValidation.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/DesignTimeWithValidation.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Source @Cloudsqlpostgresql_Source_Required +@Regression @Source_Required Feature: CloudSQL-postgreSQL source - Verify CloudSQL-postgreSQL source plugin design time validation scenarios Scenario:Verify CloudSQLPostgreSQL source plugin validation errors for mandatory fields diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTime.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTime.feature index 770541b2..e4a898ca 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTime.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTime.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Source @Cloudsqlpostgresql_Source_Required +@Regression @Source_Required Feature: CloudSQL-PostGreSQL Source - Run Time scenarios @CLOUDSQLPOSTGRESQL_SOURCE_TEST @BQ_SINK_TEST @CLOUDSQLPOSTGRESQL_SINK_TEST @PLUGIN-1526 @@ -227,7 +227,7 @@ Feature: CloudSQL-PostGreSQL Source - Run Time scenarios Then Save the pipeline Then Preview and run the pipeline Then Verify the preview of pipeline is "success" - Then Click on preview data for CloudSQLPostgreSQL sink + Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL" Then Close the preview data Then Deploy the pipeline Then Run the Pipeline in Runtime diff --git a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTimeMacro.feature b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTimeMacro.feature index 9729ce1e..8c9fe1f5 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTimeMacro.feature +++ b/cloudsql-postgresql-plugin/src/e2e-test/feature/cloudsql-postgresql/source/RunTimeMacro.feature @@ -14,7 +14,7 @@ # the License. # -@Cloudsqlpostgresql_Source @Cloudsqlpostgresql_Source_Required +@Regression @Source_Required Feature: CloudSQL-PostGreSQL source - Verify CloudSQL-PostGreSQL plugin data transfer with macro arguments @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_SINK_TEST diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/CloudSqlPostgreSqlClient.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/CloudSqlPostgreSqlClient.java index 5389474d..47fe5cfc 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/CloudSqlPostgreSqlClient.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/CloudSqlPostgreSqlClient.java @@ -61,7 +61,7 @@ public static int countRecord(String table, String schema) throws SQLException, } /** - * Extracts entire data from source and target tables. + * Extracts Result set of source and target table. * @param sourceTable table at the source side * @param targetTable table at the sink side * @return true if the values in source and target side are equal diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/package-info.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/package-info.java index 17fd46a8..e2c03d82 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/package-info.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/package-info.java @@ -17,4 +17,4 @@ /** * Package contains BQ validation.. */ -package io.cdap.plugin.cloudsqlpostgresql; \ No newline at end of file +package io.cdap.plugin.cloudsqlpostgresql; diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunner.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunner.java index c51429a5..8a80e4b6 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunner.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunner.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -26,7 +26,7 @@ @CucumberOptions( features = {"src/e2e-test/features"}, glue = {"io.cdap.plugin.cloudsqlpostgresql.stepsdesign", "stepsdesign", "io.cdap.plugin.common.stepsdesign"}, - tags = {"@Cloudsqlpostgresql_Sink and not @PLUGIN-1629 and not @PLUGIN-1526"}, + tags = {"@Regression and not @PLUGIN-1629 and not @PLUGIN-1526"}, /* TODO :Enable tests once issue fixed https://cdap.atlassian.net/browse/PLUGIN-1629, https://cdap.atlassian.net/browse/PLUGIN-1526 */ diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunnerRequired.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunnerRequired.java index e7313298..f5fe5b2a 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunnerRequired.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/TestRunnerRequired.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -20,13 +20,16 @@ import org.junit.runner.RunWith; /** - * Test Runner to execute only required CloudSQLPostgreSQL Source plugin testcases. + * Test Runner to execute only required CloudSQLPostgreSQL Sink plugin testcases. */ @RunWith(Cucumber.class) @CucumberOptions( features = {"src/e2e-test/features"}, glue = {"io.cdap.plugin.cloudsqlpostgresql.stepsdesign", "stepsdesign", "io.cdap.plugin.common.stepsdesign"}, - tags = {"@Cloudsqlpostgresql_Sink_Required"}, + tags = {"@Sink_Required and not @PLUGIN-1629 and not @PLUGIN-1526"}, + /* TODO :Enable tests once issue fixed https://cdap.atlassian.net/browse/PLUGIN-1629, + https://cdap.atlassian.net/browse/PLUGIN-1526 + */ monochrome = true, plugin = {"pretty", "html:target/cucumber-html-report/cloudsqlpostgresql-sink-required", "json:target/cucumber-reports/cucumber-cloudsqlpostgresql-sink-required.json", diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/package-info.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/package-info.java index 007d0ff5..eda27336 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/package-info.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sinkrunner/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -13,6 +13,7 @@ * License for the specific language governing permissions and limitations under * the License. */ + /** * Package contains the runner for the CloudSQLPostgreSQL sink plugin. */ diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunner.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunner.java index c1700f1b..c61766e8 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunner.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunner.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -26,7 +26,7 @@ @CucumberOptions( features = {"src/e2e-test/features"}, glue = {"io.cdap.plugin.cloudsqlpostgresql.stepsdesign", "stepsdesign", "io.cdap.plugin.common.stepsdesign"}, - tags = {"@Cloudsqlpostgresql_Source and not @PLUGIN-1526"}, + tags = {"@Regression and not @PLUGIN-1526"}, /* TODO :Enable tests once issue fixed https://cdap.atlassian.net/browse/PLUGIN-1526 */ monochrome = true, diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunnerRequired.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunnerRequired.java index ba6c93f4..5d7905b4 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunnerRequired.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/TestRunnerRequired.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -26,7 +26,9 @@ @CucumberOptions( features = {"src/e2e-test/features"}, glue = {"io.cdap.plugin.cloudsqlpostgresql.stepsdesign", "stepsdesign", "io.cdap.plugin.common.stepsdesign"}, - tags = {"@Cloudsqlpostgresql_Source_Required"}, + tags = {"@Source_Required and not @PLUGIN-1526"}, + /* TODO :Enable tests once issue fixed https://cdap.atlassian.net/browse/PLUGIN-1526 + */ monochrome = true, plugin = {"pretty", "html:target/cucumber-html-report/cloudsqlpostgresql-source-required", "json:target/cucumber-reports/cucumber-cloudsqlpostgresql-source-required.json", diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/package-info.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/package-info.java index 02144ec6..522b1eab 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/package-info.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/runners/sourcerunner/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Cask Data, Inc. + * Copyright © 2023 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -13,6 +13,7 @@ * License for the specific language governing permissions and limitations under * the License. */ + /** * Package contains the runner for the CloudSQLPostgreSQL source plugin. */ diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/CloudSqlPostgreSql.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/CloudSqlPostgreSql.java index 3230164a..2b4e3fad 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/CloudSqlPostgreSql.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/CloudSqlPostgreSql.java @@ -19,11 +19,6 @@ */ public class CloudSqlPostgreSql implements CdfHelper { - @Then("Click on preview data for CloudSQLPostgreSQL sink") - public void clickOnPreviewDataForCloudSQLPostgreSQLSink() { - openSinkPluginPreviewData("CloudSQLPostgreSQL"); - } - @Then("Validate the values of records transferred to target table is equal to the values from source table") public void validateTheValuesOfRecordsTransferredToTargetTableIsEqualToTheValuesFromSourceTable() throws SQLException, ClassNotFoundException { diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/package-info.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/package-info.java index 1f27f754..2a0195a9 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/package-info.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/cloudsqlpostgresql/stepsdesign/package-info.java @@ -14,8 +14,7 @@ * the License. */ - /** * Package contains stepDesign for CloudSqlPostgresql features. */ -package io.cdap.plugin.cloudsqlpostgresql.stepsdesign; \ No newline at end of file +package io.cdap.plugin.cloudsqlpostgresql.stepsdesign; diff --git a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/package-info.java b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/package-info.java index da168526..8c43a831 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/package-info.java +++ b/cloudsql-postgresql-plugin/src/e2e-test/java/io/cdap/plugin/package-info.java @@ -17,4 +17,4 @@ /** * Package contains CloudSqlPostgresql Client. */ -package io.cdap.plugin; \ No newline at end of file +package io.cdap.plugin; diff --git a/cloudsql-postgresql-plugin/src/e2e-test/resources/pluginParameters.properties b/cloudsql-postgresql-plugin/src/e2e-test/resources/pluginParameters.properties index f0ffadb0..c99f30a9 100644 --- a/cloudsql-postgresql-plugin/src/e2e-test/resources/pluginParameters.properties +++ b/cloudsql-postgresql-plugin/src/e2e-test/resources/pluginParameters.properties @@ -1,9 +1,11 @@ driverName=cloudsql-postgresql username=CLOUDSQL_POSTGRESQL_USERNAME password=CLOUDSQL_POSTGRESQL_PASSWORD +connectionName=CLOUDSQL_POSTGRESQL_CONNECTION_NAME databaseName=test_automation_db schema=public URL=jdbc:postgresql://google/%s?cloudSqlInstance=%s&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=%s&password=%s + datatypesColumns=( id varchar(100) primary key, col1 bpchar, col2 bpchar(10), col3 varchar, col4 varchar(3), \ col5 bytea, col6 int2, col7 int4, col8 int8, col10 numeric(10, 4), col11 numeric(10), col12 float4, col13 float8, \ col14 money, col15 text, col16 name, col17 float8, col18 numeric(38), col22 timestamp, col23 timestamptz, \ @@ -55,6 +57,7 @@ datatypesSchema=[{"key":"id","value":"string"},{"key":"col1","value":"string"},{ {"key":"col61","value":"float"},{"key":"col62","value":"int"},{"key":"col63","value":"int"},\ {"key":"col64","value":"int"},{"key":"col65","value":"double"},{"key":"col66","value":"long"},\ {"key":"col67","value":"long"},{"key":"col68","value":"boolean"}] + #CLOUDSQLPOSTGRESQL Invalid Properties invalidRef=invalidRef&^*&&* invalidDatabaseName=invalidDB @@ -67,6 +70,7 @@ invalidBoundingQuery=SELECT MIN(id),MAX(id) FROM table invalidBoundingQueryValue=select; invalidTable=table invalidConnectionName=abd3 + #CLOUDSQLPOSTGRESQL Valid Properties connectionArgumentsList=[{"key":"queryTimeout","value":"-1"}] connectionTimeout=150 @@ -74,7 +78,7 @@ numberOfSplits=2 zeroValue=0 splitByColumn=ID importQuery=where $CONDITIONS -connectionName=CLOUDSQL_POSTGRESQL_CONNECTION_NAME + #bq properties projectId=cdf-athena dataset=test_automation @@ -82,12 +86,15 @@ bqOutputMultipleDatatypesSchema=[{"key":"col1","value":"bytes"},{"key":"col2","v {"key":"col3","value":"date"},{"key":"col4","value":"double"},{"key":"col5","value":"decimal"},\ {"key":"col6","value":"timestamp"},{"key":"col7","value":"decimal"},{"key":"col8","value":"boolean"},\ {"key":"col9","value":"long"},{"key":"col10","value":"time"}] + #bq macro properties bqTruncateTable=true bqUpdateTableSchema=true + #bq queries file path CreateBQTableQueryFile=testdata/BigQuery/BigQueryCreateTableQuery.txt InsertBQDataQueryFile=testdata/BigQuery/BigQueryInsertDataQuery.txt + #BIGQUERY Datatypes bigQueryDatatypesColumns=(col1 bytea, col2 varchar(100), col3 date, col4 double precision, col5 numeric(5, 2), \ col6 timestamp, col7 numeric(5, 2), col8 boolean, col9 int8, col10 time)