@@ -235,3 +235,98 @@ Feature: CloudSQL-PostGreSQL Source - Run Time scenarios
235235 Then Open and capture logs
236236 Then Verify the pipeline status is "Succeeded"
237237 Then Validate the values of records transferred to target table is equal to the values from source table
238+
239+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @CONNECTION @Source_Required
240+ Scenario : To verify data is getting transferred from PostgreSQL to PostgreSQL successfully with use connection
241+ Given Open Datafusion Project to configure pipeline
242+ When Expand Plugin group in the LHS plugins list: "Source"
243+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
244+ When Expand Plugin group in the LHS plugins list: "Sink"
245+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
246+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
247+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
248+ And Click plugin property: "switch-useConnection"
249+ And Click on the Browse Connections button
250+ And Click on the Add Connection button
251+ Then Click plugin property: "connector-CloudSQLPostgreSQL"
252+ And Enter input plugin property: "name" with value: "connection.name"
253+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
254+ Then Replace input plugin property: "database" with value: "databaseName"
255+ Then Select radio button plugin property: "instanceType" with value: "public"
256+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
257+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
258+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
259+ Then Click on the Test Connection button
260+ And Verify the test connection is successful
261+ Then Click on the Create button
262+ Then Select connection: "connection.name"
263+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
264+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
265+ Then Click on the Get Schema button
266+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
267+ Then Validate "CloudSQL PostgreSQL" plugin properties
268+ Then Close the Plugin Properties page
269+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
270+ And Click plugin property: "switch-useConnection"
271+ And Click on the Browse Connections button
272+ Then Select connection: "connection.name"
273+ Then Enter input plugin property: "referenceName" with value: "targetRef"
274+ Then Replace input plugin property: "tableName" with value: "targetTable"
275+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
276+ Then Validate "CloudSQL PostgreSQL2" plugin properties
277+ Then Close the Plugin Properties page
278+ Then Save the pipeline
279+ Then Preview and run the pipeline
280+ Then Verify the preview of pipeline is "success"
281+ Then Deploy the pipeline
282+ Then Run the Pipeline in Runtime
283+ Then Wait till pipeline is in running state
284+ Then Open and capture logs
285+ Then Verify the pipeline status is "Succeeded"
286+ Then Validate the values of records transferred to target table is equal to the values from source table
287+
288+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @Source_Required
289+ Scenario : To verify data is getting transferred from PostgreSQL to PostgreSQL successfully with bounding query
290+ Given Open Datafusion Project to configure pipeline
291+ When Expand Plugin group in the LHS plugins list: "Source"
292+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
293+ When Expand Plugin group in the LHS plugins list: "Sink"
294+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
295+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
296+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
297+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
298+ Then Select radio button plugin property: "instanceType" with value: "public"
299+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
300+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
301+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
302+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
303+ Then Enter textarea plugin property: "boundingQuery" with value: "boundingQuery"
304+ Then Replace input plugin property: "database" with value: "databaseName"
305+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
306+ Then Click on the Get Schema button
307+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
308+ Then Validate "CloudSQL PostgreSQL" plugin properties
309+ Then Close the Plugin Properties page
310+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
311+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
312+ Then Select radio button plugin property: "instanceType" with value: "public"
313+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
314+ Then Replace input plugin property: "database" with value: "databaseName"
315+ Then Replace input plugin property: "tableName" with value: "targetTable"
316+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
317+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
318+ Then Enter input plugin property: "referenceName" with value: "targetRef"
319+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
320+ Then Validate "CloudSQL PostgreSQL2" plugin properties
321+ Then Close the Plugin Properties page
322+ Then Save the pipeline
323+ Then Preview and run the pipeline
324+ Then Verify the preview of pipeline is "success"
325+ Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL"
326+ Then Close the preview data
327+ Then Deploy the pipeline
328+ Then Run the Pipeline in Runtime
329+ Then Wait till pipeline is in running state
330+ Then Open and capture logs
331+ Then Verify the pipeline status is "Succeeded"
332+ Then Validate the values of records transferred to target table is equal to the values from source table
0 commit comments