summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-11-07 14:40:06 +1100
committerAmitay Isaacs <amitay@samba.org>2011-11-08 01:26:43 +0100
commit5104abd57322ad989244d25b0d9e7c4e367ba448 (patch)
tree5f5a12260ca98bf99e268b536053a05f7bd54262 /source4/scripting/python
parent8b33c48ba5fb73c2fd7a6849c690202d9863c0c2 (diff)
downloadsamba-5104abd57322ad989244d25b0d9e7c4e367ba448.tar.gz
samba-5104abd57322ad989244d25b0d9e7c4e367ba448.tar.bz2
samba-5104abd57322ad989244d25b0d9e7c4e367ba448.zip
s4-dnsserver: Test forward zones are not listed in reverse zone search
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 8 01:26:43 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/dcerpc/dnsserver.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/dnsserver.py b/source4/scripting/python/samba/tests/dcerpc/dnsserver.py
index 33c5cf7d5e..6834746f69 100644
--- a/source4/scripting/python/samba/tests/dcerpc/dnsserver.py
+++ b/source4/scripting/python/samba/tests/dcerpc/dnsserver.py
@@ -60,9 +60,10 @@ class DnsserverTests(RpcInterfaceTestCase):
self.assertEquals(dnsserver.DNSSRV_TYPEID_SERVER_INFO, typeid)
- def test_complexoepration2(self):
+ def test_complexoperation2(self):
client_version = dnsserver.DNS_CLIENT_VERSION_LONGHORN
- request_filter = dnsserver.DNS_ZONE_REQUEST_PRIMARY
+ request_filter = (dnsserver.DNS_ZONE_REQUEST_FORWARD |
+ dnsserver.DNS_ZONE_REQUEST_PRIMARY)
typeid, zones = self.conn.DnssrvComplexOperation2(client_version,
0,
self.server,
@@ -73,6 +74,18 @@ class DnsserverTests(RpcInterfaceTestCase):
self.assertEquals(dnsserver.DNSSRV_TYPEID_ZONE_LIST, typeid)
self.assertEquals(2, zones.dwZoneCount)
+ request_filter = (dnsserver.DNS_ZONE_REQUEST_REVERSE |
+ dnsserver.DNS_ZONE_REQUEST_PRIMARY)
+ typeid, zones = self.conn.DnssrvComplexOperation2(client_version,
+ 0,
+ self.server,
+ None,
+ 'EnumZones',
+ dnsserver.DNSSRV_TYPEID_DWORD,
+ request_filter)
+ self.assertEquals(dnsserver.DNSSRV_TYPEID_ZONE_LIST, typeid)
+ self.assertEquals(0, zones.dwZoneCount)
+
def test_enumrecords2(self):
client_version = dnsserver.DNS_CLIENT_VERSION_LONGHORN