Skip to content
Unstable

Changes

Summary

  1. testenv: osmo-dev: add hint for gen_makefile fail (details)
  2. hnbgw: Support testenv (details)
  3. testenv: remove dead code for [testsuite] prepare= (details)
  4. testenv: add proper [testsuite] prepare= support (details)
  5. hnbgw: Split ConnHdlr component code to its own file (details)
  6. RAN_Emulation: Introduce field ranap_connect_ind_auto_res (details)
  7. hnbgw: Allow modifying RanOps during test startup (details)
  8. Convert RAN_Conn_Prim from enum to union (details)
  9. RAN_Emulation: Allow setting reason in primitive MSC_CONN_PRIM_DISC_REQ (details)
Commit 14d4a2805d6790aa410f6c5c1d7328c71bdaef84 by Oliver Smith
testenv: osmo-dev: add hint for gen_makefile fail

When gen_makefile.py from osmo-dev fails, it is likely that the osmo-dev
git clone is outdated, for example if a new file with configure options
was added to osmo-dev.git and is now being used by testenv. Display a
hint for pulling this repository to the user.

Change-Id: Ia9ed23fa910876252093054f5f389865632c7593
The file was modified_testenv/testenv/podman.py
The file was modified_testenv/testenv/osmo_dev.py
Commit c1c05554fddeb3502492b49f361a2dd4a67f3e04 by Oliver Smith
hnbgw: Support testenv

Change-Id: Id2bcc4e13881db01b8e4d9f1738355b8d779fa63
The file was addedhnbgw/HNBGW_Tests-with-pfcp.cfg
The file was modifiedhnbgw/osmo-hnbgw.cfg
The file was addedhnbgw/testenv_with-pfcp.cfg
The file was modified_testenv/testenv/osmo_dev.py
The file was modifiedhnbgw/osmo-hnbgw-with-pfcp.cfg
The file was addedhnbgw/testenv_generic.cfg
Commit c009d49e97b9302ccb411567fb23a9f3e760e40c by Oliver Smith
testenv: remove dead code for [testsuite] prepare=

Remove some WIP code that I intended to use for enabling the mongodb
repository before installing binary packages, to be able to dynamically
install mongodb from there. I solved it differently by just always
having mongodb in the podman image.

This was a dead code path because configs with prepare= in [testsuite]
are currently not valid, and therefore testenv refuses to use these
configs (see keys_valid_testsuite in testenv_cfg.py's verify()).

I have a different use case for running prepare= before running the
testsuite, to replace a module parameter in the testsuite's config. This
will be done in the next patch.

Change-Id: I9bed48612fad690f86017c298372dc6cea22b94b
The file was modified_testenv/testenv/testsuite.py
The file was modified_testenv/testenv.py
Commit c568521460426c78a7cc7f68de38af6dfe2c4921 by Oliver Smith
testenv: add proper [testsuite] prepare= support

Support using prepare= in the [testsuite] section to e.g. change module
parameters:

  [testsuite]
  prepare=sed -i 's/mp_my_parameter := false/mp_my_parameter := true/' Testsuite.cfg

Move the execution time of prepare and clean scripts in
testdir.prepare() after the testsuite config has been copied to the
testdir, so it can be modified by the prepare script.

Change-Id: Ia78a4eba061e5e070f156f75eae1dfa4cede1ee3
The file was modified_testenv/README.md
The file was modified_testenv/testenv/testdir.py
The file was modified_testenv/testenv/testenv_cfg.py
Commit 4fe47f78a000f7b7048f0c5b7883db881015bdbf by Pau Espin Pedrol
hnbgw: Split ConnHdlr component code to its own file

Similar to what we do in most of the testsuites, split Component generic
code from test specific code.

Change-Id: I3a58c27a7472eea2421a45c31ac0145eb57a1f7e
The file was addedhnbgw/ConnHdlr.ttcn
The file was modifiedhnbgw/HNBGW_Tests.ttcn
Commit 6ac0838dd48308f165343f32f3e9ae47848d121e by Pau Espin Pedrol
RAN_Emulation: Introduce field ranap_connect_ind_auto_res

This field allows skipping automatic response of the connect_ind, hence
allowing ConnHdlr to totally skip it, delay it, or generate a CREF by
means of sending RAN_Conn_Prim:MSC_CONN_PRIM_DISC_REQ to RAN_Emulation,
as per ITU Q.711 Figure 8.

Change-Id: I5a69990e3a0839dd3c25c7dc66e6bcf66123fbff
The file was modifiedsgsn/SGSN_Tests.ttcn
The file was modifiedhnbgw/HNBGW_Tests.ttcn
The file was modifiedlibrary/RAN_Emulation.ttcnpp
The file was modifiedmsc/BSC_ConnectionHandler.ttcn
Commit a1b2a9922fd457d59706fbe3ea70d272c4d13958 by Pau Espin Pedrol
hnbgw: Allow modifying RanOps during test startup

This will be used by a test to skip response to CONNECT.ind, allowing
transmission of DISCONNECT.req and hence transmitting CREF over the
wire.

Change-Id: Ib9462ba41b16375348b086d7ffe9f5755ae26f84
The file was modifiedhnbgw/HNBGW_Tests.ttcn
Commit 6b21f7b3794e29b722ba62e8c1b69e065e9229cd by Pau Espin Pedrol
Convert RAN_Conn_Prim from enum to union

This will allow passing parameters in each primitive.
This is needed eg. to pass the reason in DISCONNECT.req.

Change-Id: I17994795b51efc7e6700238ddcf45594af653e42
The file was modifiedhnbgw/ConnHdlr.ttcn
The file was modifiedlibrary/RAN_Emulation.ttcnpp
The file was modifiedmsc/MSC_Tests.ttcn
The file was modifiedbsc/BSC_Tests_ASCI.ttcn
The file was modifiedmsc/MSC_Tests_Iu.ttcn
The file was modifiedsgsn/BSSGP_ConnHdlr.ttcn
The file was modifiedbsc-nat/BSC_MS_ConnectionHandler.ttcn
The file was modifiedbsc/BSC_Tests_LCLS.ttcn
The file was modifiedhnbgw/HNBGW_Tests.ttcn
The file was modifiedbsc/BSC_Tests.ttcn
The file was modifiedsgsn/SGSN_Tests_Iu.ttcn
The file was modifiedmsc/BSC_ConnectionHandler.ttcn
The file was modifiedbsc-nat/MSC_ConnectionHandler.ttcn
Commit b9ded6e8ac7bbd34128e68c457cb986d8cc2d853 by Pau Espin Pedrol
RAN_Emulation: Allow setting reason in primitive MSC_CONN_PRIM_DISC_REQ

This allows setting a specific reason in the CREF transmitted on the
wire, other than "End user originted (0)".
A follow-up commit will add a test in HNBGW_Tests where an emulated MSC
answers with CREF reason "End user failure (0x02)".

Change-Id: I1fa1148135625d840426b52450bf52da10448471
The file was modifiedlibrary/RAN_Emulation.ttcnpp