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(csharp/test/Drivers/Snowflake): refactor snowflake test framework #1323

Merged
merged 6 commits into from
Dec 5, 2023

Conversation

ruowan
Copy link
Contributor

@ruowan ruowan commented Nov 27, 2023

No description provided.

@ruowan ruowan requested a review from lidavidm as a code owner November 27, 2023 07:35
Copy link

⚠️ Please follow the Conventional Commits format in CONTRIBUTING.md for PR titles.

@github-actions github-actions bot added this to the ADBC Libraries 0.9.0 milestone Nov 27, 2023
@ruowan ruowan changed the title Refactor snowflake test framework [feature] Refactor snowflake test framework Nov 27, 2023
@ruowan
Copy link
Contributor Author

ruowan commented Nov 27, 2023

@davidhcoe Help to review this PR.

@lidavidm lidavidm changed the title [feature] Refactor snowflake test framework test(csharp/test/Drivers/Snowflake): refactor snowflake test framework Nov 27, 2023
Copy link
Contributor

@davidhcoe davidhcoe left a comment

Choose a reason for hiding this comment

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

There are a number of changes that need to be addressed before this can be checked in. It makes several breaking changes to the Snowflake DriverTests. I attempted to check in some changes but don't have the right permissions, so I tried to add them individually. Please ensure all the tests pass (when successful, there are two that still fail, but those are addressed in other PRs/issues).

Depending on when this lands, it may be impacted by some of the refactoring in https://github.com/apache/arrow-adbc/pull/1328/files.

csharp/test/Drivers/Snowflake/ClientTests.cs Show resolved Hide resolved
}
}
else
{
builder[SnowflakeParameters.PASSWORD] = testConfiguration.Password;
// default basic auth
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to specify auth_snowflake (what is currently called Default)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

"private_key_pwd": "",
"user": ""
},
"default": {
Copy link
Contributor

Choose a reason for hiding this comment

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

"default" is not an auth type. This should be auth_snowflake

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

csharp/test/Drivers/Snowflake/ClientTests.cs Show resolved Hide resolved
csharp/test/Drivers/Snowflake/ClientTests.cs Show resolved Hide resolved
@ruowan
Copy link
Contributor Author

ruowan commented Nov 30, 2023

I run the test cases all test case succeeded expect the two failure test cases you mentioned before.

@davidhcoe
Copy link
Contributor

It's failing some of the tests related to @ryan-syed's PR but everything seems OK other than the one comment about specifying AuthSnowflake.

Were you also going to look at defining auth in a way that could be used with different queries?

@ruowan
Copy link
Contributor Author

ruowan commented Dec 1, 2023

I am not looking at support different query, yet. But, That's a good point that we can enhance testFramework to support different query. I will log it as a work item.

@davidhcoe
Copy link
Contributor

@ruowan - can you resolve the merge conflicts and then this should be good to go.

@ruowan
Copy link
Contributor Author

ruowan commented Dec 5, 2023

Resolved. I think we can merge this PR.

@CurtHagenlocher CurtHagenlocher merged commit 879ff32 into apache:main Dec 5, 2023
5 checks 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.

3 participants