summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-28 21:44:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:29 -0500
commit096d2d68de721774a4c0493863ba47cd240ff35e (patch)
tree61a743cb37bf8833d21caa8067ca0672b6e54cfa
parent16ed45d627f4c9169ec919875b24f8459575467b (diff)
downloadsamba-096d2d68de721774a4c0493863ba47cd240ff35e.tar.gz
samba-096d2d68de721774a4c0493863ba47cd240ff35e.tar.bz2
samba-096d2d68de721774a4c0493863ba47cd240ff35e.zip
r2739: Start of torture test for winreg wrappers.
(This used to be commit cf9b984b8457843d2b6bb1c4ac90d52c9b802d89)
-rwxr-xr-xsource4/scripting/swig/torture/winreg.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/scripting/swig/torture/winreg.py b/source4/scripting/swig/torture/winreg.py
new file mode 100755
index 0000000000..4f3b592065
--- /dev/null
+++ b/source4/scripting/swig/torture/winreg.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import dcerpc
+
+def test_OpenHKLM(pipe):
+
+ r = {}
+ r['unknown'] = {}
+ r['unknown']['unknown0'] = 0x84e0
+ r['unknown']['unknown1'] = 0
+ r['access_required'] = 0x02000000
+
+ dcerpc.winreg_OpenHKLM(pipe, r)
+
+def runtests(binding, domain, username, password):
+
+ print 'Testing WINREG pipe'
+
+ pipe = dcerpc.pipe_connect(binding,
+ dcerpc.DCERPC_WINREG_UUID, dcerpc.DCERPC_WINREG_VERSION,
+ domain, username, password)
+
+ test_OpenHKLM(pipe)