Switch robots.txt test on gitea to proxy port
Instead of having testinfra check that gitead serves robots.txt, let's have it check that apache serves or proxies it (since that's what the load balancer will see). Change-Id: I809fe9c5d5b43e73a216b61d72eea95546b9619c
This commit is contained in:
parent
ac1dd4eedd
commit
30a96d8cb8
@ -34,8 +34,8 @@ def test_ulimit(host):
|
||||
|
||||
def test_robots(host):
|
||||
cmd = host.run('curl --insecure '
|
||||
'--resolve gitea99.opendev.org:3000:127.0.0.1 '
|
||||
'https://gitea99.opendev.org:3000/robots.txt')
|
||||
'--resolve gitea99.opendev.org:3081:127.0.0.1 '
|
||||
'https://gitea99.opendev.org:3081/robots.txt')
|
||||
assert 'Disallow: /' in cmd.stdout
|
||||
|
||||
def test_matrix_server(host):
|
||||
|
Loading…
Reference in New Issue
Block a user