def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' # Turn ON warning for this test! Config.WARN_NO_MESSAGE_AUTHENTICATOR = True Config.ALLOW_NO_AUTHENTICATOR = False # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) log.msg('Got IP: %s:%s' % (self.myIP, type(self.myIP))) return
def setUp(self): """Start the reactor so we don't have to do it in the nodes.""" # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = False Config.ALLOW_NO_AUTHENTICATOR = True # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP(None, None) log.msg("Got IP: %s:%s" % (self.myIP, type(self.myIP))) self.timeout = 600 # How many seconds to try before erroring out
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' global numNodes # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) self.allNodes = [] self.timeout = (timeLimit + 3) * 60 # How many seconds to try before erroring out self.connectedNodeList = [] # How many are currently connected? self.msgTracker = dict() # Stores tuples (expectedNumMessages, msgObserver) self.testCounter = -1
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' #print("Setting up...") # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = False Config.ALLOW_NO_AUTHENTICATOR = True # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) self.timeout = 30 # How many seconds to try before erroring out
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = True Config.ALLOW_NO_AUTHENTICATOR = False self.myIP = NetworkUtils.getNonLoopbackIP (None, None) log.msg('Got IP: %s:%s' % (self.myIP, type(self.myIP))) # Create Bootstrap log.msg("Creating Boot Strap Node") self.BSport = 12345 self.bootstrapNodeLocation = NodeLocation(None, self.myIP, self.BSport) self.enclaveStr = 'localhost' self.allNodes = []
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' global numNodes # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = False Config.ALLOW_NO_AUTHENTICATOR = True #log.startLogging(open('parallelStressTest.log', 'w')) # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) self.allNodes = [] self.timeout = (numNodes * 5) + numMessages # How many seconds to try before erroring out self.connectedNodeList = [] # How many are currently connected? self.testCounter = -1
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = False Config.ALLOW_NO_AUTHENTICATOR = True # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) log.msg('Got IP: %s:%s' % (self.myIP, type(self.myIP))) # Set the timeout relative to total messages we're going to send. self.timeout = max(60,(numNodes * numMessages * numNodes) / 3) # Seconds d = self.buildNetwork() return d
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' global numNodes # Turn off warning Config.WARN_NO_MESSAGE_AUTHENTICATOR = False Config.ALLOW_NO_AUTHENTICATOR = True log.msg("Chord node from: %s" % gmu.chord.__file__) #log.startLogging(open('SerialFloodingTest.log', 'w')) #print("Setting up...") # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) self.allObservers = [] self.allNodes = [] self.timeout = (numNodes * 5) + (numMessages* numNodes) # How many seconds to try before erroring out self.connectedNodeList = [] # How many are currently connected? self.testCounter = -1
def setUp(self): '''Start the reactor so we don't have to do it in the nodes.''' # This is the IP of the node. Note: This MUST be # an external ID or the code won't work! self.myIP = NetworkUtils.getNonLoopbackIP (None, None) log.msg('Got IP: %s:%s' % (self.myIP, type(self.myIP)))