summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-19 22:22:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:50 -0500
commitfa8c1abcc833953d69f732d3577d6492148121a7 (patch)
treee3f4ec6fb0a0bf180be793bb233949f0586611da /source4/scripting/swig/torture
parent6feaf61b61d8f76faeab176af79e1d6e6bea419f (diff)
downloadsamba-fa8c1abcc833953d69f732d3577d6492148121a7.tar.gz
samba-fa8c1abcc833953d69f732d3577d6492148121a7.tar.bz2
samba-fa8c1abcc833953d69f732d3577d6492148121a7.zip
r2421: Fix test for lookupdomain for a non-existent domain.
Export NTSTATUS exception from wrapper module so it can be used by scripts. (This used to be commit 57edfd605bffcf8a0feb5ccc5ec69cf5f35b677b)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/samr.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/scripting/swig/torture/samr.py b/source4/scripting/swig/torture/samr.py
index 00e4db1958..1f3b60eed4 100755
--- a/source4/scripting/swig/torture/samr.py
+++ b/source4/scripting/swig/torture/samr.py
@@ -90,7 +90,13 @@ def test_LookupDomain(pipe, handle, domain):
result = dcerpc.samr_LookupDomain(pipe, r)
- print result
+ r['domain']['name'] = 'xxNODOMAINxx'
+
+ try:
+ result = dcerpc.samr_LookupDomain(pipe, r)
+ except dcerpc.NTSTATUS, arg:
+ if arg[0] != 0xc00000df:
+ raise dcerpc.NTSTATUS(arg)
def test_EnumDomains(pipe, handle):