From 1c49c8fbe993a078f204ebcbfc73a8a4c4d7c519 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 10 Dec 2020 20:54:55 +0100 Subject: smoketest: webproxy: prepare for vyos-1x rewrite --- smoketest/scripts/cli/test_service_webproxy.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'smoketest/scripts/cli/test_service_webproxy.py') diff --git a/smoketest/scripts/cli/test_service_webproxy.py b/smoketest/scripts/cli/test_service_webproxy.py index 99fa51d57..c98d47c41 100755 --- a/smoketest/scripts/cli/test_service_webproxy.py +++ b/smoketest/scripts/cli/test_service_webproxy.py @@ -64,6 +64,14 @@ class TestServiceWebProxy(unittest.TestCase): self.assertIn(f'acl Safe_ports port {port}', config) self.assertIn(f'acl CONNECT method CONNECT', config) + self.assertIn(f'http_access allow manager localhost', config) + self.assertIn(f'http_access deny manager', config) + self.assertIn(f'http_access deny !Safe_ports', config) + self.assertIn(f'http_access deny CONNECT !SSL_ports', config) + self.assertIn(f'http_access allow localhost', config) + self.assertIn(f'http_access allow net', config) + self.assertIn(f'http_access deny all', config) + # Check for running process self.assertTrue(process_named_running(PROCESS_NAME)) @@ -97,7 +105,6 @@ class TestServiceWebProxy(unittest.TestCase): config = read_file(PROXY_CONF) self.assertIn(f'http_port {listen_ip}:{port} intercept', config) - self.assertIn(f'http_port 127.0.0.1:{port}', config) self.assertIn(f'append_domain {domain}', config) self.assertIn(f'cache_dir ufs /var/spool/squid {cache_size} 16 256', config) self.assertIn(f'access_log none', config) -- cgit v1.2.3