Add test cynara service plugins 57/33057/4
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 2 Jan 2015 17:09:17 +0000 (18:09 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 8 Jan 2015 17:41:30 +0000 (18:41 +0100)
commitb4713c804a046fc6bd8d6b537be58c8531da8a7a
tree249463fb4826612b16d53495aa8f1d72760194bb
parent36efc47cbf7dfa67e7c01e3efebdddf8d0dcfd30
Add test cynara service plugins

There are two added plugins:
* single-policy plugin - declaring single policy type handling
* multiple-policy plugin - declaring multiple policy types handling

Plugins always return DENY policy type as result of check or update.
They are just test stubs for testing cynara_admin_list_policies_description.
Implementation of both plugins is embedded in BaseCynaraTestPlugin class.

Supported policies descriptions are put into plugins.h for later use in tests.

Change-Id: I38f4bcfe9624992eea3ef5a015885a397f5a0380
packaging/security-tests.spec
tests/cynara-tests/CMakeLists.txt
tests/cynara-tests/plugins/BaseCynaraTestPlugin.h [new file with mode: 0644]
tests/cynara-tests/plugins/CMakeLists.txt [new file with mode: 0644]
tests/cynara-tests/plugins/multiple-policy/CMakeLists.txt [new file with mode: 0644]
tests/cynara-tests/plugins/multiple-policy/plugin.cpp [new file with mode: 0644]
tests/cynara-tests/plugins/plugins.h [new file with mode: 0644]
tests/cynara-tests/plugins/single-policy/CMakeLists.txt [new file with mode: 0644]
tests/cynara-tests/plugins/single-policy/plugin.cpp [new file with mode: 0644]