fixeria submitted this change.

View Change

Approvals: laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified pespin: Looks good to me, approved
s1gw: add TC_pfcp_heartbeat

Change-Id: Iadb24c2c346a62aa8b59d24475e71f683fc3dfe6
---
M s1gw/S1GW_Tests.ttcn
M s1gw/expected-results.xml
2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/s1gw/S1GW_Tests.ttcn b/s1gw/S1GW_Tests.ttcn
index fd6a0ee..eb65ce5 100644
--- a/s1gw/S1GW_Tests.ttcn
+++ b/s1gw/S1GW_Tests.ttcn
@@ -324,12 +324,37 @@
vc_conn.done;
}

+function f_TC_pfcp_heartbeat(charstring id) runs on ConnHdlr {
+ var PDU_PFCP pfcp_pdu;
+
+ f_ConnHdlr_register_pfcp();
+
+ /* Tx Heartbeat Request */
+ PFCP.send(ts_PFCP_Heartbeat_Req(g_pfcp_recovery_timestamp));
+
+ /* Expect Heartbeat Response
+ * TODO: validate the indicated Recovery Time Stamp against
+ * the one that we received in the PFCP Association Setup. */
+ pfcp_pdu := f_ConnHdlr_pfcp_expect(tr_PFCP_Heartbeat_Resp);
+ setverdict(pass);
+}
+testcase TC_pfcp_heartbeat() runs on test_CT {
+ var ConnHdlrPars pars := valueof(t_ConnHdlrPars);
+ var ConnHdlr vc_conn;
+
+ f_init();
+
+ vc_conn := f_ConnHdlr_spawn(refers(f_TC_pfcp_heartbeat), pars);
+ vc_conn.done;
+}
+
control {
execute( TC_setup() );
execute( TC_setup_multi() );
execute( TC_conn_term_by_mme() );
execute( TC_conn_term_mme_unavail() );
execute( TC_e_rab_setup() );
+ execute( TC_pfcp_heartbeat() );
}

}
diff --git a/s1gw/expected-results.xml b/s1gw/expected-results.xml
index ed75300..87cd893 100644
--- a/s1gw/expected-results.xml
+++ b/s1gw/expected-results.xml
@@ -1,8 +1,9 @@
<?xml version="1.0"?>
-<testsuite name='S1GW_Tests' tests='5' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'>
+<testsuite name='S1GW_Tests' tests='6' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'>
<testcase classname='S1GW_Tests' name='TC_setup' time='MASKED'/>
<testcase classname='S1GW_Tests' name='TC_setup_multi' time='MASKED'/>
<testcase classname='S1GW_Tests' name='TC_conn_term_by_mme' time='MASKED'/>
<testcase classname='S1GW_Tests' name='TC_conn_term_mme_unavail' time='MASKED'/>
<testcase classname='S1GW_Tests' name='TC_e_rab_setup' time='MASKED'/>
+ <testcase classname='S1GW_Tests' name='TC_pfcp_heartbeat' time='MASKED'/>
</testsuite>

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Iadb24c2c346a62aa8b59d24475e71f683fc3dfe6
Gerrit-Change-Number: 38037
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>