summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-07-21 17:38:06 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-22 11:13:44 +0200
commitd71899696ab30c76a220a9fe444fc577a246a978 (patch)
tree445f0824c5a2a5a26d54c30fcb40eddb5d1cbc60
parent8eb26e9230e43eb2683778b8d667c6c7e632ec36 (diff)
downloadfreeipa-d71899696ab30c76a220a9fe444fc577a246a978.zip
freeipa-d71899696ab30c76a220a9fe444fc577a246a978.tar.gz
freeipa-d71899696ab30c76a220a9fe444fc577a246a978.tar.xz
tests: test_rpc: Create connection for the current thread
Both context.xmlclient and context.xmlclient_<id> need to be created in order to successfully call the Command.forward method. Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipatests/test_ipalib/test_rpc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipatests/test_ipalib/test_rpc.py b/ipatests/test_ipalib/test_rpc.py
index 74a7639..b613374 100644
--- a/ipatests/test_ipalib/test_rpc.py
+++ b/ipatests/test_ipalib/test_rpc.py
@@ -229,6 +229,9 @@ class test_xmlclient(PluginTester):
),
)
+
+ # Create connection for the current thread
+ setattr(context, o.id, Connection(conn, lambda: None))
context.xmlclient = Connection(conn, lambda: None)
# Test with a successful return value: