ok # separate updates
-#
-# We need "ungroup" here, because request[*] is "all attributes with
-# da of request", not "all attributes contained by the request VP."
-#
-# We don't (yet) have syntax like "request.[*]", so we need this hack.
-#
&request += {
- &Tmp-String-1 = "%(concat:%(ungroup:%{request[*]}) ', ')"
+ &Tmp-String-1 = "%(concat:%{request.[*]} ', ')"
}
if (&Tmp-String-1 != "bob, hello, ab c, de fg, 123") {
#
# @todo - fix this...
#
-&control.Tmp-String-1 := "%(concat:%(join:%(ungroup:%{request[*]}) %{control.Tmp-IP-Address-0}) '. ')"
+&control.Tmp-String-1 := "%(concat:%(join:%{request.[*]} %{control.Tmp-IP-Address-0}) '. ')"
if (&control.Tmp-String-1 != "bob. hello. ab c. de fg. 123. 192.168.1.254") {
test_fail
test_fail
}
-if (&session-state[*]) {
+if (&session-state.[*]) {
test_fail
}
test_fail
}
-if (!&session-state[*]) {
+if (!&session-state.[*]) {
+ test_fail
+}
+
+if !(%{session-state.[#]} == 1) {
test_fail
}
}
&request += {
- &Tmp-String-1 = "%(concat:%(pairs:request[*]) ', ')"
+ &Tmp-String-1 = "%(concat:%(pairs:request.[*]) ', ')"
&Tmp-String-2 = "%(pairs:Tmp-String-0)"
&Tmp-String-3 = "%(concat:%(pairs:Tmp-String-0[*]) ', ')"
&Tmp-String-4 = "%(concat:%(pairs:control.) ', ')"
# Outputs the contents of the control list in debugging (-X) mode
#
debug_control {
- if("%(debug_attr:control[*])" == '') {
+ if("%(debug_attr:control.[*])" == '') {
noop
}
}
# Outputs the contents of the request list in debugging (-X) mode
#
debug_request {
- if("%(debug_attr:request[*])" == '') {
+ if("%(debug_attr:request.[*])" == '') {
noop
}
}
# Outputs the contents of the reply list in debugging (-X) mode
#
debug_reply {
- if("%(debug_attr:reply[*])" == '') {
+ if("%(debug_attr:reply.[*])" == '') {
noop
}
}