#
# PRE: update if
#
#  Remove all attributes in a list
#
update {
	control:Cleartext-Password := 'hello'
	reply:Filter-Id := 'filter'
}

#
#  Regression test for 0x prefix. xlat expanded
#  octet strings must NOT have a 0x prefix added
#
update request {
	Tmp-Octets-0 := 0x0001020304050607
	Tmp-Octets-0 += 0x0706050403020100
}

if ("%{Tmp-Octets-0}" != '0x0001020304050607') {
	update {
		reply:Filter-Id := 'fail 1'
	}
}

if ("%{Tmp-Octets-0[0]}" != '0x0001020304050607') {
	update {
		reply:Filter-Id += 'fail 2'
	}
}

if ("%{Tmp-Octets-0[*]}" != '0x0001020304050607,0x0706050403020100') {
	update {
		reply:Filter-Id += 'fail 3'
	}
}
