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

Add test for authorization #321

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

oneonestar
Copy link
Member

Description

Add test for authorization.
This is a regression test for #310.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Apr 16, 2024
{
HaGatewayTestUtils.TestConfig testConfig = HaGatewayTestUtils.buildGatewayConfigAndSeedDb(routerPort, "auth/auth-test-config.yml");
String[] args = {"server", testConfig.configFilePath()};
HaGatewayLauncher.main(args);
Copy link
Member

Choose a reason for hiding this comment

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

Does this gateway service close soon after this test class finished on CI? Or will it keep running until the all test classes finish?

Copy link
Member Author

Choose a reason for hiding this comment

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

A recent change set reuseForks to false should make each test class run in a separate JVM fork. I think each JVM will be teardown by JUnit after the test, thus release the resource.

<reuseForks>false</reuseForks>

@ebyhr ebyhr merged commit dd642d7 into trinodb:main Apr 16, 2024
2 checks passed
@github-actions github-actions bot added this to the 8 milestone Apr 16, 2024
@oneonestar oneonestar deleted the star/auth_test1 branch April 16, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants