From: Pawel Kowalski
Date: Fri, 11 May 2018 12:10:07 +0000 (+0200)
Subject: [Securerepository][NON-ACR][Change of the expected exception type]
X-Git-Tag: public_m1_final~32^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eb5fdde9a389bfaaa56af6e5b3b2847bac83ed7;p=test%2Ftct%2Fcsharp%2Fapi.git
[Securerepository][NON-ACR][Change of the expected exception type]
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
---
diff --git a/tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSCipher.cs b/tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSCipher.cs
index a5bc1cfb7..ca07b9141 100755
--- a/tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSCipher.cs
+++ b/tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSCipher.cs
@@ -533,7 +533,7 @@ namespace Tizen.Security.SecureRepository.Tests
KeyManager.CreateAesKey(256, aesKeyAlias, new Policy(password, false));
/* TEST CODE */
- Assert.Throws(delegate {
+ Assert.Throws(delegate {
cipher.Decrypt(aesKeyAlias, password, Util.GenerateRandom(1024));
});