FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CloudSQL MySQL Plugin e2e test cases by sawantpritam · Pull Request #199 · data-integrations/database-plugins · GitHub

CloudSQL MySQL Plugin e2e test cases - #199

Open
sawantpritam wants to merge 5 commits into
data-integrations:developfrom
sawantpritam:e2e-cloudsqlmysql
Open

CloudSQL MySQL Plugin e2e test cases#199
sawantpritam wants to merge 5 commits into
data-integrations:developfrom
sawantpritam:e2e-cloudsqlmysql

Conversation

Copy link
Copy Markdown
Contributor

@tivv @rmstar @itsankit-google Please review.

Comment thread e2e-test/pom.xml
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2015-2019 Cask Data, Inc.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

2022

Comment thread e2e-test/pom.xml

<groupId>io.cdap.plugin</groupId>
<artifactId>e2e-test</artifactId>
<version>2.9.0-SNAPSHOT</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

should it 1.9.0-SNAPSHOT?

<version>1.9.0-SNAPSHOT</version>

@@ -0,0 +1,120 @@
/*
* Copyright © 2021 Cask Data, Inc.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL