-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add JDBC URL option TC_COPY_FILE, copying files to container #6387
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
base: main
Are you sure you want to change the base?
Conversation
@@ -204,13 +205,13 @@ private HikariDataSource verifyCharacterSet(String jdbcUrl) throws SQLException | |||
private void performTestForCustomIniFile(HikariDataSource dataSource) throws SQLException { | |||
assumeFalse(SystemUtils.IS_OS_WINDOWS); | |||
Statement statement = dataSource.getConnection().createStatement(); | |||
statement.execute("SELECT @@GLOBAL.innodb_file_format"); | |||
statement.execute("SELECT @@GLOBAL.key_buffer_size"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Barracuda
was already the default value for innodb_file_format
, thus not actually testing the config was applied. I doubled the value of key_buffer_size
in the ini file and asserted based on that instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be the reason why the mariadb
tests fail.
The |
* Change the way file vs. classpath resources work * Change the way we specify multiple files
…* Change the way file vs. classpath resources work * Change the way we specify multiple files
This adds another option,
TC_COPY_FILE
, to the JDBC URL scheme. It enables one to copy files into the container image.jdbc:tc:...?TC_COPY_FILE=relative-path/file:/container-path/the-file
jdbc:tc:...?TC_COPY_FILE=relative-path/file:/container-path/the-file:755
jdbc:tc:...?TC_COPY_FILE=relative-path/file:/container-path/the-file&TC_COPY_FILE=file:/absolute-path/another-file:/container-path/antoher-file:755