#
# PRE: update
#

update request {
	Filter-Id := 'foobarbaz'
	NAS-Port := 123456789
	Framed-IP-Address := 192.0.2.1
}

if (!((Filter-Id == 'foobarbaz')) || (!(NAS-Port == 123456789)) || (!(Framed-IP-Address == 192.0.2.1))) {
	test_fail
}

# Remove all attributes in the control list
update {
	request !* ANY
}

# All attributes should now of been removed
if ((Filter-Id && (Filter-Id == 'foobarbaz')) || \
	(NAS-Port && (NAS-Port == 123456789)) || \
	(Framed-IP-Address && (Framed-IP-Address == 192.0.2.1))) {
	test_fail
}

# This will of been removed too
update request {
	User-Password := 'hello'
}

success
