fr_value_box_t *box = fr_dlist_head(&out->result);
if (!box) {
- RPEDEBUG("No value found for assignment");
+ RWDEBUG("No value found for assignment");
return -1;
}
# Invalid format
&Tmp-String-3 := '201-32-22 17:25:00'
-&Tmp-String-0 := "%(sqldate:%{Tmp-String-3})"
+&Tmp-String-4 := "%(sqldate:%{Tmp-String-3})"
-if (&Tmp-String-0 != "") {
+# This shouldn't exist, as the RHS above is NULL, and therefore the assignment will fail
+if (&Tmp-String-4) {
test_fail
}
# Invalid type
&NAS-IP-Address := "192.168.1.1"
-&Tmp-String-4 := %(date:%{NAS-IP-Address})
+&Tmp-String-5 := %(date:%{NAS-IP-Address})
-if (&Tmp-String-4 != "") {
+if (&Tmp-String-5) {
test_fail
}
}
# invalid assignment
+# this will silently fail with a no Module-Failure-Message.
&request += {
&Tmp-Ethernet-0 = %{Tmp-Ethernet-1[42]}
}
-if (&request.Module-Failure-Message != "No value found for assignment") {
- test_fail
-}
-
if (%{request.Tmp-Ethernet-0[#]} != 3) {
test_fail
}