See
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/1371/display/redirect?page=changes>
Changes:
[pmaier(a)sysmocom.de] fix typo
[pmaier(a)sysmocom.de] commands: fix double space character in apidoc
[pmaier(a)sysmocom.de] commands: fix apidoc (wrong order of parameters)
[pmaier(a)sysmocom.de] pySim-shell_test/utils: print logfile on all types of errors
[pmaier(a)sysmocom.de] pySim/transport fix APDU/TPDU mapping
------------------------------------------
[...truncated 1.98 MiB...]
},
"life_cycle_status_integer": "operational_activated",
"security_attrib_compact": "1b1a1a1a1a",
"file_size": 33,
"short_file_identifier": null
}
pySIM-shell (00:MF/DF.SYSTEM/EF.SIM_AUTH_KEY)> read_binary
14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<-----------------------
Executing:
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim-shell.py>
-p 7 --script test_csv.script --noprompt --csv
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/card_data.csv>
> pySim-shell_test_1.log 2>&1
pySim-shell logfile content: (pySim-shell_test_1.log)
-----------------------8<-----------------------
Using reader PCSC[HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card
Reader] 07 00]
Waiting for card...
Info: Card is of type: UICC
Detected UICC Add-on "SIM"
Detected UICC Add-on "GSM-R"
Detected UICC Add-on "RUIM"
AIDs on card:
USIM: a0000000871002ffffffff8907090000 (EF.DIR)
ISIM: a0000000871004ffffffff8907090000 (EF.DIR)
ADF.ISD: a000000003000000
ARA-M: a00000015141434c00
Detected CardModel: SysmocomSJA5
debug - was: False
now: True
echo - was: False
now: True
pySIM-shell (00:MF)>
pySIM-shell (00:MF)> # Verify ADM PIN
pySIM-shell (00:MF)> verify_adm
found ADM1 '34173960' for ICCID '8949440000001155314'
pySIM-shell (00:MF)>
pySIM-shell (00:MF)> # Perform an operation that requires ADM access
pySIM-shell (00:MF)> select DF.SYSTEM
{
"file_descriptor": {
"file_descriptor_byte": {
"shareable": true,
"file_type": "df",
"structure": "no_info_given"
},
"record_len": null,
"num_of_rec": null
},
"file_identifier": "a515",
"proprietary_information": {
"uicc_characteristics": "71",
"available_memory": 353360,
"supported_filesystem_commands": {
"terminal_capability": true
}
},
"life_cycle_status_integer": "operational_activated",
"security_attrib_compact": "00",
"pin_status_template_do": [
{
"ps_do": "70"
},
{
"key_reference": 1
},
{
"key_reference": 129
},
{
"key_reference": 10
},
{
"key_reference": 11
}
]
}
pySIM-shell (00:MF/DF.SYSTEM)> select EF.SIM_AUTH_KEY
{
"file_descriptor": {
"file_descriptor_byte": {
"shareable": true,
"file_type": "working_ef",
"structure": "transparent"
},
"record_len": null,
"num_of_rec": null
},
"file_identifier": "6f20",
"proprietary_information": {
"unknown_ber_tlv_ie_d0": {
"raw": "30"
}
},
"life_cycle_status_integer": "operational_activated",
"security_attrib_compact": "1b1a1a1a1a",
"file_size": 33,
"short_file_identifier": null
}
pySIM-shell (00:MF/DF.SYSTEM/EF.SIM_AUTH_KEY)> read_binary
14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<-----------------------
Template: using template test_direct.template to generate file test_direct.script
Executing:
<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/pySim-shell.py>
-p 7 --script test_direct.script --noprompt > pySim-shell_test_2.log 2>&1
pySim-shell logfile content: (pySim-shell_test_2.log)
-----------------------8<-----------------------
Using reader PCSC[HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card
Reader] 07 00]
Waiting for card...
Info: Card is of type: UICC
Detected UICC Add-on "SIM"
Detected UICC Add-on "GSM-R"
Detected UICC Add-on "RUIM"
AIDs on card:
USIM: a0000000871002ffffffff8907090000 (EF.DIR)
ISIM: a0000000871004ffffffff8907090000 (EF.DIR)
ADF.ISD: a000000003000000
ARA-M: a00000015141434c00
Detected CardModel: SysmocomSJA5
debug - was: False
now: True
{
"file_descriptor": {
"file_descriptor_byte": {
"shareable": true,
"file_type": "df",
"structure": "no_info_given"
},
"record_len": null,
"num_of_rec": null
},
"file_identifier": "a515",
"proprietary_information": {
"uicc_characteristics": "71",
"available_memory": 353360,
"supported_filesystem_commands": {
"terminal_capability": true
}
},
"life_cycle_status_integer": "operational_activated",
"security_attrib_compact": "00",
"pin_status_template_do": [
{
"ps_do": "70"
},
{
"key_reference": 1
},
{
"key_reference": 129
},
{
"key_reference": 10
},
{
"key_reference": 11
}
]
}
{
"file_descriptor": {
"file_descriptor_byte": {
"shareable": true,
"file_type": "working_ef",
"structure": "transparent"
},
"record_len": null,
"num_of_rec": null
},
"file_identifier": "6f20",
"proprietary_information": {
"unknown_ber_tlv_ie_d0": {
"raw": "30"
}
},
"life_cycle_status_integer": "operational_activated",
"security_attrib_compact": "1b1a1a1a1a",
"file_size": 33,
"short_file_identifier": null
}
14aabbccddeeffaabbccddeeffaabbccdd12345678901234567890123456789012
-----------------------8<-----------------------
----------------------------------------------------------------------
testcase execution done -- cleaning up ...
ok
======================================================================
FAIL: test (authenticate.test.test_case.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/authenticate/test.py",>
line 31, in test
self.assertEqualFiles("auth_result.tmp")
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/utils.py",>
line 403, in assertEqualFiles
self.assertEqual(ok_file_content, out_file_content,
AssertionError: '{\n "successful_3g_authentication": {\[179
chars]n}\n' != ''
- {
- "successful_3g_authentication": {
- "res": "13484811d553ab35",
- "ck": "0f93c4807f4ff57c6cd348fea590c06d",
- "ik": "608e7bff4856c73e363e795b165a4158",
- "kc": "35f08eda84d3b377"
- }
- }
: File comparison: content auth_result.tmp does not match content of auth_result.ok --
test failed
======================================================================
FAIL: test_activate_deactivate (file_admin.test.test_case.test_activate_deactivate)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/file_admin/test.py",>
line 31, in test_activate_deactivate
self.assertEqualFiles("activate_deactivate_file.tmp",
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/utils.py",>
line 403, in assertEqualFiles
self.assertEqual(ok_file_content, out_file_content,
AssertionError: '"lif[88
chars]onal_deactivated",\n"life_cycle_status_integer[23 chars]ed",' !=
'"lif[88 chars]onal_activated",\n"life_cycle_status_integer":[21
chars]ed",'
"life_cycle_status_integer": "operational_activated",
- "life_cycle_status_integer": "operational_deactivated",
? --
+ "life_cycle_status_integer": "operational_activated",
"life_cycle_status_integer": "operational_activated", : File
comparison: content activate_deactivate_file.tmp does not match content of
activate_deactivate_file.ok -- test failed
======================================================================
FAIL: test_get_status (gp.test.test_case.test_get_status)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/gp/test.py",>
line 72, in test_get_status
self.runPySimShell(cardname, "test_get_status.script", no_exceptions = True,
add_csv = True)
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/utils.py",>
line 292, in runPySimShell
self.assertTrue(False, "Unexpected exceptions occurred!")
AssertionError: False is not true : Unexpected exceptions occurred!
======================================================================
FAIL: test_put_delete_key (gp.test.test_case.test_put_delete_key)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/gp/test.py",>
line 64, in test_put_delete_key
self.runPySimShell(cardname, "test_put_delete_key.script", no_exceptions =
True, add_csv = True)
File
"<https://jenkins.osmocom.org/jenkins/job/master-pysim/JOB_TYPE=test,a1=default,a3=default,a4=default,label=simtester/ws/tests/pySim-shell_test/utils.py",>
line 292, in runPySimShell
self.assertTrue(False, "Unexpected exceptions occurred!")
AssertionError: False is not true : Unexpected exceptions occurred!
----------------------------------------------------------------------
Ran 35 tests in 493.808s
FAILED (failures=4)
Build step 'Execute shell' marked build as failure
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 1637040 killed;
[ssh-agent] Stopped.
Archiving artifacts