]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI: Use specific instance of rest module to test timeout
authorNick Porter <nick@portercomputing.co.uk>
Wed, 15 Feb 2023 18:50:27 +0000 (18:50 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 15 Feb 2023 18:50:27 +0000 (18:50 +0000)
Avoids slow CI hosts triggering timeouts on other tests

src/tests/modules/rest/module.conf
src/tests/modules/rest/rest_xlat.unlang

index 08467681877048e50182c8237f41f1a405bef7bd..e137d03f630663775279390f42ee6c44221b4355 100644 (file)
@@ -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
+       }
+}
index f2aaaee870e09fc85abf290cb7665552371ecbb6..a6c2cadcac24431e5e8cf17c641db611944c3d8f 100644 (file)
@@ -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