Skip to content

Commit

Permalink
Add extra tests for auto prefix conversion to condition.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Dec 1, 2014
1 parent 29f6821 commit 7317d97
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/tests/unit/condition.txt
Expand Up @@ -8,6 +8,9 @@
# A bunch of errors, in the order that the error strings
# appear in parser.c
#


# All IP address literals should be parsed as prefixes
condition ("foo\
data ERROR offset 6 End of string after escape

Expand Down Expand Up @@ -195,8 +198,12 @@ data &User-Name
condition <ipaddr>Framed-IP-Address == 127.0.0.1
data &Framed-IP-Address == 127.0.0.1

condition <cidr>Framed-IP-Address <= 192.168/16
data <ipv4prefix>&Framed-IP-Address <= 192.168/16
condition <cidr>Framed-IP-Address <= 192.168.0.0/16
data <ipv4prefix>&Framed-IP-Address <= 192.168.0.0/16

# All IP address literals should be parsed as prefixes
condition Framed-IP-Address <= 192.168.0.0/16
data &Framed-IP-Address <= 192.168.0.0/16

# string attributes must be string
condition User-Name == "bob"
Expand Down

0 comments on commit 7317d97

Please sign in to comment.