[ITC][key-manager][Non-ACR] Fix pkcs test 84/291584/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 4 Apr 2023 07:51:40 +0000 (09:51 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 18 Apr 2023 19:52:43 +0000 (21:52 +0200)
commitf9b5808c60b766f0e99ca18c7fd6ee28a3d085f5
treefb9f9897225ce860752696f0ea579b49bcc3bd88
parentaf50d8e9780169c1e8c6bdf206ffa048f9b45ebc
[ITC][key-manager][Non-ACR] Fix pkcs test

The test uses empty passwords when saving pkcs but it passes non-empty
passwords when getting the pkcs back. The test was passing before
because key-manager silently ignored such cases. Now it returns an
error.

Also the polices were passed in incorrect order.

Fix the test by using passwords both when saving and getting the pkcs
and fixing the policy order.

Change-Id: I8963a73c0e7cf3547dc5dba1db55960edd9f3d3b
src/itc/key-manager/ITs-key-manager.c