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

test: add integration test for admin desc #161

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

tmyoda
Copy link
Contributor

@tmyoda tmyoda commented Aug 31, 2023

Issue #, if available:
#143

Description of changes:
I have added the test for dy admin desc.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tmyoda tmyoda marked this pull request as draft August 31, 2023 09:55
@tmyoda tmyoda force-pushed the integration-test-admin-desc branch from 4d74ffc to 430e1ed Compare August 31, 2023 13:25
@tmyoda tmyoda marked this pull request as ready for review August 31, 2023 13:41
@tmyoda tmyoda mentioned this pull request Aug 31, 2023
23 tasks
@wafuwafu13 wafuwafu13 self-requested a review September 7, 2023 09:26

#[tokio::test]
async fn test_admin_desc_table_from_options() -> Result<(), Box<dyn std::error::Error>> {
let table_name = util::create_temporary_table("pk,S", Some("sk,N")).await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

[memo]
fixed arguments at #160


#[tokio::test]
async fn test_admin_desc_all_tables() -> Result<(), Box<dyn std::error::Error>> {
let table_name = util::create_temporary_table("pk", None).await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think multiple tables (at least 2) are needed for testing --all-tables can describe all tables

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment.
I've added 2 tables to this case to better validate the --all-tables.

Copy link
Contributor

@wafuwafu13 wafuwafu13 left a comment

Choose a reason for hiding this comment

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

Sorry for the delay in checking.
LGTM

@tmyoda tmyoda merged commit 4ca8886 into awslabs:main Sep 28, 2023
1 check passed
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.

2 participants