@@ -144,3 +144,152 @@ Feature: PostgreSQL - Verify data transfer from BigQuery source to PostgreSQL si
144
144
Then Open and capture logs
145
145
Then Verify the pipeline status is "Succeeded"
146
146
Then Validate the values of records transferred to target PostgreSQL table is equal to the values from source BigQuery table
147
+
148
+ @POSTGRESQL_SOURCE_TEST @Postgresql_Required @POSTGRESQL_SINK_TEST @Plugin-1526
149
+ Scenario : To verify data is getting transferred from PostgreSQL source to PostgreSQL sink with Advanced operations Upsert
150
+ Given Open Datafusion Project to configure pipeline
151
+ Given Open Datafusion Project to configure pipeline
152
+ When Expand Plugin group in the LHS plugins list: "Source"
153
+ When Select plugin: "PostgreSQL" from the plugins list as: "Source"
154
+ When Expand Plugin group in the LHS plugins list: "Sink"
155
+ When Select plugin: "PostgreSQL" from the plugins list as: "Sink"
156
+ Then Connect plugins: "PostgreSQL" and "PostgreSQL2" to establish connection
157
+ Then Navigate to the properties page of plugin: "PostgreSQL"
158
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
159
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
160
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
161
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
162
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
163
+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
164
+ Then Replace input plugin property: "database" with value: "databaseName"
165
+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
166
+ Then Click on the Get Schema button
167
+ Then Validate "PostgreSQL" plugin properties
168
+ Then Close the Plugin Properties page
169
+ Then Navigate to the properties page of plugin: "PostgreSQL2"
170
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
171
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
172
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
173
+ Then Replace input plugin property: "database" with value: "databaseName"
174
+ Then Replace input plugin property: "tableName" with value: "targetTable"
175
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
176
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
177
+ Then Enter input plugin property: "referenceName" with value: "targetRef"
178
+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
179
+ Then Select radio button plugin property: "operationName" with value: "upsert"
180
+ Then Click on the Add Button of the property: "relationTableKey" with value:
181
+ | PostgreSQLTableKey |
182
+ Then Validate "PostgreSQL" plugin properties
183
+ Then Close the Plugin Properties page
184
+ Then Save the pipeline
185
+ Then Preview and run the pipeline
186
+ Then Verify the preview of pipeline is "success"
187
+ Then Click on preview data for PostgreSQL sink
188
+ Then Close the preview data
189
+ Then Deploy the pipeline
190
+ Then Run the Pipeline in Runtime
191
+ Then Wait till pipeline is in running state
192
+ Then Open and capture logs
193
+ Then Verify the pipeline status is "Succeeded"
194
+ Then Validate the values of records transferred to target table is equal to the values from source table
195
+
196
+ @POSTGRESQL_SOURCE_TEST @Postgresql_Required @POSTGRESQL_SINK_TEST @Plugin-1526
197
+ Scenario : To verify data is getting transferred from PostgreSQL source to PostgreSQL sink with Advanced operations Update for table key
198
+ Given Open Datafusion Project to configure pipeline
199
+ Given Open Datafusion Project to configure pipeline
200
+ When Expand Plugin group in the LHS plugins list: "Source"
201
+ When Select plugin: "PostgreSQL" from the plugins list as: "Source"
202
+ When Expand Plugin group in the LHS plugins list: "Sink"
203
+ When Select plugin: "PostgreSQL" from the plugins list as: "Sink"
204
+ Then Connect plugins: "PostgreSQL" and "PostgreSQL2" to establish connection
205
+ Then Navigate to the properties page of plugin: "PostgreSQL"
206
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
207
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
208
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
209
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
210
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
211
+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
212
+ Then Replace input plugin property: "database" with value: "databaseName"
213
+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
214
+ Then Click on the Get Schema button
215
+ Then Validate "PostgreSQL" plugin properties
216
+ Then Close the Plugin Properties page
217
+ Then Navigate to the properties page of plugin: "PostgreSQL2"
218
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
219
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
220
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
221
+ Then Replace input plugin property: "database" with value: "databaseName"
222
+ Then Replace input plugin property: "tableName" with value: "targetTable"
223
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
224
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
225
+ Then Enter input plugin property: "referenceName" with value: "targetRef"
226
+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
227
+ Then Select radio button plugin property: "operationName" with value: "update"
228
+ Then Click on the Add Button of the property: "relationTableKey" with value:
229
+ | PostgreSQLTableKey |
230
+ Then Validate "PostgreSQL" plugin properties
231
+ Then Close the Plugin Properties page
232
+ Then Save the pipeline
233
+ Then Preview and run the pipeline
234
+ Then Verify the preview of pipeline is "success"
235
+ Then Click on preview data for PostgreSQL sink
236
+ Then Close the preview data
237
+ Then Deploy the pipeline
238
+ Then Run the Pipeline in Runtime
239
+ Then Wait till pipeline is in running state
240
+ Then Open and capture logs
241
+ Then Verify the pipeline status is "Succeeded"
242
+ Then Validate the values of records transferred to target table is equal to the values from source table
243
+
244
+ @POSTGRESQL_SOURCE_TEST @POSTGRESQL_SINK_TEST @Postgresql_Required @CONNECTION @Plugin-1526
245
+ Scenario : To verify data is getting transferred from PostgreSQL source to PostgreSQL sink successfully using Connection
246
+ Given Open Datafusion Project to configure pipeline
247
+ When Expand Plugin group in the LHS plugins list: "Source"
248
+ When Select plugin: "PostgreSQL" from the plugins list as: "Source"
249
+ When Expand Plugin group in the LHS plugins list: "Sink"
250
+ When Select plugin: "PostgreSQL" from the plugins list as: "Sink"
251
+ Then Connect plugins: "PostgreSQL" and "PostgreSQL2" to establish connection
252
+ Then Navigate to the properties page of plugin: "PostgreSQL"
253
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
254
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
255
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
256
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
257
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
258
+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
259
+ Then Replace input plugin property: "database" with value: "databaseName"
260
+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
261
+ Then Click on the Get Schema button
262
+ Then Validate "PostgreSQL" plugin properties
263
+ Then Close the Plugin Properties page
264
+ Then Navigate to the properties page of plugin: "PostgreSQL2"
265
+ And Click plugin property: "switch-useConnection"
266
+ And Click on the Browse Connections button
267
+ And Click on the Add Connection button
268
+ Then Click plugin property: "connector-PostgreSQL"
269
+ And Enter input plugin property: "name" with value: "connection.name"
270
+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
271
+ Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
272
+ Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
273
+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
274
+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
275
+ Then Replace input plugin property: "database" with value: "databaseName"
276
+ Then Click on the Test Connection button
277
+ And Verify the test connection is successful
278
+ Then Click on the Create button
279
+ Then Select connection: "connection.name"
280
+ Then Enter input plugin property: "referenceName" with value: "targetRef"
281
+ Then Replace input plugin property: "tableName" with value: "targetTable"
282
+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
283
+ Then Validate "PostgreSQL" plugin properties
284
+ Then Close the Plugin Properties page
285
+ Then Save the pipeline
286
+ Then Preview and run the pipeline
287
+ Then Verify the preview of pipeline is "success"
288
+ Then Click on preview data for PostgreSQL sink
289
+ Then Close the preview data
290
+ Then Deploy the pipeline
291
+ Then Run the Pipeline in Runtime
292
+ Then Wait till pipeline is in running state
293
+ Then Open and capture logs
294
+ Then Verify the pipeline status is "Succeeded"
295
+ Then Validate the values of records transferred to target table is equal to the values from source table
0 commit comments