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

[#3489] improvement(hive-catalog): Add user authentication e2e test for Hive catalog #3525

Merged
merged 63 commits into from
May 27, 2024

Conversation

yuqi1129
Copy link
Contributor

What changes were proposed in this pull request?

Add e2e tests to test end-to-end user authentication.

Why are the changes needed?

Verify that user authentication works

Fix: #3489

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

Test locally.

@yuqi1129 yuqi1129 self-assigned this May 23, 2024
@@ -58,7 +58,7 @@ public Object doAs(
ops.getClientPool()
.run(
client -> {
return client.getDelegationToken(realUser.getUserName(), principal.getName());
return client.getDelegationToken(principal.getName(), realUser.getUserName());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This a bug, just fixed it by the way.

@yuqi1129
Copy link
Contributor Author

Ping me when it is ready for review.

Got it.

@yuqi1129
Copy link
Contributor Author

Ping me when it is ready for review.

It's now ready for review.

@yuqi1129
Copy link
Contributor Author

@qqqttt123
Could you also review it for me?

.dropTable(NameIdentifier.of(METALAKE_NAME, CATALOG_NAME, SCHEMA_NAME, "new_table"));

// Drop schema
catalog.asSchemas().dropSchema(SCHEMA_NAME, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add assertions about what you expected here. not just simply write some codes here, it is a test code, you have to verify something, not blindly throw exceptions if it fails.

@jerryshao jerryshao merged commit e745864 into datastrato:main May 27, 2024
26 checks passed
yuqi1129 added a commit to yuqi1129/gravitino that referenced this pull request May 27, 2024
…e2e test for Hive catalog (datastrato#3525)

Add e2e tests to test end-to-end user authentication.

Verify that user authentication works

Fix: datastrato#3489

N/A

Test locally.
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Jun 13, 2024
…e2e test for Hive catalog (datastrato#3525)

### What changes were proposed in this pull request?

Add e2e tests to test end-to-end user authentication. 

### Why are the changes needed?

Verify that user authentication works

Fix: datastrato#3489

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

Test locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Add Hive user authentication e2e test.
2 participants