1
- Feature : CloudMySql sink- Verify ,Mysql sink plugin design time validation scenarios
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
+ @CloudMySql
16
+ Feature : CloudMySql sink- Verify CloudsqlMysql sink plugin design time validation scenarios
2
17
3
18
Scenario : To verify CloudMySql sink plugin validation error message with invalid database
4
19
Given Open Datafusion Project to configure pipeline
@@ -10,15 +25,15 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
10
25
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
11
26
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
12
27
Then Select radio button plugin property: "instanceType" with value: "public"
13
- Then Enter input plugin property: "connectionName" with value: "ConnectionName"
28
+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
14
29
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
15
30
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
16
31
Then Enter input plugin property: "referenceName" with value: "RefName"
17
32
Then Enter input plugin property: "database" with value: "TestDatabase"
18
33
Then Enter textarea plugin property: "importQuery" with value: "insertQuery"
19
- # Then Click on the Get Schema button
20
- # Then Verify the Output Schema matches the Expected Schema: "outputSchema"
21
- # Then Validate "CloudSQL MySQL" plugin properties
34
+ Then Click on the Get Schema button
35
+ Then Verify the Output Schema matches the Expected Schema: "outputSchema"
36
+ Then Validate "CloudSQL MySQL" plugin properties
22
37
Then Close the Plugin Properties page
23
38
Then Navigate to the properties page of plugin: "CloudSQL MySQL2"
24
39
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
@@ -30,7 +45,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
30
45
Then Enter input plugin property: "database" with value: "invalidDatabaseName"
31
46
Then Enter input plugin property: "tableName" with value: "mytable"
32
47
Then Click on the Validate button
33
- # Then Verify that the Plugin is displaying an error message: "errorMessageInvalidSinkDatabase" on the header
48
+ Then Verify that the Plugin is displaying an error message: "errorMessageInvalidSinkDatabase" on the header
34
49
35
50
Scenario : To verify CloudMySql sink plugin validation error message with invalid tablename
36
51
Given Open Datafusion Project to configure pipeline
@@ -42,26 +57,26 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
42
57
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
43
58
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
44
59
Then Select radio button plugin property: "instanceType" with value: "public"
45
- Then Enter input plugin property: "connectionName" with value: "ConnectionName"
60
+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
46
61
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
47
62
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
48
63
Then Enter input plugin property: "referenceName" with value: "RefName"
49
64
Then Enter input plugin property: "database" with value: "TestDatabase"
50
65
Then Enter textarea plugin property: "importQuery" with value: "insertQuery"
51
- # Then Click on the Get Schema button
52
- # Then Verify the Output Schema matches the Expected Schema: "outputSchema"
53
- # Then Validate "CloudSQL MySQL" plugin properties
66
+ Then Click on the Get Schema button
67
+ Then Verify the Output Schema matches the Expected Schema: "outputSchema"
68
+ Then Validate "CloudSQL MySQL" plugin properties
54
69
Then Close the Plugin Properties page
55
70
Then Navigate to the properties page of plugin: "CloudSQL MySQL2"
56
71
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
57
72
Then Select radio button plugin property: "instanceType" with value: "public"
58
- Then Enter input plugin property: "connectionName" with value: "ConnectionName"
73
+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
59
74
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
60
75
Then Enter input plugin property: "referenceName" with value: "invalidRefName"
61
76
Then Enter input plugin property: "database" with value: "TestDatabase"
62
77
Then Enter input plugin property: "tableName" with value: "Invalidtable"
63
78
Then Click on the Validate button
64
- # Then Verify that the Plugin Property: "table" is displaying an in-line error message: "errorMessageInvalidTableName"
79
+ Then Verify that the Plugin Property: "table" is displaying an in-line error message: "errorMessageInvalidTableName"
65
80
66
81
Scenario : To verify CloudMySql sink plugin validation error message with invalid reference Name
67
82
Given Open Datafusion Project to configure pipeline
@@ -70,7 +85,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
70
85
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
71
86
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
72
87
Then Select radio button plugin property: "instanceType" with value: "public"
73
- Then Enter input plugin property: "connectionName" with value: "ConnectionName"
88
+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
74
89
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
75
90
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
76
91
Then Enter input plugin property: "referenceName" with value: "invalidRef"
@@ -87,7 +102,7 @@ Feature: CloudMySql sink- Verify ,Mysql sink plugin design time validation scena
87
102
Then Navigate to the properties page of plugin: "CloudSQL MySQL"
88
103
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "cloudsql-mysql"
89
104
Then Select radio button plugin property: "instanceType" with value: "public"
90
- Then Enter input plugin property: "connectionName" with value: "ConnectionName"
105
+ Then Replace input plugin property: "connectionName" with value: "connectionName" for Credentials and Authorization related fields
91
106
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
92
107
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"
93
108
Then Enter input plugin property: "referenceName" with value: "RefName"
0 commit comments