NGAP: UESecurityCapabilities is optional in PathSwitchRequestAcknowledge
Current master branch of Open5GS includes UESecurityCapabilities IE in PathSwitchRequestAcknowledge, older versions do not. In order to match message of all versions, replace the IE by an an asterisk.
A SELECT APDU must have a header + two bytes of data (what to select). The test truncates this APDU in all variants, ranging from 6 bytes down to 0 bytes. The reader may respond with an error caused by invald request or with and error caused by timeout of the SIM.
CCID: Integrate SIMTRACE emulation into test cases
This integration allows to add tests that use SIMtrace hardware instead of a physical SIM. These tests can be used to test handling of invalid behaviors, such as invalid responses or timeouts.
The number of slots (mp_use_slot_count) are reduced to 7, so that the 8th slot can be used with a SIMtrace for subsequent tests.
CCID: Check if reader handles truncated SIM response
The reader knows how many byte of data is expected in the SIM response. The emulated SIM will truncate that response, so that some data and the final status words are not sent by the SIM. The tests expects the reader to time out and return an appropriate error core.