aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/gtphub
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-02 15:44:34 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-03 11:47:16 +0100
commitc6d51f5fb477c9ebf0345edb088b86d70eb119a1 (patch)
tree6977c69a276af6c30cded7836b39ee4d6725eff7 /openbsc/tests/gtphub
parent996ec1d73150366fa105b7d42ba8003fb018fcf8 (diff)
gtphub: fix restart cleanup peer matching.
Adjust test expectations accordingly. Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/tests/gtphub')
-rw-r--r--openbsc/tests/gtphub/gtphub_test.c6
-rw-r--r--openbsc/tests/gtphub/gtphub_test.ok3
2 files changed, 6 insertions, 3 deletions
diff --git a/openbsc/tests/gtphub/gtphub_test.c b/openbsc/tests/gtphub/gtphub_test.c
index 0992d7972..d07096368 100644
--- a/openbsc/tests/gtphub/gtphub_test.c
+++ b/openbsc/tests/gtphub/gtphub_test.c
@@ -1320,7 +1320,7 @@ static void test_peer_restarted(void)
);
const char *gtp_req_to_ggsn =
MSG_PDP_CTX_REQ("0068",
- "6d32", /* mapped seq ("1234") */
+ "6d33", /* mapped seq ("1234") */
"23",
"42000121436587f9",
"00000006", /* mapped TEI Data I ("123") */
@@ -1340,7 +1340,7 @@ static void test_peer_restarted(void)
"192.168.42.23 (TEI C cba=5 / U abc=6)"
" <-> 192.168.43.34 / (uninitialized) (TEI C 0=0 / U 0=0)"
" @21955\n"
- "192.168.42.23 (TEI C 321=1 / U 123=2)"
+ "(uninitialized) (TEI C 321=1 / U 123=2)"
" <-> 192.168.43.34 (TEI C 765=3 / U 567=4)"
" @21945\n"
));
@@ -1348,7 +1348,7 @@ static void test_peer_restarted(void)
const char *gtp_resp_from_ggsn =
MSG_PDP_CTX_RSP("004e",
"00000005", /* destination TEI (sent in req above) */
- "6d32", /* mapped seq */
+ "6d33", /* mapped seq */
"01", /* restart */
"00000def", /* TEI U */
"00000fde", /* TEI C */
diff --git a/openbsc/tests/gtphub/gtphub_test.ok b/openbsc/tests/gtphub/gtphub_test.ok
index a95fe6d4a..be9e19f08 100644
--- a/openbsc/tests/gtphub/gtphub_test.ok
+++ b/openbsc/tests/gtphub/gtphub_test.ok
@@ -19,6 +19,9 @@ test_peer_restarted
returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
- __wrap_gtphub_resolve_ggsn_addr():
returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123
+Out-of-band gtphub_write(16):
+to 192.168.43.34 port 2123
+32 14 00 08 00 00 07 65 6d 32 00 00 13 ff 14 00
test_peer_restarted_reusing_tei
- __wrap_gtphub_resolve_ggsn_addr():
returning GGSN addr from imsi 240010123456789 ni internet: 192.168.43.34 port 2123