Example #1
0
 def test_get_socat_console_url_tcp_with_address_conf(self):
     self.config(socat_address="10.0.0.1", group='console')
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://10.0.0.1:%s" % self.info['port'], url)
Example #2
0
 def test_get_socat_console_url_tcp6(self):
     self.config(my_ip='::1')
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://[::1]:%s" % self.info['port'], url)
Example #3
0
 def test_get_socat_console_url_tcp(self):
     self.config(my_ip="10.0.0.1")
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://10.0.0.1:%s" % self.info['port'], url)
Example #4
0
 def test_get_socat_console_url_tcp(self):
     self.config(my_ip="10.0.0.1")
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://10.0.0.1:%s" % self.info['port'], url)
Example #5
0
 def test_get_socat_console_url_tcp_with_address_conf(self):
     self.config(socat_address="10.0.0.1", group='console')
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://10.0.0.1:%s" % self.info['port'], url)
Example #6
0
 def test_get_socat_console_url_tcp6(self):
     self.config(my_ip='::1')
     url = console_utils.get_socat_console_url(self.info['port'])
     self.assertEqual("tcp://[::1]:%s" % self.info['port'], url)