Mailing List Archive

rt branch 5.0/test-disable-config-cache-with-apache created. rt-5.0.5-107-g58eb260c36
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/test-disable-config-cache-with-apache has been created
at 58eb260c3679c58949b0390cdb9f0689fb88f6fc (commit)

- Log -----------------------------------------------------------------
commit 58eb260c3679c58949b0390cdb9f0689fb88f6fc
Author: sunnavy <sunnavy@bestpractical.com>
Date: Wed Jan 3 10:04:40 2024 -0500

Pass RT_TEST_DISABLE_CONFIG_CACHE to fcigd/mod_perl configs

Without it, t/web/priority.t would fail. Unlike others, proxy_fcgi does
not clean up current env, so it's not affected.

diff --git a/lib/RT/Test/Apache.pm b/lib/RT/Test/Apache.pm
index c9b0306eaf..d9c0492c56 100644
--- a/lib/RT/Test/Apache.pm
+++ b/lib/RT/Test/Apache.pm
@@ -127,6 +127,7 @@ sub start_server {
rt_sbin_path => $RT::SbinPath,
rt_site_config => $ENV{'RT_SITE_CONFIG'},
load_modules => $info{load_modules},
+ rt_test_disable_config_cache => $ENV{RT_TEST_DISABLE_CONFIG_CACHE} ? 1 : 0,
);
if (not $config{basic_auth}) {
$opt{basic_auth} = "";
diff --git a/t/data/configs/apache2.4+fcgid.conf.in b/t/data/configs/apache2.4+fcgid.conf.in
index 702ecd2ef2..cf8a76020a 100644
--- a/t/data/configs/apache2.4+fcgid.conf.in
+++ b/t/data/configs/apache2.4+fcgid.conf.in
@@ -30,6 +30,7 @@ FcgidConnectTimeout 20
FcgidProcessTableFile %%tmp_dir%%/shm
FcgidIPCDir %%tmp_dir%%
FcgidInitialEnv RT_TESTING 1
+FcgidInitialEnv RT_TEST_DISABLE_CONFIG_CACHE %%RT_TEST_DISABLE_CONFIG_CACHE%%
FcgidInitialEnv RT_SITE_CONFIG %%RT_SITE_CONFIG%%

ScriptAlias / %%RT_SBIN_PATH%%/rt-server.fcgi/
diff --git a/t/data/configs/apache2.4+mod_perl.conf.in b/t/data/configs/apache2.4+mod_perl.conf.in
index eb144cb872..a3ae9bf95f 100644
--- a/t/data/configs/apache2.4+mod_perl.conf.in
+++ b/t/data/configs/apache2.4+mod_perl.conf.in
@@ -60,6 +60,7 @@ DocumentRoot "%%DOCUMENT_ROOT%%"

<Perl>
$ENV{RT_TESTING}=1;
+ $ENV{RT_TEST_DISABLE_CONFIG_CACHE}=%%RT_TEST_DISABLE_CONFIG_CACHE%%;
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("%%RT_SBIN_PATH%%/rt-server");
</Perl>

-----------------------------------------------------------------------


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit