summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-04-17 10:26:20 +0200
committerMartin Kosek <mkosek@redhat.com>2012-04-17 14:05:07 +0200
commitc79ea41a80129e6b8f1c48fe7457eeaf11caf6c7 (patch)
tree82112a992c93d349bc9b95ebce01891a6205951e /tests
parent9c39f95f2174d8197102080314eab7a10cf8c86c (diff)
downloadfreeipa-c79ea41a80129e6b8f1c48fe7457eeaf11caf6c7.tar.gz
freeipa-c79ea41a80129e6b8f1c48fe7457eeaf11caf6c7.tar.xz
freeipa-c79ea41a80129e6b8f1c48fe7457eeaf11caf6c7.zip
Fix DNS and permissions unit tests
Amend unit tests to match the latest changes in DNS (tickets 2627, 2628) and hardened exception error message checks.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xmlrpc/test_dns_plugin.py4
-rw-r--r--tests/test_xmlrpc/test_permission_plugin.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xmlrpc/test_dns_plugin.py b/tests/test_xmlrpc/test_dns_plugin.py
index 661f87ad5..786c49615 100644
--- a/tests/test_xmlrpc/test_dns_plugin.py
+++ b/tests/test_xmlrpc/test_dns_plugin.py
@@ -616,7 +616,7 @@ class test_dns(Declarative):
'result': {
'objectclass': [u'top', u'idnsrecord', u'idnszone'],
'dn': unicode(dnszone1_dn),
- 'idnsname': [dnszone1],
+ 'idnsname': [u'@'],
'mxrecord': [u"0 %s" % dnszone1_mname],
'nsrecord': [dnszone1_mname],
},
@@ -721,7 +721,7 @@ class test_dns(Declarative):
'result': {
'objectclass': [u'top', u'idnsrecord', u'idnszone'],
'dn': unicode(dnszone1_dn),
- 'idnsname': [dnszone1],
+ 'idnsname': [u'@'],
'mxrecord': [u"0 %s" % dnszone1_mname],
'nsrecord': [dnszone1_mname],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64"],
diff --git a/tests/test_xmlrpc/test_permission_plugin.py b/tests/test_xmlrpc/test_permission_plugin.py
index 8ee682a58..1da9d795c 100644
--- a/tests/test_xmlrpc/test_permission_plugin.py
+++ b/tests/test_xmlrpc/test_permission_plugin.py
@@ -475,7 +475,7 @@ class test_permission(Declarative):
'permission_mod', [permission1], dict(rename=u'',
permissions=u'all',)
),
- expected=errors.ValidationError(name=u'rename',
+ expected=errors.ValidationError(name='rename',
error=u'New name can not be empty'),
),