perl -p -i -e "s/%{([a-zA-Z0-9._-]+):([^&%{}=']+)}/%\$1('\$2')/g" $(git grep -lE '%\{[a-z0-9.-]+:' src/tests/keywords/ src/tests/modules)
&request += {
- &Tmp-Octets-1 = "%{md4:This is a string\n}"
+ &Tmp-Octets-1 = "%md4('This is a string\n')"
&Tmp-Octets-2 = "%{md4:%{Tmp-String-0}}"
&Tmp-Octets-3 = "%{md4:%{request.Tmp-String-0}}"
&Tmp-Octets-4 = "%{md4:%{request.Tmp-Octets-0}}"
&request += {
- &Tmp-Octets-1 = "%{md5:This is a string\n}"
+ &Tmp-Octets-1 = "%md5('This is a string\n')"
&Tmp-Octets-2 = "%{md5:%{Tmp-String-0}}"
&Tmp-Octets-3 = "%{md5:%{request.Tmp-String-0}}"
&Tmp-Octets-4 = "%{md5:%{request.Tmp-Octets-0}}"
-&Tmp-String-0 := "%{rand:-1}"
+&Tmp-String-0 := "%rand('-1')"
#
# Negative limit should have failed assignment
test_fail
}
-&Tmp-String-0 := "%{rand:hello world}"
+&Tmp-String-0 := "%rand('hello world')"
#
# Invalid limit should have failed assignment
}
&request += {
- &Tmp-Octets-2 = "%{sha1:This is a string\n}"
+ &Tmp-Octets-2 = "%sha1('This is a string\n')"
&Tmp-Octets-3 = "%{sha1:%{Tmp-String-0}}"
&Tmp-Octets-4 = "%{sha1:%{request.Tmp-String-0}}"
&Tmp-Octets-5 = "%{sha1:%{request.Tmp-Octets-9}}"
#
&Tmp-String-0 := "%idn('example.com')"
-&Tmp-String-1 := "%{idn:èxâmpłé.com}"
-&Tmp-String-2 := "%{idn:пример.com}"
-&Tmp-String-3 := "%{idn:παράδειγμα.com}"
-&Tmp-String-4 := "%{idn:ตัวอย่าง.com}"
+&Tmp-String-1 := "%idn('èxâmpłé.com')"
+&Tmp-String-2 := "%idn('пример.com')"
+&Tmp-String-3 := "%idn('παράδειγμα.com')"
+&Tmp-String-4 := "%idn('ตัวอย่าง.com')"
if (&Tmp-String-0 != "example.com") {
test_fail
test_fail
}
-&Tmp-String-0 := "%{idn:invalid_example.com}"
+&Tmp-String-0 := "%idn('invalid_example.com')"
if (&Module-Failure-Message != "Non-digit/letter/hyphen in input") {
test_fail
&request -= &Module-Failure-Message[*]
-&Tmp-String-0 := "%{idn:a.véry.löng.ņàme.whîch.when.expânded.exceedş.ţhe.dns.stanđard.fór.string.łength.of.twø.hündred.ând.fifty.threé.charáctèrs.and.therefore.is.invalid.for.idn.conversion}"
+&Tmp-String-0 := "%idn('a.véry.löng.ņàme.whîch.when.expânded.exceedş.ţhe.dns.stanđard.fór.string.łength.of.twø.hündred.ând.fifty.threé.charáctèrs.and.therefore.is.invalid.for.idn.conversion')"
if (&Module-Failure-Message != "Conversion was truncated") {
test_fail
#
# Configuration file for the "redis" module. This module does nothing
-# Other than provide connections to a redis database, and a %{redis: ...}
+# Other than provide connections to a redis database, and a %redis(' ...')
# expansion.
#
redis {
#
# Configuration file for the "redis" module. This module does nothing
-# Other than provide connections to a redis database, and a %{redis: ...}
+# Other than provide connections to a redis database, and a %redis(' ...')
# expansion.
#
redis_ippool {
#
# Test paircmp group comparisons
#
-if (%{sql.group:groups_group_a} != false) {
+if (%sql.group('groups_group_a') != false) {
test_fail
}
-if (%{sql.group:groups_group_b} != true) {
+if (%sql.group('groups_group_b') != true) {
test_fail
}
-if (%{sql.group:groups_group_c} != true) {
+if (%sql.group('groups_group_c') != true) {
test_fail
}
# Non-existent group
-if (%{sql.group:groups_group_d} != false) {
+if (%sql.group('groups_group_d') != false) {
test_fail
}