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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user