mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): utilize PROMETHEUS_MULTIPROC_DIR in our own /metrics
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
1be4ac2fde
commit
dc397f6bd8
3 changed files with 34 additions and 3 deletions
|
@ -117,3 +117,10 @@ def test_get_successes():
|
|||
"""
|
||||
successes = get_successes(html)
|
||||
assert successes[0].text.strip() == "Test"
|
||||
|
||||
|
||||
def test_metrics(client: TestClient):
|
||||
with client as request:
|
||||
resp = request.get("/metrics")
|
||||
assert resp.status_code == int(HTTPStatus.OK)
|
||||
assert resp.headers.get("Content-Type").startswith("text/plain")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue