diff options
author | Bartlomiej Grzelewski <b.grzelewski@samsung.com> | 2018-09-18 15:49:00 +0200 |
---|---|---|
committer | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2018-10-03 11:01:40 +0000 |
commit | f6e9b94fd69a801f9594b92e8fff59410a089736 (patch) | |
tree | 0a4e8887d7b2253c9010c9a53021d8b218e5c230 /tests | |
parent | a42856cbf7fa08b9971cf689a535eef3da93fd90 (diff) | |
download | key-manager-f6e9b94fd69a801f9594b92e8fff59410a089736.tar.gz key-manager-f6e9b94fd69a801f9594b92e8fff59410a089736.tar.bz2 key-manager-f6e9b94fd69a801f9594b92e8fff59410a089736.zip |
Add parser support of new schema version
Version 1 of xml with initial values is not supported from now.
From now software backend will not support encrypted data.
Allow parser to accept xml version 2.
Initial values files will contain information about
type of backend that should be used to store data.
Change-Id: Ib3a73b14148a2476ab288ca364fffe9289400ebd
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_generic-backend.cpp | 4 | ||||
-rw-r--r-- | tests/test_tz-backend.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_generic-backend.cpp b/tests/test_generic-backend.cpp index c2e80a04..114d794a 100644 --- a/tests/test_generic-backend.cpp +++ b/tests/test_generic-backend.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2017 - 2018 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE(gstore) BOOST_REQUIRE_THROW(store.import(Crypto::Data(), Password()), Exc::Crypto::OperationNotSupported); BOOST_REQUIRE_THROW(store.importEncrypted(Crypto::Data(), Password(), - Crypto::DataEncryption()), + RawBuffer()), Exc::Crypto::OperationNotSupported); BOOST_REQUIRE_THROW(store.destroy(Token()), Exc::Crypto::OperationNotSupported); diff --git a/tests/test_tz-backend.cpp b/tests/test_tz-backend.cpp index 745d3f8a..853326cb 100644 --- a/tests/test_tz-backend.cpp +++ b/tests/test_tz-backend.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2017 - 2018 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(store) Exc::Crypto::OperationNotSupported); BOOST_REQUIRE_THROW(store.import(Data(), Password()), Exc::Crypto::OperationNotSupported); - BOOST_REQUIRE_THROW(store.importEncrypted(Data(), Password(), DataEncryption()), + BOOST_REQUIRE_THROW(store.importEncrypted(Data(), Password(), RawBuffer()), Exc::Crypto::OperationNotSupported); BOOST_REQUIRE_NO_THROW(store.destroy(Token())); } |