Skip to content
Success

Changes

Summary

  1. hlr: pyhss: create/delete subscribers (details)
Commit db0e04c9bd8c523ed7cdf97d68abe5ce7dcc718d by Oliver Smith
hlr: pyhss: create/delete subscribers

Run the PyHSS API service, and fill it with a default APN on startup.
Having one APN entry in the database is required for creating
subscribers.

Talk to the API service for creating and deleting subscribers. Do this
with a new script pyhss_api_helper.py. Deleting subscribers requires
reading JSON returned from the server (to get the AUC and subscriber ID
from the IMSI). I have first attempted to do this via HTTP_Adapter
instead of using a helper script, but this was a lot more complex and
would have required to have the JSON structure in the TTCN3 files. The
eim testsuite also runs an external script for REST requests.

With this change and additional fixes in PyHSS, more tests pass:
* HLR_Tests.TC_gsup_sai
* HLR_Tests.TC_gsup_sai_num_auth_vectors
* HLR_Tests.TC_gsup_ul
* HLR_Tests.TC_gsup_purge_cs
* HLR_Tests.TC_gsup_purge_ps

Related: OS#6862
Change-Id: Ic924dabbc813459f73d6646ee17b79cb11d39a76
The file was modifiedhlr/HLR_Tests.ttcn
The file was modified_testenv/data/podman/Dockerfile
The file was added_testenv/data/scripts/pyhss_api_helper.py
The file was modifiedhlr/testenv_pyhss.cfg
The file was addedhlr/pyhss/setup_db.sh
The file was addedlibrary/PyHSS_REST_Functions.ttcn
The file was modifiedhlr/regen_makefile.sh
The file was modifiedhlr/gen_links.sh
The file was modifiedhlr/README.md