|
| 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 | +@Mssql |
| 18 | +Feature: Mssql - Verify Mssql source plugin design time validation scenarios |
| 19 | + |
| 20 | + @Required |
| 21 | + Scenario: To verify validation message when user provides invalid Host |
| 22 | + Given Open DataFusion Project with replication to configure replication job |
| 23 | + When Enter input plugin property: "name" with pipelineName |
| 24 | + And Click on the "Next" button in replication to navigate |
| 25 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 26 | + Then Replace input plugin property: "host" with value: "mssqlInvalidHost" for Credentials and Authorization related fields |
| 27 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 28 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 29 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 30 | + Then Replace input plugin property: "user" with value: "mssqlUsername" for Credentials and Authorization related fields |
| 31 | + Then Replace input plugin property: "password" with value: "mssqlPassword" for Credentials and Authorization related fields |
| 32 | + And Click on the "Next" button in replication to navigate |
| 33 | + Then Replace input plugin property: "project" with value: "projectId" |
| 34 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 35 | + And Click on the "Next" button in replication to navigate |
| 36 | + Then Verify that the Plugin is displaying an error message: "errorMessageInvalidMssqlHost" |
| 37 | + |
| 38 | + @Required |
| 39 | + Scenario: To verify validation message when user provides invalid Port |
| 40 | + Given Open DataFusion Project with replication to configure replication job |
| 41 | + When Enter input plugin property: "name" with pipelineName |
| 42 | + And Click on the "Next" button in replication to navigate |
| 43 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 44 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 45 | + Then Replace input plugin property: "port" with value: "mssqlInvalidPort" for Credentials and Authorization related fields |
| 46 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 47 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 48 | + Then Replace input plugin property: "user" with value: "mssqlUsername" for Credentials and Authorization related fields |
| 49 | + Then Replace input plugin property: "password" with value: "mssqlPassword" for Credentials and Authorization related fields |
| 50 | + And Click on the "Next" button in replication to navigate |
| 51 | + Then Replace input plugin property: "project" with value: "projectId" |
| 52 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 53 | + And Click on the "Next" button in replication to navigate |
| 54 | + Then Verify that the Plugin is displaying an error message: "errorMessageInvalidMssqlPort" |
| 55 | + |
| 56 | + Scenario: To verify validation message when user provides invalid Database Name |
| 57 | + Given Open DataFusion Project with replication to configure replication job |
| 58 | + When Enter input plugin property: "name" with pipelineName |
| 59 | + And Click on the "Next" button in replication to navigate |
| 60 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 61 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 62 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 63 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 64 | + Then Replace input plugin property: "database" with value: "mssqlInvalidDatabaseName" |
| 65 | + Then Replace input plugin property: "user" with value: "mssqlUsername" for Credentials and Authorization related fields |
| 66 | + Then Replace input plugin property: "password" with value: "mssqlPassword" for Credentials and Authorization related fields |
| 67 | + And Click on the "Next" button in replication to navigate |
| 68 | + Then Replace input plugin property: "project" with value: "projectId" |
| 69 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 70 | + And Click on the "Next" button in replication to navigate |
| 71 | + Then Verify that the Plugin is displaying an error message: "errorMessageInvalidMssqlDatabase" |
| 72 | + |
| 73 | + @Required |
| 74 | + Scenario: To verify validation message when user provides invalid user |
| 75 | + Given Open DataFusion Project with replication to configure replication job |
| 76 | + When Enter input plugin property: "name" with pipelineName |
| 77 | + And Click on the "Next" button in replication to navigate |
| 78 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 79 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 80 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 81 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 82 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 83 | + Then Replace input plugin property: "user" with value: "mssqlInvalidUser" for Credentials and Authorization related fields |
| 84 | + Then Replace input plugin property: "password" with value: "mssqlPassword" for Credentials and Authorization related fields |
| 85 | + And Click on the "Next" button in replication to navigate |
| 86 | + Then Replace input plugin property: "project" with value: "projectId" |
| 87 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 88 | + And Click on the "Next" button in replication to navigate |
| 89 | + Then Verify that the Plugin is displaying an error message: "errorMessageInvalidMssqlUser" |
| 90 | + |
| 91 | + Scenario: To verify validation message when user provides invalid password |
| 92 | + Given Open DataFusion Project with replication to configure replication job |
| 93 | + When Enter input plugin property: "name" with pipelineName |
| 94 | + And Click on the "Next" button in replication to navigate |
| 95 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 96 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 97 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 98 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 99 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 100 | + Then Replace input plugin property: "user" with value: "mssqlInvalidUser" for Credentials and Authorization related fields |
| 101 | + Then Replace input plugin property: "password" with value: "mssqlInvalidPassword" for Credentials and Authorization related fields |
| 102 | + And Click on the "Next" button in replication to navigate |
| 103 | + Then Replace input plugin property: "project" with value: "projectId" |
| 104 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 105 | + And Click on the "Next" button in replication to navigate |
| 106 | + Then Verify that the Plugin is displaying an error message: "errorMessageInvalidMssqlPassword" |
| 107 | + |
| 108 | + Scenario: To verify validation message when macro enabled for password field |
| 109 | + Given Open DataFusion Project with replication to configure replication job |
| 110 | + When Enter input plugin property: "name" with pipelineName |
| 111 | + And Click on the "Next" button in replication to navigate |
| 112 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 113 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 114 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 115 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 116 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 117 | + Then Replace input plugin property: "user" with value: "mssqlUsername" for Credentials and Authorization related fields |
| 118 | + Then Click on the Macro button of Property: "password" and set the value to: "mssqlPassword" |
| 119 | + And Click on the "Next" button in replication to navigate |
| 120 | + Then Replace input plugin property: "project" with value: "projectId" |
| 121 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 122 | + And Click on the "Next" button in replication to navigate |
| 123 | + Then Verify that the Plugin is displaying an error message: "errorMessageMacroPassword" |
| 124 | + |
| 125 | + Scenario: To verify validation message when macro enabled for service account key field |
| 126 | + Given Open DataFusion Project with replication to configure replication job |
| 127 | + When Enter input plugin property: "name" with pipelineName |
| 128 | + And Click on the "Next" button in replication to navigate |
| 129 | + And Select Source plugin: "Microsoft SQLServer" from the replication plugins list |
| 130 | + Then Replace input plugin property: "host" with value: "mssqlHost" for Credentials and Authorization related fields |
| 131 | + Then Replace input plugin property: "port" with value: "mssqlPort" for Credentials and Authorization related fields |
| 132 | + Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "mssqlDriverName" |
| 133 | + Then Replace input plugin property: "database" with value: "mssqlDatabaseName" |
| 134 | + Then Replace input plugin property: "user" with value: "mssqlUsername" for Credentials and Authorization related fields |
| 135 | + Then Replace input plugin property: "password" with value: "mssqlPassword" for Credentials and Authorization related fields |
| 136 | + And Click on the "Next" button in replication to navigate |
| 137 | + Then Replace input plugin property: "project" with value: "projectId" |
| 138 | + Then Click on the Macro button of Property: "serviceAccountKey" and set the value to: "ServiceAccountKey" |
| 139 | + Then Enter input plugin property: "datasetName" with value: "dataset" |
| 140 | + And Click on the "Next" button in replication to navigate |
| 141 | + Then Verify that the Plugin is displaying an error message: "errorMessageMacroServiceAccountKey" |
0 commit comments