pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27854 )


Change subject: pgw: Add TC_gy_charging_cc_time
......................................................................

pgw: Add TC_gy_charging_cc_time

Change-Id: Ie4e567f62bbbdba276e6b3221111c8d9f82cde14
---
M pgw/PGW_Tests.ttcn
1 file changed, 24 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/54/27854/1

diff --git a/pgw/PGW_Tests.ttcn b/pgw/PGW_Tests.ttcn
index 02c28cc..0ce9f65 100644
--- a/pgw/PGW_Tests.ttcn
+++ b/pgw/PGW_Tests.ttcn
@@ -685,8 +685,32 @@
        vc_conn.done;
 }

+/* create a session, then execute a ping command on the user plane */
+private function f_TC_gy_charging_cc_time() runs on PGW_Session_CT {
+       var default d;

+       f_create_session();

+       /* We should receive an update even if no traffic is sent: */
+       as_DIA_Gy_CCR(UPDATE_REQUEST);
+
+       d := activate(as_DIA_Gy_CCR(UPDATE_REQUEST));
+       f_ping4(mp_ping_hostname);
+       /* Let the CCA reach the GGSN */
+       f_sleep(0.5);
+       deactivate(d);
+
+       f_delete_session(omit, g_teic, '10'O);
+       setverdict(pass);
+}
+testcase TC_gy_charging_cc_time() runs on PGW_Test_CT {
+       var PGW_Session_CT vc_conn;
+       var SessionPars pars := valueof(t_SessionPars('001010123456789'H, 
"tun23"));
+       pars.gy_validity_time := 3; /* Grant access for 3 seconds, needs to be 
re-validated afterwards */
+       f_init();
+       vc_conn := f_start_handler(refers(f_TC_gy_charging_cc_time), pars);
+       vc_conn.done;
+}

 control {
        execute( TC_tx_echo() );

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27854
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie4e567f62bbbdba276e6b3221111c8d9f82cde14
Gerrit-Change-Number: 27854
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to