Merge "[testinfra] Add port into curl's --resolve arg."
This commit is contained in:
commit
fef38e13aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user