Check integrity after partial policy set 32/27532/3
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 15 Sep 2014 12:17:57 +0000 (14:17 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 22 Sep 2014 10:12:36 +0000 (03:12 -0700)
commit6a2f6b12c320e32cb06a7ab0129147a5f285c8e1
treeeb9dffd45ce3326ab8ba1dd8d1cd1b6f5bdefcdc
parent2051b24271d671ac32a96756d4f977ef78128e61
Check integrity after partial policy set

cynara_admin_set_policy() API function sets whole collection of policies
in single call. Setting some of them may fail. In such case no policies
should be applied to cynara service.

This test confirms existance of detected bug. Try to set 2 policies
(one good and one that is not allowed) leads to setPolicies() error,
however 1st policy remains in cynara's storage.

Verification: until bug is fixed in cynara's storage test should fail.

Change-Id: I3449ccbcfacb03bdcdc7a5cfb4a3b639d9b694ce
tests/cynara-tests/test_cases.cpp