KEMBAR78
Ensure readability of MySQL and MariaDB config override by famod · Pull Request #6625 · testcontainers/testcontainers-java · GitHub
Skip to content

Conversation

@famod
Copy link
Contributor

@famod famod commented Feb 13, 2023

Fixes #914, fixes #4952, supersedes (and heavily based on) #5401.

Most credits to @driverpt!

@driverpt
Copy link

The credit is all yours my friend!

Copy link
Member

@eddumelendez eddumelendez left a comment

Choose a reason for hiding this comment

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

I've left just one question. Just want to make sure the test is needed due to, previously, testMySQLWithCustomIniFile used to fail for MariaDBContainer and MySQLContainer and now it passes when running on Codespaces.

}

@Test
public void testWithOnlyUserReadableCustomIniFile() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

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

Should I be able to reproduce this setting umask with 027, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the test kinda only an "emulation" but I tested my real world setup with this fix using umask 0027.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PS: I also did run this new test before and after the fix; before the fix it failed and now it passes.

@eddumelendez eddumelendez added this to the next milestone Feb 16, 2023
@eddumelendez eddumelendez merged commit 68a9da5 into testcontainers:main Feb 16, 2023
@eddumelendez
Copy link
Member

Thanks for your contribution, @famod ! This is now merged in main branch and it will be part of the next release.

@famod famod deleted the fix-jdbc-container-permissions-2 branch August 8, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants