From 2d4d7da091ae79ef397bbbb439b8f2b728433ebb Mon Sep 17 00:00:00 2001 From: zhongjie Date: Tue, 5 Mar 2024 10:06:06 +0800 Subject: [PATCH] python: adjust test case for Canonical Event Signed-off-by: zhongjie --- src/python/tests/test_sdk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/tests/test_sdk.py b/src/python/tests/test_sdk.py index ee76fe7..dec10a1 100644 --- a/src/python/tests/test_sdk.py +++ b/src/python/tests/test_sdk.py @@ -2,6 +2,7 @@ from cctrusted_base.ccreport import CcReport, CcReportData, CcReportSignature from cctrusted_base.tcg import TcgImrEvent, TcgPcClientImrEvent +from cctrusted_base.tcgcel import TcgTpmsCelEvent import pytest def test_get_default_algorithms(vm_sdk, default_alg_id): @@ -81,7 +82,7 @@ def test_get_cc_eventlog_with_valid_input(vm_sdk): event_count = 0 for e in eventlog: event_count += 1 - assert isinstance(e, (TcgImrEvent, TcgPcClientImrEvent)) + assert isinstance(e, (TcgImrEvent, TcgPcClientImrEvent, TcgTpmsCelEvent)) def test_get_cc_report_with_valid_input(vm_sdk, check_quote_valid_input): """Test get_cc_report() function with valid input."""