@@ -25,6 +25,7 @@ Feature: CloudSQL-PostgreSQL Sink - Verify CloudSQL-postgreSQL Sink Plugin Error
2525 Then Click on the Validate button
2626 Then Verify mandatory property error for below listed properties:
2727 | jdbcPluginName |
28+ | connectionName |
2829 | referenceName |
2930 | database |
3031 | tableName |
@@ -141,3 +142,135 @@ Feature: CloudSQL-PostgreSQL Sink - Verify CloudSQL-postgreSQL Sink Plugin Error
141142 Then Replace input plugin property: "tableName" with value: "targetTable"
142143 Then Click on the Validate button
143144 Then Verify that the Plugin Property: "user" is displaying an in-line error message: "errorMessageBlankUsername"
145+
146+ @Sink_Required
147+ Scenario : To verify CloudSQLPostgreSQL sink plugin validation error message with invalid private connection name
148+ Given Open Datafusion Project to configure pipeline
149+ When Expand Plugin group in the LHS plugins list: "Sink"
150+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
151+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
152+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
153+ Then Select radio button plugin property: "instanceType" with value: "private"
154+ Then Replace input plugin property: "connectionName" with value: "invalidConnectionName"
155+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
156+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
157+ Then Enter input plugin property: "referenceName" with value: "targetRef"
158+ Then Replace input plugin property: "database" with value: "databaseName"
159+ Then Replace input plugin property: "tableName" with value: "targetTable"
160+ Then Click on the Validate button
161+ Then Verify that the Plugin Property: "connectionName" is displaying an in-line error message: "errorMessagePrivateConnectionName"
162+
163+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @Sink_Required
164+ Scenario : To verify CloudSQLPostgreSQL sink plugin validation error message with blank password
165+ Given Open Datafusion Project to configure pipeline
166+ When Expand Plugin group in the LHS plugins list: "Source"
167+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
168+ When Expand Plugin group in the LHS plugins list: "Sink"
169+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
170+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
171+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
172+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
173+ Then Select radio button plugin property: "instanceType" with value: "public"
174+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
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: "sourceRef"
178+ Then Replace input plugin property: "database" with value: "databaseName"
179+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
180+ Then Click on the Get Schema button
181+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
182+ Then Validate "CloudSQL PostgreSQL" plugin properties
183+ Then Close the Plugin Properties page
184+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
185+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
186+ Then Select radio button plugin property: "instanceType" with value: "public"
187+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
188+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
189+ Then Enter input plugin property: "referenceName" with value: "targetRef"
190+ Then Replace input plugin property: "database" with value: "databaseName"
191+ Then Replace input plugin property: "tableName" with value: "targetTable"
192+ Then Click on the Validate button
193+ Then Verify that the Plugin is displaying an error message: "errorMessageWithBlankPassword" on the header
194+
195+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @Sink_Required
196+ Scenario Outline : To verify CloudSQLPostgreSQL sink plugin validation error message for update, upsert operation name and table key
197+ Given Open Datafusion Project to configure pipeline
198+ When Expand Plugin group in the LHS plugins list: "Source"
199+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
200+ When Expand Plugin group in the LHS plugins list: "Sink"
201+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
202+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
203+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
204+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
205+ Then Select radio button plugin property: "instanceType" with value: "public"
206+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
207+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
208+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
209+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
210+ Then Replace input plugin property: "database" with value: "databaseName"
211+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
212+ Then Click on the Get Schema button
213+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
214+ Then Validate "CloudSQL PostgreSQL" plugin properties
215+ Then Close the Plugin Properties page
216+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
217+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
218+ Then Select radio button plugin property: "instanceType" with value: "public"
219+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
220+ Then Replace input plugin property: "database" with value: "databaseName"
221+ Then Replace input plugin property: "tableName" with value: "targetTable"
222+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
223+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
224+ Then Enter input plugin property: "referenceName" with value: "targetRef"
225+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
226+ Then Select radio button plugin property: "operationName" with value: "<options>"
227+ Then Click on the Validate button
228+ Then Verify that the Plugin Property: "operationName" is displaying an in-line error message: "errorMessageUpdateUpsertOperationName"
229+ Then Verify that the Plugin Property: "relationTableKey" is displaying an in-line error message: "errorMessageUpdateUpsertOperationName"
230+ Examples :
231+ | options |
232+ | upsert |
233+ | update |
234+
235+ @CLOUDSQLPOSTGRESQL_SOURCE_TEST @CLOUDSQLPOSTGRESQL_TARGET_TEST @Sink_Required
236+ Scenario Outline : To verify pipeline preview failed with invalid table key
237+ Given Open Datafusion Project to configure pipeline
238+ When Expand Plugin group in the LHS plugins list: "Source"
239+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Source"
240+ When Expand Plugin group in the LHS plugins list: "Sink"
241+ When Select plugin: "CloudSQL PostgreSQL" from the plugins list as: "Sink"
242+ Then Connect plugins: "CloudSQL PostgreSQL" and "CloudSQL PostgreSQL2" to establish connection
243+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL"
244+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
245+ Then Select radio button plugin property: "instanceType" with value: "public"
246+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
247+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
248+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
249+ Then Enter input plugin property: "referenceName" with value: "sourceRef"
250+ Then Replace input plugin property: "database" with value: "databaseName"
251+ Then Enter textarea plugin property: "importQuery" with value: "selectQuery"
252+ Then Click on the Get Schema button
253+ Then Verify the Output Schema matches the Expected Schema: "datatypesSchema"
254+ Then Validate "CloudSQL PostgreSQL" plugin properties
255+ Then Close the Plugin Properties page
256+ Then Navigate to the properties page of plugin: "CloudSQL PostgreSQL2"
257+ Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
258+ Then Select radio button plugin property: "instanceType" with value: "public"
259+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
260+ Then Replace input plugin property: "database" with value: "databaseName"
261+ Then Replace input plugin property: "tableName" with value: "targetTable"
262+ Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
263+ Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
264+ Then Enter input plugin property: "referenceName" with value: "targetRef"
265+ Then Replace input plugin property: "dbSchemaName" with value: "schema"
266+ Then Select radio button plugin property: "operationName" with value: "<options>"
267+ Then Click on the Add Button of the property: "relationTableKey" with value:
268+ | invalidCloudSQLPostgreSQLTableKey |
269+ Then Close the Plugin Properties page
270+ Then Save the pipeline
271+ Then Preview and run the pipeline
272+ Then Verify the preview of pipeline is "Failed"
273+ Examples :
274+ | options |
275+ | upsert |
276+ | update |
0 commit comments