|
| 1 | +# Copyright © 2023 Cask Data, Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | +# use this file except in compliance with the License. You may obtain a copy of |
| 5 | +# the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | +# License for the specific language governing permissions and limitations under |
| 13 | +# the License... |
| 14 | + |
| 15 | +@Mysql |
| 16 | +Feature: MySQL Sink - Design time scenarios |
| 17 | + |
| 18 | + @MYSQL_SOURCE_TEST @MYSQL_SINK_TEST @Mysql_Required |
| 19 | + Scenario: Verify user can validate successfully when sink plugin is configured for table with basic details |
| 20 | + Given Open Datafusion Project to configure pipeline |
| 21 | + When Expand Plugin group in the LHS plugins list: "Sink" |
| 22 | + When Select plugin: "MySQL" from the plugins list as: "Sink" |
| 23 | + Then Navigate to the properties page of plugin: "MySQL" |
| 24 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" |
| 25 | + Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields |
| 26 | + Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields |
| 27 | + Then Replace input plugin property: "database" with value: "databaseName" |
| 28 | + Then Replace input plugin property: "tableName" with value: "targetTable" |
| 29 | + Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields |
| 30 | + Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields |
| 31 | + Then Enter input plugin property: "referenceName" with value: "targetRef" |
| 32 | + Then Validate "MySQL2" plugin properties |
| 33 | + |
| 34 | + @MYSQL_SOURCE_TEST @CONNECTION @MYSQL_SINK_TEST @Mysql_Required |
| 35 | + Scenario: Verify the MySQL Sink plugin using connection manager functionality |
| 36 | + Given Open Datafusion Project to configure pipeline |
| 37 | + When Expand Plugin group in the LHS plugins list: "Sink" |
| 38 | + When Select plugin: "MySQL" from the plugins list as: "Sink" |
| 39 | + Then Navigate to the properties page of plugin: "MySQL" |
| 40 | + And Click plugin property: "switch-useConnection" |
| 41 | + And Click on the Browse Connections button |
| 42 | + And Click on the Add Connection button |
| 43 | + And Select Mysql Connection |
| 44 | + And Enter input plugin property: "name" with value: "connection.name" |
| 45 | + Then Enter input plugin property: "referenceName" with value: "sourceRef" |
| 46 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" |
| 47 | + Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields |
| 48 | + Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields |
| 49 | + Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields |
| 50 | + Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields |
| 51 | + Then Click on the Test Connection button |
| 52 | + And Verify the test connection is successful |
| 53 | + Then Click on the Create button |
| 54 | + And Use new connection |
| 55 | + Then Enter input plugin property: "referenceName" with value: "sourceRef" |
| 56 | + Then Replace input plugin property: "database" with value: "databaseName" |
| 57 | + Then Replace input plugin property: "tableName" with value: "targetTable" |
| 58 | + Then Validate "MySQL" plugin properties |
| 59 | + Then Close the Plugin Properties page |
| 60 | + |
| 61 | + @MYSQL_SOURCE_TEST @MYSQL_SINK_TEST @Mysql_Required |
| 62 | + Scenario: Verify user should be able to validate sink plugin successfully by setting the advanced section fields |
| 63 | + Given Open Datafusion Project to configure pipeline |
| 64 | + When Expand Plugin group in the LHS plugins list: "Sink" |
| 65 | + When Select plugin: "MySQL" from the plugins list as: "Sink" |
| 66 | + Then Navigate to the properties page of plugin: "MySQL" |
| 67 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" |
| 68 | + Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields |
| 69 | + Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields |
| 70 | + Then Replace input plugin property: "database" with value: "databaseName" |
| 71 | + Then Replace input plugin property: "tableName" with value: "targetTable" |
| 72 | + Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields |
| 73 | + Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields |
| 74 | + Then Enter input plugin property: "referenceName" with value: "targetRef" |
| 75 | + Then Click plugin property: "useCompression" |
| 76 | + Then Click plugin property: "autoReconnect" |
| 77 | + Then Validate "MySQL" plugin properties |
0 commit comments