summaryrefslogtreecommitdiff
path: root/tests/unit/test_content_cache.py
diff options
context:
space:
mode:
authorHaw Loeung <[email protected]>2023-10-28 09:43:47 +1100
committerHaw Loeung <[email protected]>2023-10-28 09:43:47 +1100
commit9d2b13769d4594ec80f546160d038cbc9dfded87 (patch)
tree1831916ec9841b80d69d47166e02944c1590190e /tests/unit/test_content_cache.py
parentcb07f491f522cbfd5f34c99539e61c4aa8c441e3 (diff)
Allow adding HAProxy resolve options
Diffstat (limited to 'tests/unit/test_content_cache.py')
-rw-r--r--tests/unit/test_content_cache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_content_cache.py b/tests/unit/test_content_cache.py
index 789b411..f12286e 100644
--- a/tests/unit/test_content_cache.py
+++ b/tests/unit/test_content_cache.py
@@ -597,6 +597,8 @@ site1.local:
backends:
- _http._tcp.us.archive.ubuntu.com:80 srv 2
- _http._tcp.gb.archive.ubuntu.com:80 srv 2 backup
+ backend-options:
+ - resolve-prefer ipv4
'''
self.mock_config.return_value = {'haproxy_hard_stop_after': '15m', 'max_connections': 8192, 'sites': config}
with mock.patch('lib.haproxy.HAProxyConf.conf_file', new_callable=mock.PropertyMock) as mock_conf_file: