Update DNS zone allow-query validation test

localhost and localnets ACIs are now allowed. Update the respective
unit test.
This commit is contained in:
Martin Kosek 2012-09-07 13:49:15 +02:00
parent e4e5bd0595
commit 7c054377e3

View File

@ -1038,9 +1038,9 @@ class test_dns(Declarative):
dict(
desc='Try to add invalid allow-query to zone %r' % dnszone1,
command=('dnszone_mod', [dnszone1], {'idnsallowquery': u'localhost'}),
command=('dnszone_mod', [dnszone1], {'idnsallowquery': u'foo'}),
expected=errors.ValidationError(name='allow_query',
error=u'ACL name "localhost" is not supported'),
error=u"failed to detect a valid IP address from u'foo'"),
),
dict(