From: Alan T. DeKok Date: Fri, 20 Jan 2017 23:04:11 +0000 (-0500) Subject: more unknown vendors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362f32d6511739376440f7978f91a686334d439f;p=thirdparty%2Ffreeradius-server.git more unknown vendors --- diff --git a/src/tests/keywords/update-xlat b/src/tests/keywords/update-xlat index 59230dcc34b..501f481eb30 100644 --- a/src/tests/keywords/update-xlat +++ b/src/tests/keywords/update-xlat @@ -36,6 +36,24 @@ if (&Tmp-String-0 == 'hello') { # # Try updating an attribute specified by an OID string +# for an unknown vendor +# +update { + Tmp-Integer-0 := 66 +} +update { + "Vendor-%{Tmp-Integer-0}-Attr-1" := 0x01020304 +} + +if (&Vendor-66-Attr-1 != 0x01020304) { + update reply { + Filter-Id += 'Fail 1a' + } +} + +# +# Try updating an attribute specified by an OID string +# for a known vendor # update { Tmp-Integer-0 := 11344 @@ -59,3 +77,4 @@ if (&Tmp-String-1 != 'hello2') { Filter-Id += 'Fail 3' } } +