summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_webproxy.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-10 20:54:55 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-10 20:54:55 +0100
commit1c49c8fbe993a078f204ebcbfc73a8a4c4d7c519 (patch)
tree84ecb67bec1f4b8061e97c20f0e6a4434cc01626 /smoketest/scripts/cli/test_service_webproxy.py
parentdf82e621e3daa3e545a5258418134303a3dd2f89 (diff)
downloadvyos-1x-1c49c8fbe993a078f204ebcbfc73a8a4c4d7c519.tar.gz
vyos-1x-1c49c8fbe993a078f204ebcbfc73a8a4c4d7c519.zip
smoketest: webproxy: prepare for vyos-1x rewrite
Diffstat (limited to 'smoketest/scripts/cli/test_service_webproxy.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_webproxy.py9
1 files changed, 8 insertions, 1 deletions
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)