Skip to content

Commit adfb81e

Browse files
Merge pull request #557 from cloudsufi/e2e_tests_errorfix
e2e tests pipeline preview error fix
2 parents 093c2d1 + f4a420a commit adfb81e

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

cloudsql-mysql-plugin/src/e2e-test/resources/errorMessage.properties

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ errorMessageInvalidTableName=Table 'Invalidtable' does not exist. Ensure table '
1515
errorMessageConnectionName=Connection Name must be in the format <PROJECT_ID>:<REGION>:<INSTANCE_NAME> to connect to a public CloudSQL MySQL instance.
1616
validationSuccessMessage=No errors found.
1717
validationErrorMessage=COUNT ERROR found
18-
errorLogsMessageInvalidTableName=Spark program 'phase-1' failed with error: Errors were encountered during validation. \
19-
Table
20-
errorLogsMessageInvalidCredentials =Spark program 'phase-1' failed with error: Errors were encountered during validation.
21-
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1. Please check the system logs for more details.
18+
errorLogsMessageInvalidTableName=Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : io.cdap.cdap.etl.api.validation.ValidationException: Errors were encountered during validation. \
19+
Table 'Table123' does not exist.. Please check the system logs for more details.
20+
errorLogsMessageInvalidCredentials =Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : io.cdap.cdap.etl.api.validation.ValidationException: Errors were encountered during validation. \
21+
Exception while trying to validate schema of database table
22+
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : java.io.IOException: You have an error in your SQL syntax; \
23+
check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1. Please check the system logs for more details.

mssql-plugin/src/e2e-test/resources/errorMessage.properties

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ errorMessagenumofSplit=Split-By Field Name must be specified if Number of Splits
1313
errorMessageInvalidSinkDatabase=Exception while trying to validate schema of database table
1414
errorMessageInvalidSinkTableName=Table 'Table123@' does not exist.
1515
errormessageBlankHost=Exception while trying to validate schema of database table
16-
errorMessageInvalidTableName=Spark program 'phase-1' failed with error: Errors were encountered during validation. \
17-
Table 'Table123@' does not exist.. Please check the system logs for more details.
16+
errorMessageInvalidTableName=Spark program 'phase-1' failed with error: Stage 'SQL Server2' encountered : io.cdap.cdap.etl.api.validation.ValidationException: \
17+
Errors were encountered during validation. Table 'Table123@' does not exist.. Please check the system logs for more details.
1818
errorMessageInvalidCredentials=Spark program 'phase-1' failed with error: Unable to create config for batchsink SqlServer \
1919
'connection' is invalid: Failed to assign value
20-
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Incorrect syntax near the keyword 'table'.. \
21-
Please check the system logs for more details.
22-
errorMessageInvalidCredentialSource=Spark program 'phase-1' failed with error: Plugin with id SQL \
23-
Server:source.jdbc.sqlserver does not exist in program phase-1 of application
20+
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : io.cdap.cdap.api.exception.ProgramFailureException: \
21+
Error occurred while trying to get schema from database.Error message: 'Incorrect syntax near the keyword 'table'.'.
22+
errorMessageInvalidCredentialSource=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : java.lang.IllegalArgumentException: \
23+
Plugin with id SQL Server:source.jdbc.sqlserver does not exist in program phase-1 of application

mysql-plugin/src/e2e-test/features/mysqlsource/RunTime.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Feature: MySQL Source - Run time scenarios
142142
Then Close the Plugin Properties page
143143
Then Save the pipeline
144144
Then Preview and run the pipeline
145-
Then Wait till pipeline preview is in running state
145+
Then Wait till pipeline preview is in running state and check if any error occurs
146146
Then Open and capture pipeline preview logs
147147
Then Verify the preview run status of pipeline in the logs is "failed"
148148

oracle-plugin/src/e2e-test/features/source/OracleRunTime.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Feature: Oracle - Verify data transfer from Oracle source to BigQuery sink
296296
Then Close the Plugin Properties page
297297
Then Save the pipeline
298298
Then Preview and run the pipeline
299-
Then Wait till pipeline preview is in running state
299+
Then Wait till pipeline preview is in running state and check if any error occurs
300300
Then Verify the preview run status of pipeline in the logs is "failed"
301301

302302
@ORACLE_SOURCE_TEST @BQ_SINK_TEST

oracle-plugin/src/e2e-test/resources/errorMessage.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ errorMessageBlankUsername=Username is required when password is given.
1515
errorMessageInvalidTableName=Exception while trying to validate schema of database table '"table"' for connection
1616
errorMessageInvalidSinkDatabase=Exception while trying to validate schema of database table '"TARGETTABLE_
1717
errorMessageInvalidHost=Exception while trying to validate schema of database table '"table"' for connection
18-
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: ORA-00936: missing expression . \
19-
Please check the system logs for more details.
18+
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'Oracle' encountered : \
19+
java.io.IOException: ORA-00936: missing expression . Please check the system logs for more details.
2020
blank.database.message=Required property 'database' has no value.
2121
blank.connection.message=Exception while trying to validate schema of database table

postgresql-plugin/src/e2e-test/resources/errorMessage.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ errorMessageInvalidSourceHost=SQL error while getting query schema: The connecti
1818
errorMessageInvalidTableName=Table 'table' does not exist. Ensure table '"table"' is set correctly and that the
1919
errorMessageInvalidSinkDatabase=Exception while trying to validate schema of database table '"targettable_
2020
errorMessageInvalidHost=Exception while trying to validate schema of database table '"table"' for connection
21-
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: The column index is out of range: 1, \
22-
number of columns: 0.. Please check the system logs for more details.
21+
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'PostgreSQL' encountered : \
22+
java.io.IOException: The column index is out of range: 1, number of columns: 0.. Please check the system logs for more details.

0 commit comments

Comments
 (0)