diff options
author | Martin Basti <mbasti@redhat.com> | 2014-10-01 13:21:19 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-10-09 10:02:22 +0200 |
commit | 41015e6c9c5232a741314ba77df082ba7db55620 (patch) | |
tree | 0508e6bccfff130020c563812fcf6cd41d1e1e44 | |
parent | f36794e8119c6005a6e802b3c4b23e13a3ac0bf5 (diff) | |
download | freeipa-41015e6c9c5232a741314ba77df082ba7db55620.tar.gz freeipa-41015e6c9c5232a741314ba77df082ba7db55620.tar.xz freeipa-41015e6c9c5232a741314ba77df082ba7db55620.zip |
DNS missing tests
* try to remove non-existent permission
* try to remove idnssoamname using dnszone-mod --name-server=
Reviewed-By: David Kupka <dkupka@redhat.com>
-rw-r--r-- | ipatests/test_xmlrpc/test_dns_plugin.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py index b5df897fc..0f9b16ba7 100644 --- a/ipatests/test_xmlrpc/test_dns_plugin.py +++ b/ipatests/test_xmlrpc/test_dns_plugin.py @@ -507,6 +507,15 @@ class test_dns(Declarative): }, ), + dict( + desc='Try to remove value of "idnssomrname" attribute using dnszone-mod --name-server=', + command=( + 'dnszone_mod', [zone2], { + 'idnssoamname': None, + } + ), + expected=errors.ValidationError(name='name_server', error=u"is required"), + ), dict( desc='Create a zone with upper case name', @@ -1886,6 +1895,17 @@ class test_dns(Declarative): % zone1_permission) ), + + dict( + desc='Try to remove non-existent per-zone permission for zone %r' % zone1, + command=( + 'dnszone_remove_permission', [zone1], {} + ), + expected=errors.NotFound(reason=u'%s: permission not found' + % zone1_permission) + ), + + dict( desc='Try to create zone %r with relative nameserver' % zone3, command=( |