aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn_tests
AgeCommit message (Collapse)AuthorFilesLines
2022-06-07DIAMETER: Introduce and rework some AVP templatesPau Espin Pedrol1-3/+3
All the AVP ecosystem in DIAMETER is quite a mess. There's AVPs defined in several different specs, sometimes even with the same name and different AVP code and vendor. Hence, as we add more templates it becomes important to start using the prefix in order to differentiate where they come from. Change-Id: Iec7c51dae136629d6b754de4dd798e988ac51f6b
2022-05-25ggsn: test Gy Volume-Quote-Threshold featurePau Espin Pedrol1-6/+67
Change-Id: If10171589e915db8e78278d2d802e38c66b37687
2022-05-25ggsn/pgw: Fix Gy CCR Reporting-Reason expectanciesPau Espin Pedrol1-1/+2
The Reporting-Reason can be in different places depending on its values. In the case of TERMINATION, we expect it to be FINAL so we know its location. Change-Id: Id33b9bb2f7b469e03a0761dc8807770cfdf77fcc
2022-05-23ggsn: Validate charging reported valuesPau Espin Pedrol1-8/+12
Change-Id: I497309bb0b30c61bdb00e0c08f18294ecd4dd485
2022-05-20cosmetic: ggsn: document and clean up section in GT_CTPau Espin Pedrol1-1/+3
Change-Id: I8bafb546d5d8b819cb0962b50049005ff2b85cb4
2022-05-19ggsn: TC_act_deact_retrans_duplicate: Fix case where initial seq_nr is 65535Pau Espin Pedrol1-1/+5
Change-Id: I2a7a399cf962311aaf7270260cb2e4e00e5a676a
2022-05-19ggsn: Fix seq_nr overflowPau Espin Pedrol1-2/+2
As seen running a test: GTP_Templates.ttcn:87 Dynamic test case error: The first argument of function int2oct(), which is 65536, does not fit in 2 octets. Change-Id: Icbaf42879bade6f5b4e39144ec123bc1b3f893f8
2022-05-19ggsn: Improve checks around Gy messagesPau Espin Pedrol1-18/+183
Change-Id: I702796f2f941b78da904faa2ffdba4185333bc0d
2022-05-18ggsn: Properly encode MISDN IE in GTPPau Espin Pedrol3-46/+49
ISDN-AddressString contains an initial byte at the start. We didn't care so far because we were not yet checking the content of msisdn, so the usual first '12'O byte was being considered as a header. Let's store it in GTP format as before, but let's pass it as a charstring when initializing the PdpContext, so that the human-style is visible in the test for easy visualization/comparison (It will be verified in a follow-up patch in Gy Diameter interface). Change-Id: Ie1b65707d4b08f2201572e1fa44a1f9f985eb096
2022-05-16ggsn: Append MS TimeZone IE to CreatePDPCtxReqPau Espin Pedrol1-5/+9
TS 29.060 states that it shall be included for primary PDP context activation if the information is available, so let's add it by default. Change-Id: I8c7e491a07cadfe09403504a82d34e412673a531
2022-05-13ggsn: Append IMEISV IE to CreatePdpCtxReqPau Espin Pedrol1-5/+12
Change-Id: I00975328e94afd116e59c88fd96c5b0154810a1e
2022-05-13ggsn: Append ChargingCharacteristics IE to CreatePdpCtxReqPau Espin Pedrol1-5/+8
This IE is conditionally added if the HLR provides it to the SGSN. Let's add it by default so that we test code paths where GGSN parses it. Related: SYS#5925 Change-Id: Ia0f74041d2107afeaa36b94e33474370b7b07c0e
2022-05-04ggsn: Use larger MSISDN numberPau Espin Pedrol1-1/+1
Change-Id: I8a1eeb48efdddaa4f5466cdbe72545523ce31cb8
2022-04-20ggsn: Fix TC_addr_pool_exhaustion not answering Gy CCR terminationPau Espin Pedrol1-0/+1
Change-Id: If126840001b1e10d3dee86d678e624a0584337e8
2022-04-11ggsn: Initial testing of open5gs Gy interfacePau Espin Pedrol1-10/+128
Related: SYS#5276 Change-Id: I10027d4f8adc6b47ce97b90514d1f13e9aa3d40d
2022-03-14lib/DIAMETER: Allow sending CEA with AuthAppIdPau Espin Pedrol1-0/+1
The new message is to be used by Gy interface emulation, which according to RFC4006 uses AppId 4 "Credit Control Application". The application is apparently not 3GPP vendor specific. Change-Id: I0e33673d65140aad34d2efcae3c7f49154ceb99f
2022-03-09ggsn: Rename diameter generic ports to GxPau Espin Pedrol1-19/+19
We'll start emulating other Diameter-based interfaces soon (Gy), so let's rename existing stuff which is Gx specific. The DIAMETER_Emulation only supports handling 1 application-id per component, and that's fine anyway since the OCS is in general expected to run in a different conn/node from PCRF. Change-Id: I1eb03d907b46c4bb24491f390ef468e831190e08
2022-03-09ggsn_tests: Wait for retrans queues to drain after each testPau Espin Pedrol1-3/+50
Otherwise a new test may reuse the same GTP seqnum, and if it's still in the gtp retransmit resp queue of the GGSN, it may be identified as a duplicate retransmittion of a previous message (previous test) and send back the previous response instead of processing the request. Related: OS#5485 Change-Id: I1b04691987b883f63c95c0322a477db4a43df2b1
2022-02-28ggsn: Introduce test TC_addr_pool_exhaustionPau Espin Pedrol1-0/+103
Related: OS#5469 Related: https://github.com/open5gs/open5gs/pull/1397 Change-Id: Iee24384b35f9277475b02cb59bf04cd6c9f23b1c
2022-02-28ggsn: Introduce test TC_lots_of_concurrent_pdp_ctxPau Espin Pedrol1-0/+115
Change-Id: Iab19963f8e869af8fe0c385abd0fd7bbd9221790
2022-02-24ggsn: Support rx cause 'New PDP type due to network preference'Pau Espin Pedrol1-34/+75
Related: OS#5449 Change-Id: Iace6a4bd0c2372601dc43108ec4eb78602dbcf30
2022-02-21ggsn: TC_act_deact_retrans_duplicate: expect no diameter upon retransPau Espin Pedrol1-4/+4
Change-Id: Ic579832bcaebfb22eb11156060c4385e41a5685a
2022-02-21ggsn: Add timeout to TC_pdp_act_restart_ctr_echoPau Espin Pedrol1-12/+29
Change-Id: Id9d71504b2da1438239934bfe21934d365b6e333
2022-02-17ggsn_tests: Early exit and improve logging on some setverdict fail casesPau Espin Pedrol1-13/+22
Change-Id: I25b84419b2278ce883b0dbc526ab7ffe30b17d0c
2022-02-16ggsn: Introduce test TC_pdp4_act_update_teid/teicPau Espin Pedrol1-1/+93
This test validates that changing the local TEID through UpdatePDPContext is correctly followed by the GGSN. Change-Id: Ic6af25866bf7efc2cabf029e49abaf15d5857592
2022-02-16ggsn: Configure GTP_CodecPort to decode proper UpdatePDPContextRequest/ResponsePau Espin Pedrol1-0/+1
From GTPC_Types.ttcn: """ // determines SUT, needed for decoding updatePDPContextRequest // and updatePDPContextResponse messages type enumerated SystemUnderTest{SGSN(0),GGSN(1),CGW(2),MME(3)}; """ Otherwise decoded UpdatePDPContextResponse is decoded taking choise UpdatePDPContextResponseSGSN. Change-Id: I52a27222d0e37ed2170972af3fd0e07da49a8c61
2022-02-15ggsn: Rework tests validating wrong ipv6 saddr on IPv4v6 APNsPau Espin Pedrol1-3/+25
The existing test TC_pdp46_act_deact_gtpu_access_wrong_global_saddr_ipv6 was wrong, because the global address was being finally encoded as a link local address by f_gen_icmpv6_router_solicitation(). Let's rewrite the test and add a new one for source link local addresses simlar to the ones used to test IPv6-only APNs. Change-Id: I3d0790104abea7acb4fa5e33109fe93cc51d94ea
2022-02-15ggsn: Support IPv4v6 PDP contexts in helper icmpv6 functionsPau Espin Pedrol1-2/+15
Change-Id: I564d51e02ea4b3cb5fedb79dfc1903c04619bd61
2022-02-11ggsn: Split gtpu_access tests into several separated testsPau Espin Pedrol1-10/+103
Those tests validated several different scenarios, let's better handle them separately one at a time, it makes it easier to understand the behavior of the SUT and see what needs to be fixed. Change-Id: I39342fcf2366030ce743dd4b4773f0fff5d61b9f
2022-02-11ggsn: Test GTP-U Echo Request/ResponsePau Espin Pedrol1-0/+13
Change-Id: Id92180be948ee3f5246c7befec666698a1b074f3
2022-02-09GGSN_Tests: fix DTE due to passing out-of-bound values to int2oct()Vadim Yanitskiy1-2/+2
This patch fixes the following DTE happening sporadically: 04:09:29.373271 mtc GGSN_Tests.ttcn:1478 Dynamic test case error: The first argument of function int2oct(), which is 256, does not fit in 1 octet. Change-Id: I517b8e5d5872c36f7c759433a1cde338c90f16da
2022-02-08ggsn: Expect no linklocal-addr forwarding when testing open5gsPau Espin Pedrol1-1/+5
It's not really clear whether GTP should really be forwarding packets with link-local address outside the tunnel. In theory the link-local address should be used to communicate with the GGSN in order to get the global link address, that's it. Running against open5gs it can be observed that they are not forwarded, while osmo-ggsn forwards them correctly. Since it seems more like an implementation dependent detail, let's accept any and adapt expectancies depending on what are we testing, this way it ends up documented the current situation in case it ever changes in the future. Change-Id: Ieafd24c059b9341c702311c78caad3312db5f1f3
2022-02-05ggsn: Set up diameter for open5gsPau Espin Pedrol3-1/+84
Change-Id: Iedadb98be2a2e851b75e4e67c22bca7047191fec
2022-02-03ggsn: Add module parameter to run tests against open5gsPau Espin Pedrol1-3/+12
Change-Id: I4ebb3ed73f0f9a20c14d73891ba8b8051f823ab8
2022-02-02ggsn: Submit User Location Information in CreatePDPContextReqPau Espin Pedrol1-3/+12
According to TS 29.060, sec 7.3.1 Create PDP Context Request: """ The SGSN shall include the User Location Information IE in the PDP Context Activation procedure. The SGSN shall include the CGI or SAI in the "Geographic Location" field of the User Location Information IE depending on whether the MS is in a cell or a service area respectively. """ Change-Id: Iaea95e5779d4f878023ce3f160ac69f092452056
2022-02-02ggsn: Submit RATType in CreatePDPContextReqPau Espin Pedrol1-4/+6
According to TS 29.060, sec 7.3.1 Create PDP Context Request: "The SGSN shall include the RAT Type IE during Primary PDP Context Activation procedure." Change-Id: Ibc57798e50ccd08ef6126f75f7c8134e56d2778a
2021-10-13regen_makefile.sh: set executable name explicitlyOliver Smith1-1/+3
Set the executable name in each regen_makefile.sh explicitly with -e, instead of having it set indirectly from the first .ttcn file. Make it consistent by placing the name on top of each of these files. Fix for warning: ttcn3_makefilegen: warning: File `BSC_Tests.ttcn' was given more than once for the Makefile. Related: OS#5252 Change-Id: I5ed03f8f3ed905483620dc7bae33b617bbb8507f
2021-10-12regen_makefile.sh: files/flags in separate linesOliver Smith1-1/+20
Make all regen_makefile.sh more readable and diff friendly by moving each entry in FILES and CPPFLAGS_TTCN3 into separate lines. Order entries alphabetically. Related: OS#5252 Change-Id: I6b6866eb9f6ec6232e4ae434517457a4c8c1c050
2021-05-18ggsn: Fix build broken since recent commitPau Espin Pedrol1-1/+1
Fixes: 8c74cbbf5a7534f6aa2d28a30a4b6bff7fe8067b Change-Id: Id6238a3b79a4439ab3b17909c7b1c65028efbec3
2021-05-17sgsn: Introduce test TC_rim_eutran_to_geranPau Espin Pedrol1-1/+9
GTP_Templates.ttcn new templates use BssgpCellId, hence it depends on Osmocom_Gb_Types.ttcn. Related: SYS#5314 Change-Id: I9dcf6ee2dc55bc6aba178eca30080233254f025e
2021-04-01ggsn: Fix TC_pdp4_act_deact_with_single_dns()Harald Welte1-0/+1
In TC_pdp4_act_deact_with_single_dns we activate, deactivate and then re-activate a PDP context. Hoewver, we re-use the same variable and don't reset the state in between. This results in the second PDP CTX activation to include an end-user-address (static IP allocation), which OsmoGGSN doesn't implement. Before osmo-ggsn Change-Id Iac8868438655fe4e5e07d167d7dbd6273dbb7678, the test passed as osmo-ggsn simply ignored the requested static address. After that change, we reject static addresses and hence the test starts to fail. Change-Id: I1b1869bc2cee39c8fddd8fa63f48bdaa6a65e462 Related: OS#5097
2020-03-03ggsn: Terminate immediately on pipong altstep failurePau Espin Pedrol1-2/+7
Change-Id: I1ae66afc562c6bf968b0b3bfa9a254fac0bd7404
2020-01-05ggsn: Drop unneeded m_ggsn_supports_echo_intervalPau Espin Pedrol1-13/+2
Latest osmo-ggsn release is 1.5.0, so this param is not needed at all. Change-Id: Ie1c3cde2a01e8ea49aadcb1f7384995cb68039cb
2019-11-15Update README.md of several TTCN3 test suitesPau Espin Pedrol1-0/+1
Some stuff was wrong and some was missing after new features being implemented in tests over time. Change-Id: I7a279592a68ffc76408a8e728e76151534265cc0
2019-09-03ggsn: Delete previously activated pdp ctx in *_interact()Pau Espin Pedrol1-0/+3
This change fixes some GGSN_Tests failing lately since osmo-ggsn correctly sends DeleteCtxReq for dangling pdp ctx upon increased Recovery counter received, and tests are not expecting that (because they don't expectect dangling pdp ctx from previous tests). Change-Id: I232298e2bfd8bfc99d82cbf5803d11db7eb1786a
2019-08-23ggsn: Introduce test TC_pdp_act2_recoveryPau Espin Pedrol2-42/+111
Some code is moved out of f_pdp_ctx_act() into f_handle_create_req() in order to re-use it in the test. Related: OS#4165 Change-Id: I48c1bc9287ce8b820e5ea672dffbc5a8503f16d7
2019-08-23ggsn: Introduce test TC_pdp_act_restart_ctr_echoPau Espin Pedrol2-5/+86
VTY functionalities to enable and disable echo requests in osmo-ggsn are added too as part of the test. Depends: osmo-ggsn.git Id2c84165dc59dff495106758146a701ca488834f Related: OS#4165 Change-Id: Ia37e48e7ff9ad063f9eabf447f8a6a0a3fc380d9
2019-08-21ggsn: Introduce test TC_pdp46_act_deact_apn4Pau Espin Pedrol2-2/+26
Related osmo-ggsn.git libgtp fix: I6c6215a4ce478afabc78ffaf5ffb0cf829e41226 Related: OS#4154 Change-Id: Ia1893e0c181307ac1ceb07ee5f496507f7a603c8
2019-08-21ggsn: Update test xfail->pass in expected-results.xmlPau Espin Pedrol1-6/+1
Commit below fixed the test but forgot to update this file. Fixes: 8e7a396656f8d32c44254de0c65f26c6a2c833f2 Change-Id: Ia5006c9258de9b442b32ae92ae75ef08670de7cf
2019-08-21ggsn: Add missing v4v6 tests in expected-results.xmlPau Espin Pedrol1-0/+7
Change-Id: I80598fad57b8e7172ac073ebe2b3445e5ab132f0