Skip to content

Commit c4424a4

Browse files
committed
test: Add a workaround for lacking Podman networking
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`.
1 parent 40f0274 commit c4424a4

16 files changed

+24
-0
lines changed

test/MODCLUSTER-640/mod_lbmethod_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WSUpgradeHeader websocket
2222
<VirtualHost *:8090>
2323
EnableMCMPReceive
2424
<Location />
25+
# For podman, this gets changed to IP in httpd/run.sh
2526
Require host .mod_proxy_cluster_testsuite_net
2627
# _gateway is the hostname used through the docker port forward into the custom network
2728
Require host _gateway

test/MODCLUSTER-640/mod_proxy_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ EnableOptions On
2121
<VirtualHost *:8090>
2222
EnableMCMPReceive
2323
<Location />
24+
# For podman, this gets changed to IP in httpd/run.sh
2425
Require host .mod_proxy_cluster_testsuite_net
2526
# _gateway is the hostname used through the docker port forward into the custom network
2627
Require host _gateway

test/MODCLUSTER-734/mod_lbmethod_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ServerName httpd-mod_proxy_cluster
1818
<VirtualHost *:8090>
1919
EnableMCMPReceive
2020
<Location />
21+
# For podman, this gets changed to IP in httpd/run.sh
2122
Require host .mod_proxy_cluster_testsuite_net
2223
# _gateway is the hostname used through the docker port forward into the custom network
2324
Require host _gateway

test/MODCLUSTER-734/mod_proxy_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ServerName httpd-mod_proxy_cluster
1515
<VirtualHost *:8090>
1616
EnableMCMPReceive
1717
<Location />
18+
# For podman, this gets changed to IP in httpd/run.sh
1819
Require host .mod_proxy_cluster_testsuite_net
1920
# _gateway is the hostname used through the docker port forward into the custom network
2021
Require host _gateway

test/MODCLUSTER-755/mod_lbmethod_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ServerName httpd-mod_proxy_cluster
1818
<VirtualHost *:8090>
1919
EnableMCMPReceive
2020
<Location />
21+
# For podman, this gets changed to IP in httpd/run.sh
2122
Require host .mod_proxy_cluster_testsuite_net
2223
# _gateway is the hostname used through the docker port forward into the custom network
2324
Require host _gateway

test/MODCLUSTER-755/mod_proxy_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ServerName httpd-mod_proxy_cluster
1212
<VirtualHost *:8090>
1313
EnableMCMPReceive
1414
<Location />
15+
# For podman, this gets changed to IP in httpd/run.sh
1516
Require host .mod_proxy_cluster_testsuite_net
1617
# _gateway is the hostname used through the docker port forward into the custom network
1718
Require host _gateway

test/MODCLUSTER-785/mod_lbmethod_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ WSUpgradeHeader websocket
1818
<VirtualHost *:8090>
1919
EnableMCMPReceive
2020
<Location />
21+
# For podman, this gets changed to IP in httpd/run.sh
2122
Require host .mod_proxy_cluster_testsuite_net
2223
# _gateway is the hostname used through the docker port forward into the custom network
2324
Require host _gateway

test/MODCLUSTER-785/mod_proxy_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ WSUpgradeHeader websocket
1515
<VirtualHost *:8090>
1616
EnableMCMPReceive
1717
<Location />
18+
# For podman, this gets changed to IP in httpd/run.sh
1819
Require host .mod_proxy_cluster_testsuite_net
1920
# _gateway is the hostname used through the docker port forward into the custom network
2021
Require host _gateway

test/MODCLUSTER-794/mod_lbmethod_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ WSUpgradeHeader websocket
1919
<VirtualHost *:8090>
2020
EnableMCMPReceive
2121
<Location />
22+
# For podman, this gets changed to IP in httpd/run.sh
2223
Require host .mod_proxy_cluster_testsuite_net
2324
# _gateway is the hostname used through the docker port forward into the custom network
2425
Require host _gateway

test/MODCLUSTER-794/mod_proxy_cluster.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ EnableOptions On
1616
<VirtualHost *:8090>
1717
EnableMCMPReceive
1818
<Location />
19+
# For podman, this gets changed to IP in httpd/run.sh
1920
Require host .mod_proxy_cluster_testsuite_net
2021
# _gateway is the hostname used through the docker port forward into the custom network
2122
Require host _gateway

0 commit comments

Comments
 (0)