aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/smsc.py
AgeCommit message (Collapse)AuthorFilesLines
2020-04-11Move object classes used by tests into obj/ subdirPau Espin Pedrol1-49/+0
Change-Id: I0b2963cf00acd1f9036dca2e87aa3b87a0f8066d
2020-04-11Create core directory to contain most of code not in object classes used by ↵Pau Espin Pedrol1-1/+1
tests Change-Id: I9aec6c55ccd71894182057d36e0025b69925d314
2018-10-25First round of clean-ups of imports and unused variablesHolger Hans Peter Freyther1-1/+1
Run pyflakes src/osmo_gsm_tester and then address the first round of problems. Change-Id: I02f1d89078dfdf37d53e2e20811bf36fb14ec3b0
2018-08-13Cleanup of class scoped variablesPau Espin Pedrol1-1/+0
After bug described in OS#3456 and fixed in last commit, let's categorize and place variables in its correct plac to avoid similar issus. We leave under the class keyword (class scoped variables) the attributes which are to be used as static class attributes. All other ones are initialized during __init__(). This way w avoid scenarios in which while using an object from an instance attribute we end up reading a class scoped variable which is shared among all instances. Change-Id: I5ad4cac34a9f49eaf42966c01c9c5a4d3f3e9dc8
2017-06-18Add support for SMPP testingPau Espin Pedrol1-0/+50
As defined in [1], the different related actors are implemented in this commit: ESME and SMSC. SMSC: In Osmocom, the SMSC is currently implemented inside the NITB or the MSC. A new Smsc abstract class is created to shared code between the NITB and the MSC, and also makes it easier for later when the SMSC is splitted. ESMEs can be dynamically added to its configuration in a similar way to how the BTSs are added. ESME: A new class Esme is created which can be used by tests to control an ESME to interact with the SMSC. The ESME functionalities are implemented using python-smpplib. Required version of this library is at least 43cc6f819ec76b2c0a9d36d1d439308634716227, which contains support for python 3 and some required features to poll the socket. This commit already contains a few tests which checks different features and tests the API. Extending tested features or scenarios can be later done quite easily. The tests are not enabled by default right now, because there are several of them in a suite and the ip_address resources are not freed after every tests which ends up in the suite failing due to missing reserved resources. All the tests run alone work though. When the issue is fixed they can then be added to the default list of tests to be run. [1] http://opensmpp.org/specs/SMPP_v3_4_Issue1_2.pdf Change-Id: I14ca3cb009d6d646a449ca99b0200da12085c0da