def testNetworkRoute(self): self.create5NodeNetwork() #send message from node 0 to 2 http conf = ConnectionBundle(confdir=self.serverConfs[0],reload=True) client = ClientMessage() response = ProcessedResponse(client.pingServer(self.hostname,self.node2HttpsPort)) print response.pprint() #send message from node 0 to 4 https response = ProcessedResponse(client.pingServer(self.hostname,self.node4HttpsPort)) print response.pprint() #send message from node 0 to 4 http #this throws an exception since we should not route with http response = ProcessedResponse(client.pingServer(self.hostname,self.node4Port)) print response.pprint()
def testNetworkRoute(self): self.create5NodeNetwork() #send message from node 0 to 2 http conf = ConnectionBundle(confdir=self.serverConfs[0], reload=True) client = ClientMessage() response = ProcessedResponse( client.pingServer(self.hostname, self.node2HttpsPort)) print response.pprint() #send message from node 0 to 4 https response = ProcessedResponse( client.pingServer(self.hostname, self.node4HttpsPort)) print response.pprint() #send message from node 0 to 4 http #this throws an exception since we should not route with http response = ProcessedResponse( client.pingServer(self.hostname, self.node4Port)) print response.pprint()