From 67177bb4100445a635947c0f11422904172ef431 Mon Sep 17 00:00:00 2001 From: qiaozzzh Date: Mon, 31 Jul 2023 15:37:46 +0800 Subject: [PATCH] fixed 95ce250 from https://gitee.com/qiaozzzh/xts_acts/pulls/9622 XTS adaptation Signed-off-by: qiaozzzh Change-Id: Ief94c2920228c788e0dfb2abe883cf265bfa14a6 --- .../main/js/test/utils/certificate/publicCertificateCallback.js | 2 ++ .../main/js/test/utils/certificate/publicCertificatePromise.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificateCallback.js b/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificateCallback.js index 786fc50a0..82576eae4 100644 --- a/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificateCallback.js +++ b/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificateCallback.js @@ -197,6 +197,8 @@ async function getX509CertInfoCallback(certType, processType) { let serialNumber = gInstance.getSerialNumber(); console.log(processType + " is : " + serialNumber); expect(serialNumber != null).assertTrue(); + let certSerialNumber = gInstance.getCertSerialNumber(); + expect(certSerialNumber != null).assertTrue(); break; case "getIssuerName": let issuerName = gInstance.getIssuerName(); diff --git a/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificatePromise.js b/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificatePromise.js index 2304f6c54..3600c43a6 100644 --- a/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificatePromise.js +++ b/security/certificate_framework/js_api_test_one/src/main/js/test/utils/certificate/publicCertificatePromise.js @@ -185,6 +185,8 @@ async function getX509CertInfoPromise(certType, processType) { let serialNumber = gInstance.getSerialNumber(); console.log(processType + " is : " + serialNumber); expect(serialNumber != null).assertTrue(); + let certSerialNumber = gInstance.getCertSerialNumber(); + expect(certSerialNumber != null).assertTrue(); break; case "getIssuerName": let issuerName = gInstance.getIssuerName(); -- GitLab