Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I1edf739d6fd39478f662a28a7d9334ca51c270a3
|
|
Change-Id: Idacaf8343bed4a37878eacdf338c4d5eb46bf7a7
|
|
This function can now be called from anywhere to try and safely shutdown
a testcase. It is not optimal as we can't call "all component.stop" from
outside the mtc, but without any proper and orderly shutdown handling of
all our emulation components I believe this is the best we can do.
To use it:
import from Misc_Helpers all;
in your module and then call
Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
You can also pass the function a verdict and a message and it will take care
of calling setverdict, but beware of the following:
While setverdict would accept any number of arguments as log message
and convert them to a log string f_shutdown expects one charstring.
It's possible to use the log2str function to use the log arguments in
setverdict for f_shutdown, for example
setverdict(fail, "Template didn't match: ", tmpl_foo);
would become
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo));
Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267
|
|
Change-Id: Ie08fb0b5a94728640f65f56430a217b51aea3dde
|
|
Test the UMTS AKA resync procedure with USIMs.
MS -> SGSN: Attach Request
MS <- SGSN: Identity Request IMSI
MS -> SGSN: Identity Response IMSI
MS <- SGSN: Identity Request IMEI
MS -> SGSN: Identity Response IMEI
HLR<- SGSN: SAI Request
HLR-> SGSN: SAI Response
MS <- SGSN: Auth Request
MS -> SGSN: Auth Failure (with AUTS)
HLR<- SGSN: SAI Request (with AUTS & RAND)
HLR-> SGSN: SAI Response (new key material)
MS <- SGSN: Auth Request (new key material)
MS -> SGSN: Auth Response
MS <- SGSN: Attach Accept
MS -> SGSN: Attach Complete
Change-Id: I52a8dc45bb67d4ca9f3efade278d3308bb0da73d
|
|
Change-Id: I32c29e62ca317937db771f8fb1540bb1fe9da2ab
|
|
Testing the corner case of receiving an Attach Request
while not (yet) sent an Attach Accept.
MS -> SGSN: Attach Request IMSI
MS <- SGSN: Identity Request IMSI (optional)
MS -> SGSN: Identity Response IMSI (optional)
MS <- SGSN: Identity Request IMEI
MS -> SGSN: Attach Request (2nd)
MS <- SGSN: Identity Response IMEI
MS <- SGSN: Attach Accept
MS -> SGSN: Attach Complete
Change-Id: I0bac50dc5a72ba8f9010b05bcb98aa7ff0b81cf6
|
|
When stopping and starting BSSGP_ConnHdlr multiple times, there
are Port connecting problems. Using a single iteration of
BSSGP_ConnHldr.start() works around this problem.
Change-Id: I8e5ae832f3908a172b9beb6d936074b806e0c799
|
|
TC_attach_check_complete_resend tests if the SGSN sends out the SGSN
Attach Accept multiple times. If the MS disappear,
there is no need for a ATTACH REJECT.
Change-Id: I3fa5c100b8389e184acf1e71e2792e5474c22dec
|
|
Because of multiple BSSGP connections, the tests need more time to complete.
Change-Id: I12baf4b2425d0d862755d03d16127b18968e28f2
|
|
Cleans most of the sgsn state.
Depends on the SGSN commit I92096f3f6ea49e75676e30e9921d00210bac5382.
Change-Id: Idff3de6f1b8f5cb503edc5c6256ce2bf7ec7aaa2
|
|
MS <-> SGSN: Successful Attach
MS -> SGSN: Routing Area _a_ Update Request
MS <- SGSN: Routing Area _a_ Update Accept
MS -> SGSN: Routing Area _b_ Update Request
MS <- SGSN: Routing Area _b_ Update Accept
MS -> SGSN: Detach (PowerOff)
Change-Id: Ie636778628c216e315bd6f5bc11e0e5bd9c218a5
|
|
f_bssgp_client_llgmm_assign f_process_rau_accept
f_process_rau_accept can send the RAU Complete over the correct BSSGP
Change-Id: Ib9a65f0d09d3689911843a1b40e2a4114710e5b5
|
|
Create for every BSSGP a new NS instance.
Change-Id: I3448fe837eaa8efab65dccc32bacaaacd73a2f09
|
|
The LLC layer needs to be accessed by the SGSN tests
in order to do multi-BSSGP tests.
Otherwise the sgsn will see LLC frame with wrong sequence
numbers and drop them.
Change-Id: Ie9e9d7da0a78a96f4f431c9085b9e273a39535f1
|
|
Returns a RoutingAreaIdentificationV from GbInstance. This will be useful
when using multiple BSSGP and the g_pars.ra field is not the needed ra.
Change-Id: Ide96213ab2f210590b86deaf370486c8a0a78058
|
|
MS <-> SGSN: Successful Attach
MS -> SGSN: Routing Area Update Request
MS <- SGSN: Routing Area Update Accept
MS -> SGSN: Routing Area Update Request
MS <- SGSN: Routing Area Update Accept
MS -> SGSN: Detach (PowerOff)
Change-Id: Id76b4792c07816bcbe5e965f23c2b526df0923c3
|
|
Will be used by future RAU tests
Change-Id: I4064e013f73319f24bb893a9047c8b9eb7d6aac2
|
|
Allows to use different BSSGP connection within a single
test.
Change-Id: I01d7f264a0a52e248d6e754485c807266c0b14bf
|
|
Change-Id: Ibd7abba826a08b582361e9c255e9c44185e14067
|
|
The NS_Emulation has configuration values hardcoded or bound
to module parameters which prevents multiple instances.
Replace the module parameter based configuration with configuration
given when starting the NS_Emaulation.
Change-Id: I9128f9ad5c372779c38799269393137ba52576cd
|
|
When testing with multiple Routing Areas, multiple Gb
interface are required.
Change-Id: I7f56618110f04d99b1b43e69d89167e384b61a34
|
|
When introducing multiple BSSGP instances, this
tests has problem when shutting down the test.
Change-Id: I0cd1adf072f8ba40343e51e41f23a1de6a2bd62c
|
|
Pass the CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT parameter to
the TELNET port by default. This allows tests to make progress
into an error handling path if they are started while the osmo-*
program they want to connect on VTY is not running.
Observed with osmo-ggsn tests, where if the one test runs
into a VTY connection failure the subsequent test would get
stuck forever in a map() call on the VTY TELNET port.
Teach the function f_vty_wait_for_prompt() about connection
reports by the TELNET module. We may now receive an integer which
represents the socket file descriptor for the telnet connection.
This case was not handled by the previous change made in
commit cb111b21aba1d5881da1a1d3f19754cbd15b3779. As a result,
BSC tests started failing with "VTY Timeout for prompt" because
the alt-statement in f_vty_wait_for_prompt() would not progress
past the integer sitting on the VTY port's receive queue.
Change-Id: I56925f93af6c55e93f3f417099db135744da6a40
Related: OS#3149
|
|
With this patch, I see all ttcn3-bsc-tests failing with
"Verdict: fail reason: VTY Timeout for prompt"
This reverts commit cb111b21aba1d5881da1a1d3f19754cbd15b3779.
Change-Id: I215d7ab5eee75cf6d3afaac760af64356c943140
|
|
Pass the CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT parameter to
the TELNET port by default. This allows tests to make progress
into an error handling path if they are started while the osmo-*
program they want to connect on VTY is not running.
Observed with osmo-ggsn tests, where if the one test runs
into a VTY connection failure the subsequent test would get
stuck forever in a map() call on the VTY TELNET port.
Change-Id: I9acf7793d5d68aec6d087cff254a10d8b673dab1
Related: OS#3149
|
|
Call mtc.stop after setverdict(fail), add reasons to most failures and
fail with verdict error for internal errors.
Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
|
|
Change-Id: I40e877f4126e62a731b071ae1d6d855fed210433
|
|
It's not needed for the functionality/scenario of f_gtpu_xceive_mo. It
probably was left in when creating it from f_gtpu_xceive_mo.
Change-Id: Ide226f8501c4598e2bfaa5f1ea62c3ff20807ce4
|
|
Change-Id: Ic81b854967492194367b7ce8a667c29c777791bf
|
|
Change-Id: I9ec0863603692045b0d8da376e65080150066173
|
|
Expect to receive a TearDown Indicator.
Change-Id: I37dafb5e93ac06b3bd9cab2c06aa3735a8429f2f
|
|
Currently test doesn't fully work because it doesn't match the PDP CTX
DEL REQ correctly.
Change-Id: I1dcb250dba2079c14b857c0b89a02ac21d1c591f
|
|
According to
"""
If a GSN receives a Delete PDP context without a Teardown In
dicator or with a Teardown Indicator with value set to
"0" and only that PDP context is active for a PDN connection, then the
GSN shall ignore the message.
"""
Change-Id: Id5d4774d719685631e4b467dff833ae886c90145
|
|
Content grabbed from [1] and converted to markdown as it's more probable
to have it displayed correctly on popular git repo hosting platforms.
Syntax for embedded graphviz taken from [2].
[1] http://git.gnumonks.org/laforge-slides/plain/2018/osmodevcon2018-ttcn3_test_suites/osmodevcon2018-ttcn3_test_suites.adoc
[2] https://github.com/stlehmann/markdown-graphviz
Change-Id: I9aad03e605569e9613665a7585d60bf308bcb54f
|
|
MS -> SGSN: Attach Request IMSI
MS <- SGSN: Identity Request *
MS -> SGSN: Identity Response *
MS <- SGSN: Attach Complete 5x
Change-Id: I9bbbda01f3c41a2f8acf13042d6bcc86f18d74ce
|
|
The test expect a reject. Recv an attach accept should fail then.
Change-Id: I8a4ae6aaaa71dabb1d8a2ee7585e624b962a3500
|
|
Check acl policy closed.
VTY-> SGSN: policy close
MS -> SGSN: Attach Request
MS <- SGSN: Identity Request IMSI
MS -> SGSN: Identity Response IMSI
MS <- SGSN: Attach Reject
VTY-> SGSN: policy imsi-acl add IMSI
MS -> SGSN: Attach Request
MS <- SGSN: Identity Request IMSI
MS -> SGSN: Identity Response IMSI
MS <- SGSN: Identity Request IMEI
MS -> SGSN: Identity Response IMEI
MS <- SGSN: Attach Accept
Change-Id: I1832c339a9d54c0038433ad44e292031a8905e20
|
|
MS <-> SGSN: Attach
VTY -> SGSN: Check if MS is in subscriber cache
Change-Id: If19073ef4a5b1e2219bd5184ae30d55ffb71844a
|
|
Location Response
There shouldn't be any update location pending
Change-Id: I94b9307311a8095065212e1820cacc6cd2be0a3a
|
|
MS <-> SGSN: Attach
MS -> SGSN: Detach Req (Power off)
VTY -> SGSN: Check if MS is NOT in subscriber cache
Change-Id: I0956d54760f19ca556fa0d16ea4c5b96ac13f2fa
|
|
Ignores Identity Request IMSI.
MS -> SGSN: Attach Request TMSI (unknown)
MS <- SGSN: Identity Request IMEI (optional)
MS -> SGSN: Identity Response IMEI (optional)
MS <- SGSN: Identity Request IMSI
MS -x SGSN: no response
MS <- SGSN: re-send: Identity Request IMSI 4x
MS <- SGSN: Attach Reject
Change-Id: I4f41d59cfe6b0168b5e0874082fd700b56a7f0da
|
|
Ignores Identity Request IMEI.
MS -> SGSN: Attach Request IMSI
MS <- SGSN: Identity Request IMSI (optional)
MS -> SGSN: Identity Response IMSI (optional)
MS <- SGSN: Identity Request IMEI
MS -x SGSN: no response
MS <- SGSN: re-send: Identity Request IMEI 4x
MS <- SGSN: Attach Reject
Change-Id: Ie50c75e62e31e01c5b17969fb067664e44fd68a5
|
|
These tests failed on jenkins.
Change-Id: I56a62e70763b7c331fc528cd7e4064a5ec9f2a04
|
|
TC_hlr_location_cancel_request_unknown_subscriber_{withdraw,update}
Fixes: 6c47f294954f ("SGSN: add TC_hlr_location_cancel_request_unknown_subscriber_{withdraw,update}")
Change-Id: I5074dadf53ec75a9c709b28ff324e23fdcd13bfa
|
|
VERDICTOP
PARALLEL | VERDICTOP will log when the port is dying or when other
components will change to fail. This helped to find a timeout in the
SGSN tests where a function call message timed out.
Change-Id: I770ac964dc37e2752e7d35e493f707b091c739b0
|
|
Change-Id: Icc8bb648b3c79b2e29450ca38dd95bad1d2d09aa
|
|
MS <-> SGSN: GMM Attach
HLR -> SGSN: Cancel Location Request
HLR <- SGSN: Cancel Location Ack
Change-Id: I5d3a818eb0a4eb3b0d4bd7bd88874bd2ac6adb11
|
|
Cancel Location using an unknown IMSI.
HLR -> SGSN: Cancel Location Request
HLR <- SGSN: Cancel Location Error
Change-Id: Iad90c3cc25d72b9ab40e358fe60aa6f62163f146
|
|
MS <-> SGSN: GMM Attach
HLR -> SGSN: Cancel Location Request
HLR <- SGSN: Cancel Location Ack
MS <- SGSN: Detach Request
SGSN-> MS: Detach Complete
Change-Id: Id5d6b018a5a4389eefa8f5d950324aab91709f5a
|