mirror of
https://github.com/quay/quay.git
synced 2025-04-18 10:44:06 +03:00
* chore: drop deprecated tables and remove unused code * isort imports * migration: check for table existence before drop
20 lines
456 B
Python
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
|