1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00
quay/test/integration/test_nginx.py
Kenny Lee Sin Cheong 5f63b3a7bb
chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code

* isort imports

* migration: check for table existence before drop
2023-08-25 12:17:24 -04:00

20 lines
456 B
Python

import pytest
import requests
host = "http://localhost:8080"
@pytest.mark.parametrize(
"path, status",
[
("/repository/", 200),
("/repository/projectquay/clair-jwt", 200),
("/organization/projectquay/", 200),
("/user/user1/?tab=settings", 200),
("/search?q=", 200),
],
)
def test_nginx_ok(path, status):
r = requests.head(f"{host}{path}", allow_redirects=False)
assert r.status_code == status