Skip to content

Changes

Started by pmaier@sysmocom.de
Started 1 day 11 hr ago
Queued 1 ms
Took 14 min on built-in

Summary

  1. pySim.esim.saip: Implement optimized file content encoding (details)
  2. pySim.esim.saip: Don't try to generate file contents for MF/DF/ADF (details)
  3. pySimLogger: user __name__ of the module when creating a new logger (details)
  4. transport/init: use PySimLogger to print messages (details)
  5. tests/pySim-smpp2sim_test: add integration test (details)
Commit d8c45dc07eda3e335826b5dc0dab5b2d17c7b55a by laforge
pySim.esim.saip: Implement optimized file content encoding

Make sure we make use of the fill pattern when encoding file contents:
Only encode the differences to the fill pattern of the file, in order
to reduce the profile download size.

Change-Id: I61e4a5e04beba5c9092979fc546292d5ef3d7aad
The file was modifiedtests/unittests/test_esim_saip.py
The file was modifiedpySim/esim/saip/__init__.py
Commit 167d6aca365b64c84b2485a70cb43bbf3a4e4f2d by laforge
pySim.esim.saip: Don't try to generate file contents for MF/DF/ADF

only EFs have data content

Change-Id: I02a54a3b2f73a0e9118db87f8b514d1dbf53971f
The file was modifiedpySim/esim/saip/__init__.py
Commit 2b42877389e9f0cdbc831f7b06ed5917670bb138 by pmaier@sysmocom.de
pySimLogger: user __name__ of the module when creating a new logger

At the moment we use random identifiers as names when we create a
new logger for pySimLogger. Let's switch to consistently use the
module name here. For the top level modules let's use the program
name so that it will show up in the log instead of __init__.

Change-Id: I49a9beb98845f66247edd42ed548980c97a7151a
The file was modifiedpySim/log.py
The file was modifiedcontrib/csv-to-pgsql.py
The file was modifiedpySim-shell.py
The file was modifiedtests/unittests/test_log.py
The file was modifiedpySim/card_key_provider.py
The file was modifiedpySim/runtime.py
The file was modifiedcontrib/es2p_server.py
Commit a4895702d7b5feacb2430ea2491a1449abf1728d by pmaier@sysmocom.de
transport/init: use PySimLogger to print messages

The module still uses print to output information. Let's replace
those print calls with the more modern PySimLogger method calls.

Change-Id: I2e2ec2b84f3b84dbd8a029ae9bb64b7a96ddbde3
The file was modifiedpySim/transport/__init__.py
Commit 27d0d666dcbdf1022e1f021f86365c888fdc8f7f by pmaier@sysmocom.de
tests/pySim-smpp2sim_test: add integration test

At the moment pySim.ota codebase is not covered by any of the
integration tests (we have only normal unittests so far). To
increase the test coverage, let's add an integration test that
sends exchanges an RFM OTA-SMS with a real-world card.

However, there is no tool avaliable that can be used as an SMPP
client for pySim-smpp2sim yet. Let's use smpp_ota_apdu2.py on
laforge/ota to develop a tool that we can use to exchange SMS-TPDUs
that contain remote APDU scripts (RFM/RAM).

Finally let's use the tool we have created as a basis to create
an integration test that exchanges an SMS-TPDU with the RFM
application of a sysmoISIM-SJA5 card. The testcase shall pass
when we get the expected response from the card.

Related: OS#6868
Change-Id: If25e38be004cc1c7aeeb130431831377e78fe28d
The file was modifiedsetup.py
The file was modifiedpySim/ota.py
The file was addedcontrib/smpp-ota-tool.py
The file was modifiedrequirements.txt
The file was addedtests/pySim-smpp2sim_test/pySim-smpp2sim_test.cfg
The file was modifiedcontrib/jenkins.sh
The file was addedtests/pySim-smpp2sim_test/pySim-smpp2sim_test.sh