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

Improve Kerberos auth test stability #127

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

ozangunalp
Copy link
Owner

Change KerberosContainer wait strategy from log to 88 port listen

Remove keytabs created in test-resources, the test now copies them to the target/test-classes/kerberos dir.

Fixes #121

Remove keytabs created in test-resources, the test now copies them to the target/test-classes/kerberos dir
@k-wall
Copy link
Collaborator

k-wall commented Dec 15, 2023

@ozangunalp lgtm. thank you for the investigation and producing the fix.

@@ -36,15 +35,15 @@ public void createTestPrincipals() {
"addprinc -randkey client/localhost@EXAMPLE.COM");
lsResult = execInContainer("kadmin.local", "-q",
"ktadd -norandkey -k /client.keytab client/localhost@EXAMPLE.COM");
copyFileFromContainer("/kafkabroker.keytab", "src/test/resources/kerberos/kafkabroker.keytab");
copyFileFromContainer("/client.keytab", "src/test/resources/kerberos/client.keytab");
copyFileFromContainer("/kafkabroker.keytab", "target/test-classes/kerberos/kafkabroker.keytab");
Copy link
Collaborator

Choose a reason for hiding this comment

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

just checking my mental model. this part is unrelated to the test instability. you are just preventing the test run dirtying the source tree.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Absolutely

@ozangunalp ozangunalp merged commit 85a6480 into main Dec 15, 2023
1 check passed
@ozangunalp ozangunalp deleted the improve_kerberos_auth_test_stability branch December 15, 2023 09:16
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.

integration tests have started to fail - testKerberosContainer
2 participants