#
#  Tests for parsing files ala radclient or "users"
#
#  $Id: 832e134f782c0e46f7778293aef83000d8a0a957 $
#

proto-dictionary radius

#
#  Fully specified paths.
#
#  @todo - future - we arguably want to force nesting on these attributes?  Or change the nesting when printed?
#
read_file files/cisco_avpair.txt
match User-Name = "bob", User-Password = "hello", Vendor-Specific = { Cisco = { AVPair = "1", AVPair += "2", AVPair += "3", AVPair += "4" } }

#
#  Relative attributes, all on the same line.
#
read_file files/cisco_relative.txt
match User-Name = "bob", User-Password = "hello", Vendor-Specific = { Cisco = { AVPair = "1", AVPair += "2", AVPair += "3", AVPair += "4" } }

#
#  Relative attributes, each on a different line
#
read_file files/cisco_multiline_relative.txt
match User-Name = "bob", User-Password = "hello", Vendor-Specific = { Cisco = { AVPair = "1", AVPair += "2", AVPair += "3", AVPair += "4" } }


#
#  Multiple Cisco AVPAir, all on one line
#
read_file files/cisco_single_line.txt
match User-Name = "bob", User-Password = "hello", Vendor-Specific = { Cisco = { AVPair = "1", AVPair += "2", AVPair += "3", AVPair += "4" } }

count
match 9
