]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
test that local variables can be expanded
authorAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 13:45:45 +0000 (09:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 24 Sep 2023 13:45:45 +0000 (09:45 -0400)
src/tests/keywords/local-variable

index 1009f99de608b3f24dda4375f49d6b75b7407218..25eeccda5a47a3f43d2fc5ce2f718753d2ee15bc 100644 (file)
@@ -30,6 +30,17 @@ group {
        if !(&request.[#] == 5) {
                test_fail
        }
+
+       #
+       #  Local variables can be expanded
+       #
+       &Reply-Message := "This is %{foo}"
+       if !(&Reply-Message == "This is 1") {
+               test_fail
+       }
+
+       &request -= &Reply-Message
+
 } # leaving this scope automatically deletes &foo
 
 if !(&request.[#] == 5) {