pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38029?usp=email )
Change subject: pcrf: Validate Gx metrics ......................................................................
pcrf: Validate Gx metrics
Change-Id: I4eab93f14d45f291c391d9519dc1462508f8a1eb --- M pcrf/PCRF_Tests.ttcn 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/29/38029/1
diff --git a/pcrf/PCRF_Tests.ttcn b/pcrf/PCRF_Tests.ttcn index 3cfe1bf..d7d2ed7 100644 --- a/pcrf/PCRF_Tests.ttcn +++ b/pcrf/PCRF_Tests.ttcn @@ -230,7 +230,15 @@
/* Test that PCRF can serve metrics over prometheus */ private function f_TC_ccr_cca() runs on Cli_Session_CT { + var PrometheusExpects expects := valueof({ + ts_PrometheusExpect("gx_rx_ccr", COUNTER, min := 1, max := 1), + ts_PrometheusExpect("gx_tx_cca", COUNTER, min := 1, max := 1) + }); + var PrometheusMetrics prom_snapshot := f_prometheus_snapshot(f_prometheus_keys_from_expect(expects)); + f_dia_ccr_cca(); + + f_prometheus_expect_from_snapshot(expects, wait_converge := true, snapshot := prom_snapshot); setverdict(pass); } testcase TC_ccr_cca() runs on MTC_CT {