summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-06-17 17:26:13 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-20 16:46:03 +0200
commitee6e634c28b7261930c8cee556c8ebef9a01603e (patch)
tree30ede62c55f6dd638267a2b4b535bbd757fc0106 /ipatests
parent7cdc4178b0fb0972a7aed3e0604a835fc45ac7a8 (diff)
downloadfreeipa-ee6e634c28b7261930c8cee556c8ebef9a01603e.tar.gz
freeipa-ee6e634c28b7261930c8cee556c8ebef9a01603e.tar.xz
freeipa-ee6e634c28b7261930c8cee556c8ebef9a01603e.zip
DNSSEC: Test: DLV record
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_xmlrpc/test_dns_plugin.py36
1 files changed, 35 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py
index 404bee204..66af0efb8 100644
--- a/ipatests/test_xmlrpc/test_dns_plugin.py
+++ b/ipatests/test_xmlrpc/test_dns_plugin.py
@@ -120,6 +120,12 @@ dname = u'testdns-dname'
dname_dnsname = DNSName(dname)
dname_dn = DN(('idnsname',dname), zone1_dn)
+dlv = u'dlv'
+dlv_dnsname = DNSName(dlv)
+dlv_dn = DN(('idnsname', dlv), zone1_dn)
+
+dlvrec = u'60485 5 1 2BB183AF5F22588179A53B0A98631FAD1A292118'
+
wildcard_rec1 = u'*.test'
wildcard_rec1_dnsname = DNSName(wildcard_rec1)
wildcard_rec1_dn = DN(('idnsname',wildcard_rec1), zone1_dn)
@@ -1078,7 +1084,8 @@ class test_dns(Declarative):
dict(
desc='Delete record %r in zone %r' % (name1_renamed, zone1),
- command=('dnsrecord_del', [zone1, name1_renamed], {'del_all': True }),
+ command=('dnsrecord_del', [zone1, name1_renamed],
+ {'del_all': True}),
expected={
'value': [name1_renamed_dnsname],
'summary': u'Deleted record "%s"' % name1_renamed,
@@ -1088,6 +1095,33 @@ class test_dns(Declarative):
dict(
+ desc='Add DLV record to %r using dnsrecord_add' % (dlv),
+ command=('dnsrecord_add', [zone1, dlv], {'dlvrecord': dlvrec}),
+ expected={
+ 'value': dlv_dnsname,
+ 'summary': None,
+ 'result': {
+ 'objectclass': objectclasses.dnsrecord,
+ 'dn': dlv_dn,
+ 'idnsname': [dlv_dnsname],
+ 'dlvrecord': [dlvrec],
+ },
+ },
+ ),
+
+
+ dict(
+ desc='Delete record %r in zone %r' % (dlv, zone1),
+ command=('dnsrecord_del', [zone1, dlv], {'del_all': True}),
+ expected={
+ 'value': [dlv_dnsname],
+ 'summary': u'Deleted record "%s"' % dlv,
+ 'result': {'failed': []},
+ },
+ ),
+
+
+ dict(
desc='Try to create a reverse zone from invalid IP',
command=(
'dnszone_add', [], {