Exemple #1
0
 def testDuplicateOneToOneToMaster(self):
     '''
     One slave sends messages to one master with packet duplication
     '''
     console.terse("{0}\n".format(self.testDuplicateOneToOneToMaster.__doc__))
     self.assertTrue(netem.duplicate(percent=50, correlation=25))
     self.assertEqual(netem.check(), 1)
     self.messagingMultiPeers(masterCount=1,
                              minionCount=1,
                              msgSize=testing.MSG_SIZE_MED,
                              msgCount=testing.MSG_COUNT_MED,
                              duration=100.0,
                              direction=testing.DIR_TO_MASTER)
Exemple #2
0
 def testDuplicateManyToManyBidirectional(self):
     '''
     Bidirectional messaging between many masters and many slaves with packet duplication
     '''
     console.terse("{0}\n".format(self.testDuplicateManyToManyBidirectional.__doc__))
     self.assertTrue(netem.duplicate(percent=50, correlation=25))
     self.assertEqual(netem.check(), 1)
     self.messagingMultiPeers(masterCount=testing.MULTI_MASTER_COUNT,
                              minionCount=testing.MULTI_MINION_COUNT,
                              msgSize=testing.MSG_SIZE_MED,
                              msgCount=testing.MSG_COUNT_MED,
                              duration=100.0,
                              direction=testing.DIR_BIDIRECTIONAL)