Skip to content
Unstable

Changes

Summary

  1. testenv: set args.podman = False if action != "run" (details)
  2. testenv: cmd: pass all env vars without --podman (details)
  3. S1AP_Emulation: Fix new_ctx never set when building security header (details)
  4. S1AP_Emulation: Fix building security headers for Integrity and (details)
  5. testenv/README: update (details)
Commit 0891beff9d786c91a99fc5016f78b90bc48d90f1 by Oliver Smith
testenv: set args.podman = False if action != "run"

Fix "./testenv.py clean":

    File "/home/user/code/osmo-dev/src/osmo-ttcn3-hacks/_testenv/testenv/cmd.py", line 85, in run
      if not no_podman and testenv.args.podman:
                           ^^^^^^^^^^^^^^^^^^^
  AttributeError: 'Namespace' object has no attribute 'podman'

Change-Id: I44d5229aa481bfed13c006368d590e1486536c0e
The file was modified_testenv/testenv/__init__.py
Commit de72acd28406033f295582112a5fe4314f74addc by Oliver Smith
testenv: cmd: pass all env vars without --podman

As suggested by Pau, pass all environment variables to through testenv
if it is running without podman. This way a custom TTCN3_DIR,
TTCN3_BIN_DIR and more variables that may make sense when running
directly on the host, work as expected.

Closes: OS#6544
Change-Id: I5e710a1ee7185a3f6f4f1e98f201f3f6fda2be55
The file was modified_testenv/testenv/cmd.py
Commit 9229de94aecdf2313ebead5e3eb6ed9fc51044d8 by Pau Espin Pedrol
S1AP_Emulation: Fix new_ctx never set when building security header

The flag was never set to true. It needs to be set to true when building
the security head of Security Mode Complete after receiving Security
Mode Command with a new EPS security context.
TS 24.301 5.4.3.3

Change-Id: I76ad46f7ee5f49698e41da729cb6422866202951
The file was modifiedlibrary/S1AP_Emulation.ttcn
The file was modifiedmme/LTE_CryptoFunctions.ttcn
Commit 54047a1303854dbd289ec892ae5c080fb930d956 by Pau Espin Pedrol
S1AP_Emulation: Fix building security headers for Integrity and Ciphering

The fact that the network instructs the UE to use EEA0 encryption (null
algo) doesn't mean the UE should mark the NAS frames in the security
header as non-ciphered. They need to be marked as IP+ciphered in the
outer header, and as plain in the inner one.

Now TTCN3 behaves like a UE recorded while executing a similar test
case. Moreover, wireshark is now happy decoding the messages.

Change-Id: Ifd4fe83e7b5aefdaafe7ce1c8b1ec6a67c65819c
The file was modifiedlibrary/S1AP_Emulation.ttcn
The file was modifiedmme/LTE_CryptoFunctions.ttcn
The file was modifiedmme/MME_Tests.ttcn
Commit 9a8a6cd3de3c151f0e95786616072d8d3412211b by Oliver Smith
testenv/README: update

Point at ./testenv.py -h and describe that everything runs in 1
container with --podman.

Change-Id: Ie9eee8cf14ba2069c1cd5bd6ab703f3f6ccdc100
The file was modified_testenv/README.md