From 30a96d8cb8a7d812a6e1cc8d5f809b4ed20448c9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 20 Aug 2021 22:04:00 -0700 Subject: [PATCH] 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 --- testinfra/test_gitea.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testinfra/test_gitea.py b/testinfra/test_gitea.py index cd7b4b7428..1e893c76f6 100644 --- a/testinfra/test_gitea.py +++ b/testinfra/test_gitea.py @@ -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):