|
| 1 | +# |
| 2 | +# Copyright © 2023 Cask Data, Inc. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | +# use this file except in compliance with the License. You may obtain a copy of |
| 6 | +# the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | +# License for the specific language governing permissions and limitations under |
| 14 | +# the License. |
| 15 | +# |
| 16 | + |
| 17 | +@Mysql @Required |
| 18 | +Feature: Mysql - Verify Mysql source plugin design time validation scenarios |
| 19 | + |
| 20 | + Scenario: To verify validation message when user provides invalid Host |
| 21 | + Given Open DataFusion Project with replication to configure replication job |
| 22 | + When Enter input plugin property: "name" with pipelineName |
| 23 | + And Click on the "Next" button in replication to navigate |
| 24 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 25 | + Then Replace input plugin property: "host" with value: "mySqlInvalidHost" for Credentials and Authorization related fields |
| 26 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 27 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 28 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 29 | + Then Replace input plugin property: "user" with value: "mysqlUsername" for Credentials and Authorization related fields |
| 30 | + Then Replace input plugin property: "password" with value: "mysqlPassword" for Credentials and Authorization related fields |
| 31 | + And Click on the "Next" button in replication to navigate |
| 32 | + Then Replace input plugin property: "project" with value: "projectId" |
| 33 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 34 | + And Click on the "Next" button in replication to navigate |
| 35 | + Then Verify that the Plugin is displaying an error message: "errorMessageMysqlInvalidHost" |
| 36 | + |
| 37 | + Scenario: To verify validation message when user provides invalid Port |
| 38 | + Given Open DataFusion Project with replication to configure replication job |
| 39 | + When Enter input plugin property: "name" with pipelineName |
| 40 | + And Click on the "Next" button in replication to navigate |
| 41 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 42 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 43 | + Then Replace input plugin property: "port" with value: "mySqlInvalidPort" for Credentials and Authorization related fields |
| 44 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 45 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 46 | + Then Replace input plugin property: "user" with value: "mysqlUsername" for Credentials and Authorization related fields |
| 47 | + Then Replace input plugin property: "password" with value: "mysqlPassword" for Credentials and Authorization related fields |
| 48 | + And Click on the "Next" button in replication to navigate |
| 49 | + Then Replace input plugin property: "project" with value: "projectId" |
| 50 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 51 | + And Click on the "Next" button in replication to navigate |
| 52 | + Then Verify that the Plugin is displaying an error message: "errorMessageMysqlInvalidPort" |
| 53 | + |
| 54 | + Scenario: To verify validation message when user provides invalid Database Name |
| 55 | + Given Open DataFusion Project with replication to configure replication job |
| 56 | + When Enter input plugin property: "name" with pipelineName |
| 57 | + And Click on the "Next" button in replication to navigate |
| 58 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 59 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 60 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 61 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 62 | + Then Replace input plugin property: "database" with value: "mySqlInvalidDatabase" |
| 63 | + Then Replace input plugin property: "user" with value: "mysqlUsername" for Credentials and Authorization related fields |
| 64 | + Then Replace input plugin property: "password" with value: "mysqlPassword" for Credentials and Authorization related fields |
| 65 | + And Click on the "Next" button in replication to navigate |
| 66 | + Then Replace input plugin property: "project" with value: "projectId" |
| 67 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 68 | + And Click on the "Next" button in replication to navigate |
| 69 | + Then Verify that the Plugin is displaying an error message: "errorMessageMysqlInvalidDatabase" |
| 70 | + |
| 71 | + Scenario: To verify validation message when user provides invalid user |
| 72 | + Given Open DataFusion Project with replication to configure replication job |
| 73 | + When Enter input plugin property: "name" with pipelineName |
| 74 | + And Click on the "Next" button in replication to navigate |
| 75 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 76 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 77 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 78 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 79 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 80 | + Then Replace input plugin property: "user" with value: "mySqlInvalidUser" for Credentials and Authorization related fields |
| 81 | + Then Replace input plugin property: "password" with value: "mysqlPassword" for Credentials and Authorization related fields |
| 82 | + And Click on the "Next" button in replication to navigate |
| 83 | + Then Replace input plugin property: "project" with value: "projectId" |
| 84 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 85 | + And Click on the "Next" button in replication to navigate |
| 86 | + Then Verify that the Plugin is displaying an error message: "errorMessageMysqlInvalidUser" |
| 87 | + |
| 88 | + Scenario: To verify validation message when user provides invalid password |
| 89 | + Given Open DataFusion Project with replication to configure replication job |
| 90 | + When Enter input plugin property: "name" with pipelineName |
| 91 | + And Click on the "Next" button in replication to navigate |
| 92 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 93 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 94 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 95 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 96 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 97 | + Then Replace input plugin property: "user" with value: "mySqlInvalidUser" for Credentials and Authorization related fields |
| 98 | + Then Replace input plugin property: "password" with value: "mySqlInvalidPassword" for Credentials and Authorization related fields |
| 99 | + And Click on the "Next" button in replication to navigate |
| 100 | + Then Replace input plugin property: "project" with value: "projectId" |
| 101 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 102 | + And Click on the "Next" button in replication to navigate |
| 103 | + Then Verify that the Plugin is displaying an error message: "errorMessageMysqlInvalidPassword" |
| 104 | + |
| 105 | + Scenario: To verify validation message when macro enabled for password field |
| 106 | + Given Open DataFusion Project with replication to configure replication job |
| 107 | + When Enter input plugin property: "name" with pipelineName |
| 108 | + And Click on the "Next" button in replication to navigate |
| 109 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 110 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 111 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 112 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 113 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 114 | + Then Replace input plugin property: "user" with value: "mysqlUsername" for Credentials and Authorization related fields |
| 115 | + Then Click on the Macro button of Property: "password" and set the value to: "Password" |
| 116 | + And Click on the "Next" button in replication to navigate |
| 117 | + Then Replace input plugin property: "project" with value: "projectId" |
| 118 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 119 | + And Click on the "Next" button in replication to navigate |
| 120 | + Then Verify that the Plugin is displaying an error message: "errorMessageMacroPassword" |
| 121 | + |
| 122 | + Scenario: To verify validation message when macro enabled for service account key field |
| 123 | + Given Open DataFusion Project with replication to configure replication job |
| 124 | + When Enter input plugin property: "name" with pipelineName |
| 125 | + And Click on the "Next" button in replication to navigate |
| 126 | + And Select Source plugin: "MySQL" from the replication plugins list |
| 127 | + Then Replace input plugin property: "host" with value: "mysqlHost" for Credentials and Authorization related fields |
| 128 | + Then Replace input plugin property: "port" with value: "mysqlPort" for Credentials and Authorization related fields |
| 129 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mysqlDriverName" |
| 130 | + Then Replace input plugin property: "database" with value: "mysqlDatabaseName" |
| 131 | + Then Replace input plugin property: "user" with value: "mysqlUsername" for Credentials and Authorization related fields |
| 132 | + Then Replace input plugin property: "password" with value: "mysqlPassword" for Credentials and Authorization related fields |
| 133 | + And Click on the "Next" button in replication to navigate |
| 134 | + Then Replace input plugin property: "project" with value: "projectId" |
| 135 | + Then Click on the Macro button of Property: "serviceAccountKey" and set the value to: "ServiceAccountKey" |
| 136 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 137 | + And Click on the "Next" button in replication to navigate |
| 138 | + Then Verify that the Plugin is displaying an error message: "errorMessageMacroServiceAccountKey" |
| 139 | + |
0 commit comments