[Securerepository][NON-ACR][Change of the expected exception type] 30/178730/2
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Fri, 11 May 2018 12:10:07 +0000 (14:10 +0200)
committerPawel Kowalski <p.kowalski2@partner.samsung.com>
Mon, 14 May 2018 06:05:42 +0000 (08:05 +0200)
After the improvements in the openssl error handling in the key-manager
module, error codes are now more precise. Currently, in case of wrong
ciphertext, CKM_API_ERROR_INPUT_PARAM is returned, which is translated
to ArgumentException in the csapi.

Change-Id: I293045176c6c798aa11b9e6aa9b85d42a5a7a463

tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSCipher.cs

index a5bc1cfb7541ba88398f5d148ef8a43b3c235568..ca07b91413c60bda193ebf6b0802d1e15046fe20 100755 (executable)
@@ -533,7 +533,7 @@ namespace Tizen.Security.SecureRepository.Tests
             KeyManager.CreateAesKey(256, aesKeyAlias, new Policy(password, false));
 
             /* TEST CODE */
-            Assert.Throws<InvalidOperationException>(delegate {
+            Assert.Throws<ArgumentException>(delegate {
                 cipher.Decrypt(aesKeyAlias, password, Util.GenerateRandom(1024));
             });