Add tests for cynara_admin_list_policies_descriptions 85/33085/8
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 5 Jan 2015 10:26:21 +0000 (11:26 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 15 Jan 2015 18:25:43 +0000 (19:25 +0100)
commit16590be3c6afab8635ea850ba416f1ee3bba7265
tree1c99c11367dd96c6e72def82b42e1294bb4695b6
parentb9cdf0145ed5dcebd2c6d082dddf6d7b65f58e31
Add tests for cynara_admin_list_policies_descriptions

Each of added tests uses the fact that every cynara test is wrapped in
CynaraTestEnv that saves cynara service plugins.
Every test clears cynara service plugins folder and restarts cynara.
Then proper combination of plugins (sometimes none) are loaded.
There are 4 tests added:
* tc30_admin_list_descriptions_no_plugins - no plugins are loaded,
 there are only default cynara policies;
* tc31_admin_list_descriptions_1_plugin_single_policy;
* tc32_admin_list_descriptions_1_plugin_multiple_policy;
* tc33_admin_list_descriptions_multiple_plugins.

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