-
Notifications
You must be signed in to change notification settings - Fork 34
e2e-tests for MySQL plugins #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
mysql-plugin/src/e2e-test/features/mysqlsink/Datatypes.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # | ||
| # Copyright © 2023 Cask Data, Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
| # use this file except in compliance with the License. You may obtain a copy of | ||
| # the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
| # License for the specific language governing permissions and limitations under | ||
| # the License. | ||
| # | ||
|
|
||
| @Mysql | ||
| Feature: Mysql - Verify Mysql sink data transfer for different datatypes | ||
|
|
||
| @BQ_SOURCE_TEST @MYSQL_TARGET_TABLE | ||
| Scenario: To verify data is getting transferred from BigQuery to Mysql successfully | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Expand Plugin group in the LHS plugins list: "Source" | ||
| When Select plugin: "BigQuery" from the plugins list as: "Source" | ||
| And Navigate to the properties page of plugin: "BigQuery" | ||
| And Enter input plugin property: "referenceName" with value: "Reference" | ||
| And Replace input plugin property: "project" with value: "projectId" | ||
| And Enter input plugin property: "datasetProject" with value: "datasetprojectId" | ||
| And Enter input plugin property: "dataset" with value: "dataset" | ||
| And Enter input plugin property: "table" with value: "bqSourceTable" | ||
| Then Validate "BigQuery" plugin properties | ||
| And Close the Plugin Properties page | ||
| When Expand Plugin group in the LHS plugins list: "Sink" | ||
| When Select plugin: "MySQL" from the plugins list as: "Sink" | ||
| Then Connect plugins: "BigQuery" and "MySQL" to establish connection | ||
| Then Navigate to the properties page of plugin: "MySQL" | ||
| Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" | ||
| Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "database" with value: "databaseName" | ||
| Then Replace input plugin property: "tableName" with value: "targetTable" | ||
| Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields | ||
| Then Enter input plugin property: "referenceName" with value: "targetRef" | ||
| Then Validate "MySQL2" plugin properties | ||
| Then Close the Plugin Properties page | ||
| Then Save the pipeline | ||
| Then Preview and run the pipeline | ||
| Then Verify the preview of pipeline is "success" | ||
| Then Close the preview | ||
| Then Deploy the pipeline | ||
| Then Run the Pipeline in Runtime | ||
| Then Wait till pipeline is in running state | ||
| Then Open and capture logs | ||
| Then Verify the pipeline status is "Succeeded" | ||
| Then Validate the values of records transferred to target MySQL table is equal to the values from source BigQuery table |
77 changes: 77 additions & 0 deletions
77
mysql-plugin/src/e2e-test/features/mysqlsink/DesignTime.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # Copyright © 2023 Cask Data, Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
| # use this file except in compliance with the License. You may obtain a copy of | ||
| # the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
| # License for the specific language governing permissions and limitations under | ||
| # the License... | ||
|
|
||
| @Mysql | ||
| Feature: MySQL Sink - Design time scenarios | ||
|
|
||
| @MYSQL_SOURCE_TEST @MYSQL_SINK_TEST @Mysql_Required | ||
| Scenario: Verify user can validate successfully when sink plugin is configured for table with basic details | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Expand Plugin group in the LHS plugins list: "Sink" | ||
| When Select plugin: "MySQL" from the plugins list as: "Sink" | ||
| Then Navigate to the properties page of plugin: "MySQL" | ||
| Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" | ||
| Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "database" with value: "databaseName" | ||
| Then Replace input plugin property: "tableName" with value: "targetTable" | ||
| Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields | ||
| Then Enter input plugin property: "referenceName" with value: "targetRef" | ||
| Then Validate "MySQL2" plugin properties | ||
|
|
||
| @MYSQL_SOURCE_TEST @CONNECTION @MYSQL_SINK_TEST @Mysql_Required | ||
| Scenario: Verify the MySQL Sink plugin using connection manager functionality | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Expand Plugin group in the LHS plugins list: "Sink" | ||
| When Select plugin: "MySQL" from the plugins list as: "Sink" | ||
| Then Navigate to the properties page of plugin: "MySQL" | ||
| And Click plugin property: "switch-useConnection" | ||
| And Click on the Browse Connections button | ||
| And Click on the Add Connection button | ||
| And Select Mysql Connection | ||
| And Enter input plugin property: "name" with value: "connection.name" | ||
| Then Enter input plugin property: "referenceName" with value: "sourceRef" | ||
| Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" | ||
| Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields | ||
| Then Click on the Test Connection button | ||
| And Verify the test connection is successful | ||
| Then Click on the Create button | ||
| And Use new connection | ||
| Then Enter input plugin property: "referenceName" with value: "sourceRef" | ||
| Then Replace input plugin property: "database" with value: "databaseName" | ||
| Then Replace input plugin property: "tableName" with value: "targetTable" | ||
| Then Validate "MySQL" plugin properties | ||
| Then Close the Plugin Properties page | ||
|
|
||
| @MYSQL_SOURCE_TEST @MYSQL_SINK_TEST @Mysql_Required | ||
| Scenario: Verify user should be able to validate sink plugin successfully by setting the advanced section fields | ||
| Given Open Datafusion Project to configure pipeline | ||
| When Expand Plugin group in the LHS plugins list: "Sink" | ||
| When Select plugin: "MySQL" from the plugins list as: "Sink" | ||
| Then Navigate to the properties page of plugin: "MySQL" | ||
| Then Select dropdown plugin property: "select-jdbcPluginName" with option value: "driverName" | ||
| Then Replace input plugin property: "host" with value: "host" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "database" with value: "databaseName" | ||
| Then Replace input plugin property: "tableName" with value: "targetTable" | ||
| Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields | ||
| Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields | ||
| Then Enter input plugin property: "referenceName" with value: "targetRef" | ||
| Then Click plugin property: "useCompression" | ||
| Then Click plugin property: "autoReconnect" | ||
| Then Validate "MySQL" plugin properties | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.