mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - add static delay for linux tests and fix core db tests
This commit is contained in:
parent
bb6fd30739
commit
ee2aeda13a
|
@ -9,7 +9,7 @@ from logger import log
|
|||
|
||||
class LinuxTest(Test):
|
||||
def __init__(self, name, timeout, tests, distro):
|
||||
super().__init__(name, "linux", timeout, tests)
|
||||
super().__init__(name, "linux", timeout, tests, delay=20)
|
||||
self._domains = {
|
||||
r"www\.example\.com": f"{Test.random_string(6)}.{getenv('TEST_DOMAIN1')}",
|
||||
r"auth\.example\.com": f"{Test.random_string(6)}.{getenv('TEST_DOMAIN1')}",
|
||||
|
|
|
@ -18,6 +18,7 @@ services:
|
|||
GLOBAL_REVERSE_PROXY_URL: "/"
|
||||
GLOBAL_LOG_LEVEL: "info"
|
||||
CUSTOM_CONF_MODSEC_test_custom_conf: 'SecRule REQUEST_FILENAME "@rx ^/db" "id:1,ctl:ruleRemoveByTag=attack-generic,ctl:ruleRemoveByTag=attack-protocol,nolog"'
|
||||
GLOBAL_SERVER_NAME: "bwadm.example.com"
|
||||
extra_hosts:
|
||||
- "bwadm.example.com:192.168.0.2"
|
||||
networks:
|
||||
|
|
|
@ -147,6 +147,7 @@ do
|
|||
sed -i 's@GLOBAL_USE_REVERSE_PROXY@SERVICE_USE_REVERSE_PROXY@' docker-compose.test.yml
|
||||
sed -i 's@GLOBAL_REVERSE_PROXY_HOST@SERVICE_REVERSE_PROXY_HOST@' docker-compose.test.yml
|
||||
sed -i 's@GLOBAL_REVERSE_PROXY_URL@SERVICE_REVERSE_PROXY_URL@' docker-compose.test.yml
|
||||
sed -i 's@GLOBAL_SERVER_NAME@SERVICE_SERVER_NAME@' docker-compose.test.yml
|
||||
elif [ "$test" = "mariadb" ] ; then
|
||||
echo "💾 Running tests with MariaDB database ..."
|
||||
echo "ℹ️ Keeping the MULTISITE variable to yes and multisite settings ..."
|
||||
|
|
Loading…
Reference in a new issue