1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

pymessaging: Add support for irpc_add_name

This allows tests to be indirectly added for server_id_db_lookup()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12705
This commit is contained in:
Andrew Bartlett
2017-03-08 14:53:26 +13:00
parent a47a8e41bd
commit 3bd9e5f4ed
2 changed files with 29 additions and 1 deletions

View File

@@ -49,6 +49,10 @@ class MessagingTests(TestCase):
x = self.get_context()
self.assertTrue(isinstance(x.server_id, server_id))
def test_add_name(self):
x = self.get_context()
x.irpc_add_name("samba.messaging test")
def test_ping_speed(self):
server_ctx = self.get_context((0, 1))
def ping_callback(src, data):