]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use single quotes, which makes the output easier to read
authorAlan T. DeKok <aland@freeradius.org>
Thu, 18 Dec 2025 16:05:52 +0000 (17:05 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 19 Dec 2025 07:18:07 +0000 (08:18 +0100)
src/tests/modules/json/regression04.unlang

index f8dfd4da28bf45a5b8130d83aab8b92f6f098e57..5750788f8fc51215f0824c60021c7d7e1d7799a8 100644 (file)
@@ -11,7 +11,7 @@ Vendor-Specific.Nokia-SR = {
        }
 }
 
-if (!(%json.encode('&Vendor-Specific') == "{\"Vendor-Specific\":{\"type\":\"vsa\",\"value\":{\"Nokia-SR\":{\"type\":\"vendor\",\"value\":{\"ToServer-Dhcp-Options\":{\"type\":\"group\",\"value\":{\"Message-Type\":{\"type\":\"uint8\",\"value\":\"Discover\"},\"Parameter-Request-List\":{\"type\":\"attribute\",\"value\":[\"::Subnet-Mask\",\"::Router-Address\"]},\"Vendor-Class-Identifier\":{\"type\":\"octets\",\"value\":\"udhcp 1.30.1\"},\"Hostname\":{\"type\":\"string\",\"value\":\"modem\"},\"Relay-Agent-Information\":{\"type\":\"tlv\",\"value\":{\"Remote-Id\":{\"type\":\"octets\",\"value\":\"2295554460\"}}}}}}}}}}")) {
+if (%json.encode('&Vendor-Specific') != '{"Vendor-Specific":{"type":"vsa","value":{"Nokia-SR":{"type":"vendor","value":{"ToServer-Dhcp-Options":{"type":"group","value":{"Message-Type":{"type":"uint8","value":"Discover"},"Parameter-Request-List":{"type":"attribute","value":["::Subnet-Mask","::Router-Address"]},"Vendor-Class-Identifier":{"type":"octets","value":"udhcp 1.30.1"},"Hostname":{"type":"string","value":"modem"},"Relay-Agent-Information":{"type":"tlv","value":{"Remote-Id":{"type":"octets","value":"2295554460"}}}}}}}}}}') {
        test_fail
 }