-
Notifications
You must be signed in to change notification settings - Fork 16
Tests: Use custom docker/podman network, rework provisioning of containers, and more tweaks #357
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
Conversation
077e824 to
ef99b9f
Compare
jfclere
left a comment
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.
The problem is more the mix of variable set + call of function on the same line and variable set in several line and then the call of the function. We should use a single one and prefer a single line set + calls (more easy to maintain.
Set HostNameLookups On to get hostname in %{REMOTE_HOST}, no IP
Drop hardcoded IP addresses, no localhost (except client <-> proxy)
Tomcat container now does not exit when tomcat process is stopped
Minor files & format clean ups
Containers are now using custom docker network with DNS Containers are now using their container names instead of localhost/IPs Parameters/Options now reflect the actual usage
Shift tomcat ports where conflicts might lead to random test failures Code and format clean ups
Also test a little bit more than before UseAlias is not enabled by default in the rest of the testsuite now
Unfortunately, custom podman networks do not support rDNS so tomcat requests are handled by their IP. This causes our `Require host` to not work which leads to test failures. Upon httpd container start, we try to detect podman and if needed, we change `Require host` to `Require ip`.
Before all configuration variables will be moved at the beginning.
|
(rebase) |
jfclere
left a comment
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.
Look OK for me.
|
Thanks for the review! |
This is a bigger PR but because of the nature of changes, there is not much what to do about it (I've already dropped some changes for future PRs).
The main thing is that host network is no longer used in containerized tests. This allows us to use DNS, isolate tests to a different network (minimizing conflicts with other running services).
In points:
close #348