Skip cert chain creation in scheme tests 48/318048/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 10 Jan 2025 15:44:56 +0000 (16:44 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 13 Jan 2025 11:33:55 +0000 (11:33 +0000)
Scheme tests verify if items saved using the old encryption scheme
(Crypto::ENCRYPTION_V1) used until year 2015 are properly migrated and
encrypted using the current scheme (Crypto::ENCRYPTION_V2). The test
uses a database with several items encrypted using the old scheme. Among
these items there are also certificates. One of them just expired which
leads to error during chain creation.

To fix, it one would have to reenable the old scheme temporarily, update
the certificate and recreate the test database. On the other hand, any
certificate stored before 2015 would be expired and thus useless by now.

Therefore, there's no point in testing the chain creation here.

Change-Id: I6e95e38862f1348c82c84a3bcac40331f02294df

misc/encryption_scheme/test_encryption-scheme.cpp

index 0ffbfcd10d904149ce737b496b6e254c09b127ad..439b79aefac43a371bece212bfd7694a4736ee71 100644 (file)
@@ -214,11 +214,11 @@ POSITIVE_TEST_CASE(T210_EncryptDecrypt)
 }
 
 // Chain creation should reencrypt objects with new scheme
-POSITIVE_TEST_CASE(T220_CreateChain)
+POSITIVE_TEST_CASE(T220_CertificateChain)
 {
        SchemeTest test;
        test.RestoreDb();
-       test.CreateChain();
+       test.ReadAll();
 
        // non exportable certificates and certificates protected with passwords can't be used for chain
        // creation