Debian Codegraph @

src/tests/keywords/xlat-octets

raw
1 #
2 # PRE: update if
3 #
4 # Remove all attributes in a list
5 #
6 update {
7 control:Cleartext-Password := 'hello'
8 reply:Filter-Id := 'filter'
9 }
10
11 #
12 # Regression test for 0x prefix. xlat expanded
13 # octet strings must NOT have a 0x prefix added
14 #
15 update request {
16 Tmp-Octets-0 := 0x0001020304050607
17 Tmp-Octets-0 += 0x0706050403020100
18 }
19
20 if ("%{Tmp-Octets-0}" != '0x0001020304050607') {
21 update {
22 reply:Filter-Id := 'fail 1'
23 }
24 }
25
26 if ("%{Tmp-Octets-0[0]}" != '0x0001020304050607') {
27 update {
28 reply:Filter-Id += 'fail 2'
29 }
30 }
31
32 if ("%{Tmp-Octets-0[*]}" != '0x0001020304050607,0x0706050403020100') {
33 update {
34 reply:Filter-Id += 'fail 3'
35 }
36 }