Skip to content

Commit 1f8356f

Browse files
Merge pull request #400 from cloudsufi/e2e-mssql
SQL Server e2e
2 parents 2b9b045 + 4c9c47e commit 1f8356f

29 files changed

+2197
-269
lines changed

mssql-plugin/src/e2e-test/features/mssql/Datatype.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# the License.
1515
#
1616

17-
@Mssql
17+
@Mssql @Mssql_Required
1818
Feature: Mssql - Verify Mssql source data transfer
19-
@MSSQL_SOURCE_DATATYPES_TEST @MSSQL_SINK_TEST @Mssql_Required
19+
20+
@MSSQL_SOURCE_DATATYPES_TEST @MSSQL_TARGET_DATATYPES_TEST
2021
Scenario: To verify data is getting transferred from Mssql to Mssql successfully
2122
Given Open Datafusion Project to configure pipeline
2223
When Expand Plugin group in the LHS plugins list: "Source"

mssql-plugin/src/e2e-test/features/mssql/DatatypeDateTime.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# the License.
1515
#
1616

17-
@Mssql
17+
@Mssql @Mssql_Required
1818
Feature: Mssql - Verify Mssql source data transfer
19-
@MSSQL_SOURCE_DATATYPES_DATETIME_TEST @MSSQL_SINK_TEST @Mssql_Required
19+
20+
@MSSQL_SOURCE_DATATYPES_DATETIME_TEST @MSSQL_TARGET_DATATYPES_DATETIME_TEST
2021
Scenario: To verify data is getting transferred from Mssql to Mssql successfully
2122
Given Open Datafusion Project to configure pipeline
2223
When Expand Plugin group in the LHS plugins list: "Source"

mssql-plugin/src/e2e-test/features/mssql/DatatypeImage.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# the License.
1515
#
1616

17-
@Mssql
17+
@Mssql @Mssql_Required
1818
Feature: Mssql - Verify Mssql source data transfer
19-
@MSSQL_SOURCE_DATATYPES_IMAGE_TEST @MSSQL_SINK_TEST @Mssql_Required
19+
20+
@MSSQL_SOURCE_DATATYPES_IMAGE_TEST @MSSQL_TARGET_DATATYPES_IMAGE_TEST
2021
Scenario: To verify data is getting transferred from Mssql to Mssql successfully
2122
Given Open Datafusion Project to configure pipeline
2223
When Expand Plugin group in the LHS plugins list: "Source"

mssql-plugin/src/e2e-test/features/mssql/DatatypeUniqueIdentifier.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# the License.
1515
#
1616

17-
@Mssql
17+
@Mssql @Mssql_Required
1818
Feature: Mssql - Verify Mssql source data transfer
19-
@MSSQL_SOURCE_DATATYPES_UIDTYPE_TEST @MSSQL_SINK_TEST @Mssql_Required
19+
20+
@MSSQL_SOURCE_DATATYPES_UIDTYPE_TEST @MSSQL_TARGET_DATATYPES_UIDTYPE_TEST
2021
Scenario: To verify data is getting transferred from Mssql to Mssql successfully
2122
Given Open Datafusion Project to configure pipeline
2223
When Expand Plugin group in the LHS plugins list: "Source"

mssql-plugin/src/e2e-test/features/mssql/Mssql.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# the License.
1515
#
1616

17-
@Mssql
17+
@Mssql @Mssql_Required
1818
Feature: Mssql - Verify Mssql source data transfer
19-
@MSSQL_SOURCE_TEST @MSSQL_SINK_TEST @Mssql_Required
19+
20+
@MSSQL_AS_SOURCE @MSSQL_AS_TARGET
2021
Scenario: To verify data is getting transferred from Mssql to Mssql successfully
2122
Given Open Datafusion Project to configure pipeline
2223
When Expand Plugin group in the LHS plugins list: "Source"
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
@Mssql @Mssql_Required
16+
Feature: MsSQL Server Sink - Design time scenarios
17+
18+
@MSSQL_AS_TARGET
19+
Scenario: Verify user is able to validate the sink plugin with connection and basic details for connectivity
20+
Given Open Datafusion Project to configure pipeline
21+
When Expand Plugin group in the LHS plugins list: "Sink"
22+
When Select plugin: "SQL Server" from the plugins list as: "Sink"
23+
Then Navigate to the properties page of plugin: "SQL Server"
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: "dbSchemaName" with value: "schema"
30+
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
31+
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
32+
Then Enter input plugin property: "referenceName" with value: "targetRef"
33+
Then Validate "SQL Server" plugin properties
34+
Then Close the Plugin Properties page
35+
36+
@MSSQL_AS_TARGET
37+
Scenario: To verify Mssql source plugin validation with connection arguments
38+
Given Open Datafusion Project to configure pipeline
39+
When Expand Plugin group in the LHS plugins list: "Sink"
40+
When Select plugin: "SQL Server" from the plugins list as: "Sink"
41+
Then Navigate to the properties page of plugin: "SQL Server"
42+
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
43+
Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
44+
Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
45+
Then Replace input plugin property: "database" with value: "databaseName"
46+
Then Replace input plugin property: "tableName" with value: "targetTable"
47+
Then Replace input plugin property: "dbSchemaName" with value: "schema"
48+
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
49+
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
50+
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"
51+
Then Enter input plugin property: "referenceName" with value: "targetRef"
52+
Then Validate "SQL Server" plugin properties
53+
Then Close the Plugin Properties page
54+
55+
@MSSQL_AS_TARGET
56+
Scenario: To verify Mssql source plugin validation with advanced details
57+
Given Open Datafusion Project to configure pipeline
58+
When Expand Plugin group in the LHS plugins list: "Sink"
59+
When Select plugin: "SQL Server" from the plugins list as: "Sink"
60+
Then Navigate to the properties page of plugin: "SQL Server"
61+
Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName"
62+
Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields
63+
Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
64+
Then Replace input plugin property: "database" with value: "databaseName"
65+
Then Replace input plugin property: "tableName" with value: "targetTable"
66+
Then Replace input plugin property: "dbSchemaName" with value: "schema"
67+
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
68+
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
69+
Then Enter key value pairs for plugin property: "connectionArguments" with values from json: "connectionArgumentsList"
70+
Then Enter input plugin property: "referenceName" with value: "targetRef"
71+
Then Replace input plugin property: "queryTimeout" with value: "querytimeout"
72+
Then Replace input plugin property: "loginTimeout" with value: "logintimeout"
73+
Then Replace input plugin property: "packetSize" with value: "packetsize"
74+
Then Enter input plugin property: "currentLanguage" with value: "english"
75+
Then Validate "SQL Server" plugin properties
76+
Then Close the Plugin Properties page

0 commit comments

Comments
 (0)