-
Notifications
You must be signed in to change notification settings - Fork 30
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
CloudSQL MySQL Plugin e2e test cases #199
base: develop
Are you sure you want to change the base?
CloudSQL MySQL Plugin e2e test cases #199
Conversation
CloudSqlMySql Test Scenarios
e2e CloudSqlMySql
@@ -0,0 +1,123 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
Copyright © 2015-2019 Cask Data, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022
|
||
<groupId>io.cdap.plugin</groupId> | ||
<artifactId>e2e-test</artifactId> | ||
<version>2.9.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it 1.9.0-SNAPSHOT?
Line 23 in 543dee0
<version>1.9.0-SNAPSHOT</version> |
@@ -0,0 +1,120 @@ | |||
/* | |||
* Copyright © 2021 Cask Data, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022
public class E2ETestUtils { | ||
private static Properties pluginProperties = new Properties(); | ||
private static Properties errorProperties = new Properties(); | ||
private static final Logger logger = Logger.getLogger(E2ETestUtils.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use slf4j
private static final Logger LOG = LoggerFactory.getLogger(E2ETestUtils.class);
Feature: CloudSQLMySQl Sink Design Time | ||
|
||
@CLDMYSQL @TC-Mandatory-fields | ||
Scenario Outline:Verify CloudSQLMYSQL Sink properties validation errors for mandatory fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for clarify, can we add source and sink test features in separate directories?
Then Post records count from CloudSQLMySQL table "clsTableNameBQCS" | ||
Then Validate the output record count | ||
Then Validate successMessage is displayed | ||
Then Validate the count of records transferred from BigQuery "clsTableNameBQ" to CloudSqlMySql "clsTableNameBQCS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to checking the number of records transferred, also validate that the correct data is written to the sink in all the test cases
clsProjectID=cdf-athena | ||
clsTableNameBQ=tableabc | ||
clsTableNameBQ1=tablecloud | ||
clsBucket=gs://cdf-athena-test/TestingGCS.csv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load data from the repo instead of depending on data existing in a GCS bucket. For example, see google-cloud tests - https://github.com/data-integrations/google-cloud/tree/develop/src/e2e-test/resources/testdata
@tivv @rmstar @itsankit-google Please review.