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

Upgrade testcontainers to 0.20.0 #3289

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

divergentdave
Copy link
Contributor

There have been four testcontainers releases over the past few months, and Dependabot has been failing to propose upgrades. Plus, there were a number of breaking changes to improve the API. This PR upgrades to the latest version and fixes various errors along the way.

@divergentdave divergentdave requested a review from a team as a code owner July 9, 2024 18:59
@@ -687,6 +684,6 @@ pub mod test_util {
}

pub fn generate_unique_name(prefix: &str) -> String {
format!("{}_{}", prefix, hex::encode(random::<[u8; 4]>()))
format!("{}-{}", prefix, hex::encode(random::<[u8; 4]>()))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FWIW, this is necessary to fix issues in the end_to_end test. I was seeing error messages in container logs saying that requests couldn't be made because hostnames were invalid. I think this happened because testcontainers now turns on the reqwest/hickory-dns feature, and Hickory is more strict about underscores not being allowed in hostnames.

@divergentdave divergentdave merged commit c954e7e into main Jul 9, 2024
9 checks passed
@divergentdave divergentdave deleted the david/upgrade-testcontainers branch July 9, 2024 20:46
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.

None yet

2 participants