Add Prometheus metrics and query endpoint
[ric-plt/a1.git] / tests / test_controller.py
index f243bf7..9a73ea8 100644 (file)
@@ -400,6 +400,14 @@ def test_healthcheck(client):
     assert res.status_code == 200
 
 
+def test_metrics(client):
+    """
+    test Prometheus metrics
+    """
+    res = client.get("/a1-p/metrics")
+    assert res.status_code == 200
+
+
 def teardown_module():
     """module teardown"""
     a1rmr.stop_rmr_thread()