mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-26 15:28:35 +03:00
pySim-shell_test: disable test_list_and_rm_notif
The testcase euicc.test_list_and_rm_notif fails due to a problem with the eUICC. The eUICC reports the following error when a delete notification attempt is made: "delete_notification_status": "undefinedError" Let's temporarily disable this testcase until the problem is resolved. Change-Id: I7d0b6a998499d84f0eb4e24592ad43210ac54806
This commit is contained in:
@@ -62,34 +62,34 @@ class test_case(UnittestUtils):
|
|||||||
self.runPySimShell(cardname, "test_set_nickname.script")
|
self.runPySimShell(cardname, "test_set_nickname.script")
|
||||||
self.assertEqualFiles("set_nickname.tmp")
|
self.assertEqualFiles("set_nickname.tmp")
|
||||||
|
|
||||||
def test_list_and_rm_notif(self):
|
# def test_list_and_rm_notif(self):
|
||||||
cardname = 'sysmoEUICC1-C2T'
|
# cardname = 'sysmoEUICC1-C2T'
|
||||||
|
#
|
||||||
# Generate two (additional) notification
|
# # Generate two (additional) notification
|
||||||
self.runPySimShell(cardname, "test_gen_notif.script")
|
# self.runPySimShell(cardname, "test_gen_notif.script")
|
||||||
|
#
|
||||||
# List notifications into a file
|
# # List notifications into a file
|
||||||
self.runPySimShell(cardname, "test_list_notif.script")
|
# self.runPySimShell(cardname, "test_list_notif.script")
|
||||||
|
#
|
||||||
# Parse notifications file (JSON)
|
# # Parse notifications file (JSON)
|
||||||
notifications_tmp = open("notifications.tmp")
|
# notifications_tmp = open("notifications.tmp")
|
||||||
notifications = json.load(notifications_tmp)
|
# notifications = json.load(notifications_tmp)
|
||||||
notifications_tmp.close()
|
# notifications_tmp.close()
|
||||||
|
#
|
||||||
# Delete notifications one by one, we expect to see at least one notification
|
# # Delete notifications one by one, we expect to see at least one notification
|
||||||
notification_metadata_list = notifications['notification_metadata_list']
|
# notification_metadata_list = notifications['notification_metadata_list']
|
||||||
removed = 0
|
# removed = 0
|
||||||
for nm in notification_metadata_list:
|
# for nm in notification_metadata_list:
|
||||||
seq_number = nm['notification_metadata']['seq_number']
|
# seq_number = nm['notification_metadata']['seq_number']
|
||||||
print("removing notification with seq_number %s:" % seq_number)
|
# print("removing notification with seq_number %s:" % seq_number)
|
||||||
self.equipTemplate("test_rm_notif.script", SEQ_NUMBER = seq_number)
|
# self.equipTemplate("test_rm_notif.script", SEQ_NUMBER = seq_number)
|
||||||
self.runPySimShell(cardname, "test_rm_notif.script")
|
# self.runPySimShell(cardname, "test_rm_notif.script")
|
||||||
removed = removed + 1
|
# removed = removed + 1
|
||||||
self.assertTrue(removed >= 2, "we expected to remove at least two notifications, but we have removed none!")
|
# self.assertTrue(removed >= 2, "we expected to remove at least two notifications, but we have removed none!")
|
||||||
|
#
|
||||||
# List notifications again, require none to be present
|
# # List notifications again, require none to be present
|
||||||
self.runPySimShell(cardname, "test_list_notif.script")
|
# self.runPySimShell(cardname, "test_list_notif.script")
|
||||||
self.assertEqualFiles("notifications.tmp")
|
# self.assertEqualFiles("notifications.tmp")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user