@@ -235,3 +235,99 @@ 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 Replace input plugin property: "database" with value: "databaseName"
265+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
266+ Then Click on the Get Schema button
267+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
268+ Then Validate "CloudSQL PostgreSQL" plugin properties
269+ Then Close the Plugin Properties page
270+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
271+ And Click plugin property: "switch-useConnection"
272+ And Click on the Browse Connections button
273+ Then Select connection: "connection.name"
274+ Then Enter input plugin property: "referenceName" with value: "targetRef"
275+ Then Replace input plugin property: "tableName" with value: "targetTable"
276+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
277+ Then Validate "CloudSQL PostgreSQL2" plugin properties
278+ Then Close the Plugin Properties page
279+ Then Save the pipeline
280+ Then Preview and run the pipeline
281+ Then Verify the preview of pipeline is "success"
282+ Then Deploy the pipeline
283+ Then Run the Pipeline in Runtime
284+ Then Wait till pipeline is in running state
285+ Then Open and capture logs
286+ Then Verify the pipeline status is "Succeeded"
287+ Then Validate the values of records transferred to target table is equal to the values from source table
288+
289+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @Source_Required
290+ Scenario : To verify data is getting transferred from PostgreSQL to PostgreSQL successfully with bounding query
291+ Given Open Datafusion Project to configure pipeline
292+ When Expand Plugin group in the LHS plugins list: "Source"
293+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
294+ When Expand Plugin group in the LHS plugins list: "Sink"
295+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
296+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
297+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
298+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
299+ Then Select radio button plugin property: "instanceType" with value: "public"
300+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
301+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
302+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
303+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
304+ Then Enter textarea plugin property: "boundingQuery" with value: "boundingQuery"
305+ Then Replace input plugin property: "database" with value: "databaseName"
306+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
307+ Then Click on the Get Schema button
308+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
309+ Then Validate "CloudSQL PostgreSQL" plugin properties
310+ Then Close the Plugin Properties page
311+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
312+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
313+ Then Select radio button plugin property: "instanceType" with value: "public"
314+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
315+ Then Replace input plugin property: "database" with value: "databaseName"
316+ Then Replace input plugin property: "tableName" with value: "targetTable"
317+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
318+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
319+ Then Enter input plugin property: "referenceName" with value: "targetRef"
320+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
321+ Then Validate "CloudSQL PostgreSQL2" plugin properties
322+ Then Close the Plugin Properties page
323+ Then Save the pipeline
324+ Then Preview and run the pipeline
325+ Then Verify the preview of pipeline is "success"
326+ Then Click on the Preview Data link on the Sink plugin node: "CloudSQLPostgreSQL"
327+ Then Close the preview data
328+ Then Deploy the pipeline
329+ Then Run the Pipeline in Runtime
330+ Then Wait till pipeline is in running state
331+ Then Open and capture logs
332+ Then Verify the pipeline status is "Succeeded"
333+ Then Validate the values of records transferred to target table is equal to the values from source table
0 commit comments