You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The currently used Oracle image uses a database named XEPDB1. In the more recent versions of the image it is named FREEPDB1. The current API allows us to change the image to use with Oracle but doesn't permit to change the database name:
WithDatabase(string) exists but is private
Merge(configuration) exists but is protected and the class sealed
As a consequence there is no way to pick a newer version of this image, potentially with better security.
Solution
Make WithDatabase public
Benefit
Not having to request the image to be changed in TestContainers.
Alternatives
N/A
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered:
I believe the method is private because previous versions did not support changing the database name, but it seems this is supported in version 18c and later (see ORACLE_DATABASE). We need to update the builder's logic accordingly. In the meantime, you can either use the generic builder or set the environment variable and use your own connection string as a workaround for this limitation (maybe we need to adjust the wait strategy too).
I was working on this a few days ago. Pull request #1231 did not come out of the blue, it was a prerequisite to select the correct default database name (XE, XEPDB1 or FREEPDB1) based on the Docker image version. 😉
Problem
The currently used Oracle image uses a database named
XEPDB1
. In the more recent versions of the image it is namedFREEPDB1
. The current API allows us to change the image to use with Oracle but doesn't permit to change the database name:WithDatabase(string)
exists but is privateMerge(configuration)
exists but is protected and the class sealedAs a consequence there is no way to pick a newer version of this image, potentially with better security.
Solution
Make
WithDatabase
publicBenefit
Not having to request the image to be changed in TestContainers.
Alternatives
N/A
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: