SM: Fix group test 77/86077/2
authorZofia Abramowska <z.abramowska@samsung.com>
Tue, 30 Aug 2016 11:01:12 +0000 (13:01 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 31 Aug 2016 13:18:14 +0000 (15:18 +0200)
Change-Id: I0946aa8cc53f6ff6a59f7e5a37b4132d354155ca

src/security-manager-tests/test_cases.cpp

index b3f3ce8..3899c04 100644 (file)
@@ -792,14 +792,6 @@ RUNNER_TEST(security_manager_20_security_manager_cmd_users)
     }
 }
 
-void setupPrivilegeGroups(const privileges_t &privileges, const std::vector<std::string> &groups)
-{
-    TestSecurityManagerDatabase db;
-    for (const auto &privilege : privileges) {
-        db.setup_privilege_groups(privilege, groups);
-    }
-}
-
 std::vector<std::string> readPrivilegeGroups()
 {
     std::vector<std::string> groups;
@@ -824,12 +816,9 @@ RUNNER_TEST_GROUP_INIT(SECURITY_MANAGER_GROUPS)
 
 RUNNER_TEST(security_manager_22_groups_get)
 {
-    setupPrivilegeGroups(SM_ALLOWED_PRIVILEGES, SM_ALLOWED_GROUPS);
-
     std::unordered_set<std::string> groups;
     auto tmp = readPrivilegeGroups();
     groups.insert(tmp.begin(), tmp.end());
-    groups.insert(SM_ALLOWED_GROUPS.begin(), SM_ALLOWED_GROUPS.end());
 
     char ** c_groups;
     size_t count = 0;