Skip to content

Commit 998a682

Browse files
committed
tests/modules/kafka: exercise the null keyword on the xlat key arg
Now that tmpl parsing recognises `null` as an explicit FR_TYPE_NULL placeholder, swap the zero-length-value produce's key from `''` to `null` so the test doubles as regression coverage for the keyword end-to-end (tokenize -> xlat arg list -> cast to octets -> zero- length key -> "no key on the wire").
1 parent 3b51650 commit 998a682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tests/modules/kafka/xlat.unlang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if (!%kafka.produce('freeradius-test-xlat-alt', "xlat-key", "alternate topic"))
4444
#
4545
# Empty value - librdkafka accepts zero-length payloads.
4646
#
47-
if (!%kafka.produce('freeradius-test-xlat', '', "")) {
47+
if (!%kafka.produce('freeradius-test-xlat', null, "")) {
4848
test_fail
4949
}
5050

0 commit comments

Comments
 (0)