From: Arran Cudbard-Bell Date: Fri, 11 Aug 2023 20:47:27 +0000 (-0600) Subject: json: Another test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4047e9c9c34432156e6fbebc3948bccc37d31f7;p=thirdparty%2Ffreeradius-server.git json: Another test --- diff --git a/src/tests/modules/json/json_quote.unlang b/src/tests/modules/json/json_quote.unlang index f6f74b84965..2b140e66b69 100644 --- a/src/tests/modules/json/json_quote.unlang +++ b/src/tests/modules/json/json_quote.unlang @@ -32,4 +32,9 @@ if (!(%(json_quote:%{Tmp-String-1}) == 'null')) { test_fail } +# Test calls in arguments as would be passed to REST module +if (!(%(test.passthrough:"{\"messages\":[{\"attributes\":{\"acct_status_type\":%(json_quote:%{Acct-Status-Type})}}]}") == '{"messages":[{"attributes":{"acct_status_type":null}}]}')) { + test_fail +} + test_pass