Merge "[testinfra] Add port into curl's --resolve arg."

This commit is contained in:
Zuul 2023-11-01 21:28:41 +00:00 committed by Gerrit Code Review
commit fef38e13aa

View File

@ -25,7 +25,7 @@ def test_apache(host):
def _run_cmd(host, port, scheme='https', url='', curl_opt=''):
hostname = host.backend.get_hostname()
return f'curl {curl_opt} --resolve {hostname}:127.0.0.1 {scheme}://{hostname}:{port}{url}'
return f'curl {curl_opt} --resolve {hostname}:{port}:127.0.0.1 {scheme}://{hostname}:{port}{url}'
def test_base_mirror(host):
# base mirror