laforge submitted this change.

View Change

Approvals: laforge: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified daniel: Looks good to me, but someone else must approve
pcrf: Validate Gx metrics

Change-Id: I4eab93f14d45f291c391d9519dc1462508f8a1eb
---
M pcrf/PCRF_Tests.ttcn
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/pcrf/PCRF_Tests.ttcn b/pcrf/PCRF_Tests.ttcn
index 4eb2b91..7979d75 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 {

To view, visit change 38029. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4eab93f14d45f291c391d9519dc1462508f8a1eb
Gerrit-Change-Number: 38029
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>