Exemple #1
0
 def test_nginx_port_spec_2(self):
     self.assertEqual(_nginx_port_spec(self.test_host_forwarding_spec_2, '65001', '192.168.5.10'),
         {'proxied_port': '65001',
          'host_address': 'local.alex.com',
          'host_port': '8001',
          'type': 'http'})
Exemple #2
0
 def test_nginx_port_spec_3(self):
     self.assertEqual(_nginx_port_spec(self.test_host_forwarding_spec_3, '65001', '192.168.5.10'),
         {'proxied_port': '65001',
          'host_address': 'local.ssh.com',
          'host_port': '8000',
          'type': 'stream'})
Exemple #3
0
 def test_nginx_port_spec_1(self):
     self.assertEqual(_nginx_port_spec(self.test_host_forwarding_spec_1, '65000', '192.168.5.10'),
         {'proxied_port': '65000',
          'host_address': 'local.gc.com',
          'host_port': '80'})