From: Nick Porter Date: Wed, 15 Feb 2023 18:50:27 +0000 (+0000) Subject: CI: Use specific instance of rest module to test timeout X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03cab0399ee0de6ba0abf9478436d3f8045c7bb4;p=thirdparty%2Ffreeradius-server.git CI: Use specific instance of rest module to test timeout Avoids slow CI hosts triggering timeouts on other tests --- diff --git a/src/tests/modules/rest/module.conf b/src/tests/modules/rest/module.conf index 08467681877..e137d03f630 100644 --- a/src/tests/modules/rest/module.conf +++ b/src/tests/modules/rest/module.conf @@ -23,7 +23,6 @@ rest { xlat { tls = ${..tls} - timeout = 0.5 } authorize { @@ -49,3 +48,9 @@ rest { tls = ${..tls} } } + +rest restshorttimeout { + xlat { + timeout = 0.5 + } +} diff --git a/src/tests/modules/rest/rest_xlat.unlang b/src/tests/modules/rest/rest_xlat.unlang index f2aaaee870e..a6c2cadcac2 100644 --- a/src/tests/modules/rest/rest_xlat.unlang +++ b/src/tests/modules/rest/rest_xlat.unlang @@ -134,7 +134,7 @@ if (!(&Tmp-String-2 == "{\"station\":\"aa:bb:cc:dd:ee:ff\"}\n" )) { } # Test against endpoint which will time out -&Tmp-String-2 := "%(rest:http://%{Tmp-String-0}:%{Tmp-Integer-0}/delay)" +&Tmp-String-2 := "%(restshorttimeout:http://%{Tmp-String-0}:%{Tmp-Integer-0}/delay)" if (&REST-HTTP-Status-Code) { test_fail