security-manager-tests: fix security_manager_48_groups_get 67/63567/3
authorRafal Krypa <r.krypa@samsung.com>
Fri, 4 Mar 2016 10:59:35 +0000 (11:59 +0100)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 7 Apr 2016 09:29:09 +0000 (02:29 -0700)
commit6cab8010f818f754c8d0439c823a5e9e4adf1281
treea4de4394a5ac8ab405878ee332f0813141da602d
parent42508be5bf119a1b97236a299bcb48ea22b148c7
security-manager-tests: fix security_manager_48_groups_get

This test case is verifying whether security_manager_groups_get() returns
proper array of groups currently mapped to any of known privileges.

The test case expected the function only to return groups explicitly added
by security-tests. But now this feature is actively used on the image. There
are groups mapped to privileges, that are not setup by security-tests, but
are part of the system security policy.

Fix the test case by reading mapping from
/usr/share/security-manager/policy/privilege-group.list.
The groups configured in that file are now also expected.

Change-Id: I01ccc45a773b774144ab7f04f7c48bb2192c5ce1
src/security-manager-tests/security_manager_tests.cpp