summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-14 05:16:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-14 19:53:06 +0100
commit3b16c532f21202696d54ef87f8fa74d066812898 (patch)
treeefe40b4053cc286332387545ccb4ef8a1d42802f /source4/scripting/python
parentda72bff5b72658c6cfb1980ac97475ebbc21b6f5 (diff)
downloadsamba-3b16c532f21202696d54ef87f8fa74d066812898.tar.gz
samba-3b16c532f21202696d54ef87f8fa74d066812898.tar.bz2
samba-3b16c532f21202696d54ef87f8fa74d066812898.zip
pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC.
(This used to be commit 4c87af95310e4aaee3f2e2da02d0ea70ed1ec25b)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/dcerpc/rpcecho.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
index cedd0cc2fe..52a4f49bb4 100644
--- a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
+++ b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
@@ -18,22 +18,25 @@
#
import echo
+from param import LoadParm
import unittest
class RpcEchoTests(unittest.TestCase):
def setUp(self):
- self.conn = echo.rpcecho("ncalrpc:")
+ lp_ctx = LoadParm()
+ lp_ctx.load("st/client/client.conf")
+ self.conn = echo.rpcecho("ncalrpc:", lp_ctx)
def test_addone(self):
- self.assertEquals(2, conn.AddOne(1))
+ self.assertEquals(2, self.conn.AddOne(1))
def test_echodata(self):
- self.assertEquals("bla", conn.EchoData(3, "bla"))
+ self.assertEquals("bla", self.conn.EchoData(3, "bla"))
def test_call(self):
- self.assertEquals("foobar", conn.TestCall("foobar"))
+ self.assertEquals("foobar", self.conn.TestCall("foobar"))
def test_surrounding(self):
somearray = [1,2,3,4]
- (y,) = conn.TestSurrounding(echo.Surrounding(4, somearray))
+ (y,) = self.conn.TestSurrounding(echo.Surrounding(4, somearray))
self.assertEquals(8 * [0], y.surrounding)