traffic replay test: Populate total_converations and instance_id
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 18 Jul 2019 03:29:26 +0000 (15:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jul 2019 02:24:27 +0000 (02:24 +0000)
Ensure that the total_conversations and instance_id attributes are
assigned a value in the replay contexts passed to test cases.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/emulate/traffic_packet.py

index 56b126759b24f8b6c79aa0832202a3b41b4c9efb..6533c679ea4e28c2f6d4493105e6fe32bca4ff8d 100644 (file)
@@ -55,7 +55,9 @@ class TrafficEmulatorPacketTests(samba.tests.TestCase):
                                              creds=self.credentials,
                                              tempdir=self.tempdir,
                                              ou=traffic.ou_name(self.ldb, 1),
-                                             domain_sid=self.domain_sid)
+                                             domain_sid=self.domain_sid,
+                                             total_conversations=3,
+                                             instance_id=1)
 
         self.conversation = traffic.Conversation()
         self.conversation.conversation_id = 1