From 096d2d68de721774a4c0493863ba47cd240ff35e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 28 Sep 2004 21:44:05 +0000 Subject: r2739: Start of torture test for winreg wrappers. (This used to be commit cf9b984b8457843d2b6bb1c4ac90d52c9b802d89) --- source4/scripting/swig/torture/winreg.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 source4/scripting/swig/torture/winreg.py 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) -- cgit