userver: samples/production_service/tests/test_production.py
Loading...
Searching...
No Matches
samples/production_service/tests/test_production.py
1async def test_monitor(monitor_client):
2 response = await monitor_client.get('/service/log-level/')
3 assert response.status == 200
4
5
6async def test_metrics_smoke(monitor_client):
7 metrics = await monitor_client.metrics()
8 assert len(metrics) > 1
9
10
11# /// [metrics partial portability]
12async def test_partial_metrics_portability(service_client):
13 warnings = await service_client.metrics_portability()
14 warnings.pop('label_name_mismatch', None)
15 assert not warnings, warnings
16 # /// [metrics partial portability]