Skip to content
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

Integration tests addition and refactoring #30

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

alinaliBQ
Copy link
Contributor

Added suggested test cases that handles scenarios in a given region:
1/ No databases
2/ One database; no tables
3/ One database ; one table
4/ One database; multiple tables with different naming pattern to test 'LIKE' 5/ Multiple databases; multiple tables in each
In those test cases, getSchemas(), getTables() are tested with different naming schema patterns and table patterns to test 'LIKE'. They also check that getCatalogs() return empty result sets.

Refactoring:

  • Refactored existing test suite DatabaseMetaDataIntegrationTest to automatically create / delete databases
  • Refactored Constants.DATABASES_NAMES to have clearer database names that indicate they are for integration tests

Co-Authored by @RoyZhang2022

Additional Reviewers
@affonsoBQ
@alexey-temnikov
@alinaliBQ
@andiem-bq
@birschick-bq
@mitchell-elholm
@RoyZhang2022

Added test cases that handles scenarios in a given region:
1/ No databases
2/ One database; no tables
3/ One database ; one table
4/ One database; multiple tables with different naming pattern to test 'LIKE'
5/ Multiple databases; multiple tables in each
In those test cases, `getSchemas()`, `getTables()` are tested with different naming schema patterns and table patterns to test 'LIKE'. They also check that `getCatalogs()` return empty result sets. 

Refactoring:
- Refactored existing test suite `DatabaseMetaDataIntegrationTest` to automatically create / delete databases
- Refactored `Constants.DATABASES_NAMES` to have clearer database names that indicate they are for integration tests

Co-authored-by: RoyZhang2022 <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>
@rajeiyer rajeiyer merged commit 10ecec8 into awslabs:main Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants