platform/core/test/security-tests.git
9 years agoCKM: certificates refreshed (some were already expired). 85/35885/7
Maciej J. Karpiuk [Wed, 25 Feb 2015 12:58:44 +0000 (13:58 +0100)]
CKM: certificates refreshed (some were already expired).

Change-Id: Iad2449aed5ce3a2e07cdf60e0b57dce56e1e8f10

9 years agoModify some test codes according to key-manager's 2.4 API changes 77/36277/2
yuseok.jeon [Wed, 25 Feb 2015 09:21:41 +0000 (18:21 +0900)]
Modify some test codes according to key-manager's 2.4 API changes

Change-Id: Ibfd46fd0f3c3a4c4b11488788eabbc2bae105d2d

9 years agoCKM: CC mode uses user label to read & write keys. 48/35848/3
Maciej J. Karpiuk [Wed, 25 Feb 2015 10:02:51 +0000 (11:02 +0100)]
CKM: CC mode uses user label to read & write keys.

Buxton does not allow root to modify user owned keys.

Change-Id: I106422a866fb6048ff359721dc30af68153661c8

9 years agoCKM: access control tests use more descriptive error reporting 47/35847/2
Maciej J. Karpiuk [Wed, 25 Feb 2015 09:58:31 +0000 (10:58 +0100)]
CKM: access control tests use more descriptive error reporting

Change-Id: I02ce9162f4833b9a9175e88619a418c0045d0285

9 years agoCKM: Split signture tests into two groups. 93/35893/1
Bartlomiej Grzelewski [Wed, 18 Feb 2015 15:14:57 +0000 (16:14 +0100)]
CKM: Split signture tests into two groups.

Change-Id: I3277c009ad05889ef587923731f8aba3177174bc

9 years agoCKM: tests adjusted to tizenorg.
Maciej J. Karpiuk [Wed, 18 Feb 2015 11:49:18 +0000 (12:49 +0100)]
CKM: tests adjusted to tizenorg.

9 years agoInstall vconf key for testing key-manager in packaging install time.
kyungwook tak [Wed, 11 Feb 2015 06:08:03 +0000 (15:08 +0900)]
Install vconf key for testing key-manager in packaging install time.

vconf key cannot Install(set at first time)/unset in runtime.
It should be installed in package(rpm) install time.

Change-Id: I196df5cb8a7e6b6a9a0653d66dfc6e9e55e73e52
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoCKM: Add new test to check if getCertificateChain return proper code.
Bartlomiej Grzelewski [Mon, 9 Feb 2015 18:15:50 +0000 (19:15 +0100)]
CKM: Add new test to check if getCertificateChain return proper code.

Change-Id: I293e6132dbe179254575940e6c51acd261e0145e

9 years agoCKM: Adopt tests to new PKCS12 api.
Bartlomiej Grzelewski [Wed, 4 Feb 2015 18:35:48 +0000 (19:35 +0100)]
CKM: Adopt tests to new PKCS12 api.

New api may take 2 passwords to decrypt data from pkcs12.

Change-Id: I6ea8e33005ce0b7b1db5cb69a265a68f2cc72398

9 years agoCKM: Fix Control::restUserPassword test.
Bartlomiej Grzelewski [Tue, 10 Feb 2015 15:33:40 +0000 (16:33 +0100)]
CKM: Fix Control::restUserPassword test.

resetUserPassword will work if no key exists for the user.

Change-Id: Idc5080dc48e3e965c4af791f86572d2897ee7a43

9 years agoCKM: Adopt tests to new api behaviour.
Bartlomiej Grzelewski [Wed, 4 Feb 2015 18:35:48 +0000 (19:35 +0100)]
CKM: Adopt tests to new api behaviour.

If Password is wrong api will return CKM_API_ERROR_AUTHENTICATION_ERROR
instead CKM_API_ERROR_SERVER_ERROR.

Change-Id: I9457414e44a1e95824371716a055bcd48855d370

9 years agoCKM: Add test for getData with broken password.
Bartlomiej Grzelewski [Wed, 4 Feb 2015 16:57:33 +0000 (17:57 +0100)]
CKM: Add test for getData with broken password.

Change-Id: Iad82b7c0523c5600a60cc5ed8d0c50a0e9a8f9a5

9 years agoCKM: Add negative test for CKM::Control::unlock function.
Bartlomiej Grzelewski [Wed, 4 Feb 2015 12:24:48 +0000 (13:24 +0100)]
CKM: Add negative test for CKM::Control::unlock function.

Change-Id: I2ddc8572d033eb7b138fe6ad255669082fc31245

9 years agoCKM: Add test for PKCS12 api.
Bartlomiej Grzelewski [Tue, 3 Feb 2015 16:31:56 +0000 (17:31 +0100)]
CKM: Add test for PKCS12 api.

Change-Id: I931405c6315053424425bec6ebfbe6e3de01d683

9 years agoCKM: Add support for CKMC_ERROR_FILE_SYSTEM error.
Bartlomiej Grzelewski [Thu, 29 Jan 2015 14:39:02 +0000 (15:39 +0100)]
CKM: Add support for CKMC_ERROR_FILE_SYSTEM error.

Change-Id: I5288d565269767b3043ba0c9ae9a4584c85c665c

9 years agoAdd tests for deprecated access control API.
Maciej J. Karpiuk [Mon, 2 Feb 2015 09:44:31 +0000 (10:44 +0100)]
Add tests for deprecated access control API.

[Issue#] N/A
[Feature/Bug] bug discovered in the key-manager. This commit verifies bug resolution.
[Problem] deprecated access control API incorrectly mapped values into permissions.
[Solution] fix to key-manager plus appropriate tests in the security-tests.
[Verification] all T300_CKMC_ACCESS_CONTROL_C_API should pass.

Change-Id: I9bc52b0e493bb7dbde14b5793d18d5b924806648

9 years agoCKM:Add compilation flag for MDPP
Krzysztof Jackiewicz [Tue, 27 Jan 2015 09:45:28 +0000 (10:45 +0100)]
CKM:Add compilation flag for MDPP

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Failing CC mode tests
[Cause] Compilation flag that disables MDPP logic has been introduced in
key-manager
[Solution] The same flag added to tests. When MDPP is disabled we expect
reading private keys to succeed.

[Verification] Compile and install key-manager and tests. Run:
ckm-tests --group=CKM_CC_MODE

Change-Id: I497c703108b6e2ee21599311beaa0d153c147d13

9 years agoRUNNER_ASSERT wrappers moved to ckm-common.h
Krzysztof Jackiewicz [Mon, 26 Jan 2015 13:04:46 +0000 (14:04 +0100)]
RUNNER_ASSERT wrappers moved to ckm-common.h

[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] Wrappers for RUNNER_ASSERT could be used by other tests.
[Solution] Wrappers moved to ckm-common.h

[Verification] Successfull compilation

Change-Id: Id9766c09d07c142814c3f3acd65a7b581ab5a061

9 years agoReplace deprecated cert chain API with new one
Krzysztof Jackiewicz [Wed, 21 Jan 2015 13:22:18 +0000 (14:22 +0100)]
Replace deprecated cert chain API with new one

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Old cert chain API is deprecated
[Cause] N/A
[Solution] Use new API

[Verification] Run tests

Change-Id: Ie1f6197af0afbebfc39e9661c010f176e718f7d3

9 years agoTest for certificate chain API
Krzysztof Jackiewicz [Wed, 10 Dec 2014 08:19:18 +0000 (09:19 +0100)]
Test for certificate chain API

[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] N/A
[Solution] Test for new certificate chain API added

[Verification] Run tests

Change-Id: I2b27db15d3424b8ed511509aadd77af829f9a055

9 years agoHelper functions for certificate chains
Krzysztof Jackiewicz [Thu, 18 Dec 2014 21:02:15 +0000 (22:02 +0100)]
Helper functions for certificate chains

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Excessive code
[Cause] N/A
[Solution] Helper functions used

[Verification] Compile and run tests

Change-Id: I361b6f117b360a15f514cc1fce4e7c3f9bb39d89

9 years agoCertificate chain tests moved to separate file
Krzysztof Jackiewicz [Thu, 18 Dec 2014 17:26:03 +0000 (18:26 +0100)]
Certificate chain tests moved to separate file

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Cpp file too long
[Cause] All CAPI tests in single file
[Solution] Certificate chains part moved to separate file

[Verification] Compile & run tests

Change-Id: Iada8d00c0356aab97defdf3ef60c0f6ebb9088cf

9 years agoCKM: Add error description in error message.
Bartlomiej Grzelewski [Fri, 16 Jan 2015 19:47:43 +0000 (20:47 +0100)]
CKM: Add error description in error message.

Change-Id: I9769865577579500bc774332dcc1fee12d828a00

9 years agoUpdate cc-mode tests with "Ready" setting
Krzysztof Jackiewicz [Tue, 20 Jan 2015 11:23:53 +0000 (12:23 +0100)]
Update cc-mode tests with "Ready" setting

[Issue#] N/A
[Feature/Bug] N/A
[Problem] "Ready" mode is not tested
[Cause] N/A
[Solution] Tests updated

[Verification] Run cc-mode tests

Change-Id: I16a86d9d10b5cef3ebbbd0880f981ef43b0ae6bc

9 years agoFixed dbus systemd interface
Krzysztof Jackiewicz [Thu, 15 Jan 2015 17:51:22 +0000 (18:51 +0100)]
Fixed dbus systemd interface

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Services were not properly restarted. DBusAccess was waiting forever
for systemd job completion.
[Cause] Signal filter was set up too late
[Solution] Signal filter is set up before sending requests to systemd.

[Verification] Run CCMode tests.

Change-Id: I2e71a54ba44ddf0878a065e3b3bb8a7d117a6e3b

9 years agoAdd ocsp test for CAPI.
Bartlomiej Grzelewski [Fri, 16 Jan 2015 16:53:21 +0000 (17:53 +0100)]
Add ocsp test for CAPI.

Change-Id: I3e2b8f862f3129b21795e352366422364ce893fa

9 years agoRemove pointless code from capi tests.
Bartlomiej Grzelewski [Wed, 14 Jan 2015 16:21:08 +0000 (17:21 +0100)]
Remove pointless code from capi tests.

Change-Id: I7d5f5a03517da471c6aad5c03746f5c8a66ffb31

9 years agoAdd tests for storing PKCS12 files.
Maciej J. Karpiuk [Fri, 14 Nov 2014 15:08:52 +0000 (16:08 +0100)]
Add tests for storing PKCS12 files.

Change-Id: I444b07febf2dc78a3ac2a952f1cd29141716ecb9

9 years agoCAPI changes (set permission, remove alias): tests adjusted.
Maciej J. Karpiuk [Wed, 17 Dec 2014 14:31:39 +0000 (15:31 +0100)]
CAPI changes (set permission, remove alias): tests adjusted.

Change-Id: I1601606f9e4303d83b9840082c7093d9ac751b0a

9 years agoCAPI tests adjusted to new password logic
Krzysztof Jackiewicz [Mon, 15 Dec 2014 20:24:49 +0000 (21:24 +0100)]
CAPI tests adjusted to new password logic

[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] Password logic have changed
[Solution] Tests adjusted

[Verification] Run all CAPI tests

Change-Id: Ifb9a730b749eafa56d5107d13148935ef7353f60

9 years agoSecurity-server and CKM integration tests.
Bartlomiej Grzelewski [Fri, 9 Jan 2015 18:11:03 +0000 (19:11 +0100)]
Security-server and CKM integration tests.

Change-Id: I6ed1a68c2b7644c390d5ad05fe1512fc67e4dc80

9 years agoAdd test for using proper DKEK key to decrypt data.
Maciej J. Karpiuk [Mon, 8 Dec 2014 15:43:29 +0000 (16:43 +0100)]
Add test for using proper DKEK key to decrypt data.

Issue: another label is accessing data, while cached DKEK on data save
was already removed from the cache. This scenario was failing before
key-manager commit 4fe08778f9c31a698c6faace9b13fd6c5a4d9a7c.

Change-Id: I04c26c5ce5a86e83ab84ed78758984f7a0c2b5e4

9 years agoCKM table separation: tests adjusted to new C++ API.
Maciej J. Karpiuk [Thu, 13 Nov 2014 15:53:12 +0000 (16:53 +0100)]
CKM table separation: tests adjusted to new C++ API.

Change-Id: I74f742a75190fd66618cf0960836c3d7907059d4

9 years agoAdd tests for scenario trying to save/modify other label's data.
Maciej J. Karpiuk [Fri, 28 Nov 2014 16:15:29 +0000 (17:15 +0100)]
Add tests for scenario trying to save/modify other label's data.

Change-Id: I3940c7c88cb1e8bbd4f11cc04eaef1755b72a246

9 years agoAccess Control layer: tests adjusted to C++ API changes.
Maciej J. Karpiuk [Wed, 26 Nov 2014 14:39:52 +0000 (15:39 +0100)]
Access Control layer: tests adjusted to C++ API changes.

Change-Id: Ia3b045ab7a935d37186dee37de730ddea4d0ec1b

9 years agoTests use new CC variable scheme (Disabled means device disabled, not CC-mode disabled).
Maciej J. Karpiuk [Wed, 19 Nov 2014 09:57:59 +0000 (10:57 +0100)]
Tests use new CC variable scheme (Disabled means device disabled, not CC-mode disabled).

Minor logging change in CAPI tests (error code was not logged).

Change-Id: I2bedc75da254ee87977453aac736861162890baa

9 years agoCommonCriteria tests refactored and updated
Krzysztof Jackiewicz [Tue, 28 Oct 2014 17:02:04 +0000 (18:02 +0100)]
CommonCriteria tests refactored and updated

[Verification] Run ckm-tests --group=CKM_CC_MODE

Change-Id: Idb3e7a8d1e0df2913b3537d7cc4f109f12fffb0f

9 years agoStart&stop support added to DBusAccess
Krzysztof Jackiewicz [Thu, 30 Oct 2014 15:59:25 +0000 (16:59 +0100)]
Start&stop support added to DBusAccess

[Verification] Run security-server-tests-password --output=text
to make sure existing tests are not broken

Change-Id: Ib5b1353c5892fb3685ace4f8f6226ab842c07ec8

9 years agoAlias is not unique user-wide: modified test set.
Maciej J. Karpiuk [Wed, 22 Oct 2014 10:28:56 +0000 (12:28 +0200)]
Alias is not unique user-wide: modified test set.

Change-Id: I90577f4eaf02c24f5c7d390820c9de6817fc2142

9 years agoAdd service-side data verification test.
Maciej J. Karpiuk [Thu, 16 Oct 2014 13:25:04 +0000 (15:25 +0200)]
Add service-side data verification test.

Normally, data is validated on the client side.
New tests verify if data is verified on the service side.

Change-Id: Ia6f8ab71b8d03c0dea3140f4e2fb4bc175a26f9d

9 years agoMerge branch 'tizen' into ckm 13/32113/1
Marcin Niesluchowski [Mon, 15 Dec 2014 15:52:20 +0000 (16:52 +0100)]
Merge branch 'tizen' into ckm

Change-Id: I534565bfd910dca35be33ca57c4467ca634bf716

9 years agoDrop unneeded dependency against dbus-glib-1 83/31283/3
Rafal Krypa [Mon, 8 Dec 2014 12:00:11 +0000 (13:00 +0100)]
Drop unneeded dependency against dbus-glib-1

Change-Id: Id27aa959d0456c873ad3b5178b0f8b77a6d22a47

9 years agoMove Summary collector to test framework 96/28696/12
Marcin Niesluchowski [Mon, 13 Oct 2014 16:39:53 +0000 (18:39 +0200)]
Move Summary collector to test framework

Change-Id: Ief5a3b837382651bd030642c262d3c69c408a4bb

9 years agoChange FailStatus from struct to enum class 95/28695/9
Marcin Niesluchowski [Mon, 13 Oct 2014 15:02:17 +0000 (17:02 +0200)]
Change FailStatus from struct to enum class

Change-Id: I9df26486b0b009e5f97b99358d0112556d87a700

9 years agoRemove INTERNAL type from FailStatus enum 94/28694/8
Marcin Niesluchowski [Mon, 13 Oct 2014 14:21:47 +0000 (16:21 +0200)]
Remove INTERNAL type from FailStatus enum

INTERNAL fail status is treated as FAILED fail status. It is collected
in case of:
* DPL::Exception - should not be thrown by test cased body, as it is used
  in test framework only
* std::exception - which implies that test case is not constructed well
  or there is not enough resources, which may be also passed as Failed
  state in RUNNER_* macros.
* other exceptions - same as std::exception

Change-Id: I8776622afcb9d01739f8780183ad4c5f364deb25

9 years agoComment out all tests that were fixed in next version of CKM. 17/31017/3
Bartlomiej Grzelewski [Fri, 28 Nov 2014 14:48:15 +0000 (15:48 +0100)]
Comment out all tests that were fixed in next version of CKM.

Change-Id: I638c51225da2ed8d7026fb133d503fdc671f35b5

9 years agoMerge branch 'tizen' into ckm 73/30973/1
Marcin Niesluchowski [Thu, 27 Nov 2014 17:47:10 +0000 (18:47 +0100)]
Merge branch 'tizen' into ckm

Change-Id: I1d9bf221dc53b1f41056ca81ffa399cb494f9c78

9 years agoDon't provide perf binary, depend on it 31/30431/3
Rafal Krypa [Tue, 18 Nov 2014 10:37:34 +0000 (11:37 +0100)]
Don't provide perf binary, depend on it

Perf binary was provided in SLP as a work around for not having it
on the platform. This is no longer needed and harmful, because we
provided only the ARM binary, even for i686 and x86_64 builds.

Change-Id: I2157b7fd75a6ff3f713bf199d996c831a2f20673

9 years agoRemove unneeded manual dependencies 30/30430/2
Rafal Krypa [Tue, 18 Nov 2014 10:35:34 +0000 (11:35 +0100)]
Remove unneeded manual dependencies

Dependencies against shared libraries should be auto-generated.

Change-Id: I24c422b4f3488c0dacc63dbe2ac11d9ae026dfa4

9 years agoPrevent running cynara service by masking 26/30726/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 11:33:25 +0000 (12:33 +0100)]
Prevent running cynara service by masking

Before and after each testcase CynaraTestEnv runs code, that
saves and restores cynara's database. Cynara service is stopped
for that time, however it can be socket-activated and start during
critical moment of database modification.
To prevent such situation cynara is masked for critical sections.

Change-Id: I2dba7f9985121d92a2bb2ffd6318ec922022979c

9 years agoAdd methods for masking and unmasking service 25/30725/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 05:30:20 +0000 (06:30 +0100)]
Add methods for masking and unmasking service

Masking a service prevents the service from being started.
Unmasking allows to start service again. Both of these operations
are implemented to affect service only till device reboot.
Masking and unmasking service needs reloading configuration
of dbus manager. That is also done in implementation.

Change-Id: Ibbb64dbae6ed6aaa68b085f8a66d4810cecd22c1

9 years agoAdd method for getting service's pid 24/30724/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 05:18:35 +0000 (06:18 +0100)]
Add method for getting service's pid

Systemd that is responsible for launching service provide information
about it's pid with dbus properties mechanism.

Change-Id: Ia56094ad776a758596b4344172a6109b3648365e

9 years agoHandle job signals from systemd 23/30723/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 04:31:40 +0000 (05:31 +0100)]
Handle job signals from systemd

A set of currently running jobs was added. Jobs are identified
with unique job path created by systemd.
Every time a start/stop/restart command is sent to systemd,
related job is added to set.
When JobNew signal is received its handler puts it also in the set.
Job is removed from the set, when JobRemoved signal is delivered from
systemd.
After each action generating a job in systemd unit (start/stop/restart)
program waits until all jobs from the set are removed.

Timeouts used earlier to "synchronize" action calls are removed.

Change-Id: Id944c9f52ecfeb06efabdb9424c835d09af7bb4f

9 years agoSubscribe to dbus signals from systemd 22/30722/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 03:08:32 +0000 (04:08 +0100)]
Subscribe to dbus signals from systemd

Set bus matching filters for JobNew and JobRemove signals from systemd.
Subscribe to signals from systemd over dbus
Add dbus filter for all incoming messages (stub - empty body).

Change-Id: I516bf562d50a4e7a3933e0a1d5905bffb73dbc68

9 years agoCleanup DBusAccess 21/30721/2
Lukasz Wojciechowski [Mon, 24 Nov 2014 02:42:53 +0000 (03:42 +0100)]
Cleanup DBusAccess

Remove not used variables and function.
Fix memory leak of not released objects in sendResetFailedToService().
Read object path data from dbus response.

Change-Id: I94e531fe6aef64de9eb8a1fc3e7fc8623727e697

9 years agoIgnore smack-dbus tests 10/30710/3
Marcin Niesluchowski [Mon, 24 Nov 2014 13:18:23 +0000 (14:18 +0100)]
Ignore smack-dbus tests

Current dbus release does not support smack context in GetConnectionCredentials
method yet.

Change-Id: I58112e9702c04a634c149c5c2c3753404970cc87

9 years agoMerge branch 'security-manager' into tizen 93/30693/3
Rafal Krypa [Mon, 24 Nov 2014 11:27:24 +0000 (12:27 +0100)]
Merge branch 'security-manager' into tizen

Conflicts:
tests/security-manager-tests/common/sm_db.cpp
tests/security-manager-tests/common/sm_db.h
tests/security-manager-tests/security_manager_tests.cpp

Change-Id: I69e6e9321ab58702086ba402e23a6d9b06e7fdb9

9 years agoMerge branch 'cynara' into tizen 92/30692/1
Rafal Krypa [Mon, 24 Nov 2014 10:19:41 +0000 (11:19 +0100)]
Merge branch 'cynara' into tizen

Conflicts:
tests/cynara-tests/common/cynara_test_admin.h
tests/cynara-tests/test_cases.cpp

Change-Id: I49296db7a8983f3aee1f4750852ea516e9d7f3a2

9 years agosecurity-manager tests: reorganize directories used and registered by apps 57/30457/2
Marcin Lis [Tue, 18 Nov 2014 15:04:56 +0000 (16:04 +0100)]
security-manager tests: reorganize directories used and registered by apps

1. Move global user directories from /etc/smack/ to its home dir: /usr/apps/
2. Remove directories, functions and checks associated with
   SECURITY_MANAGER_PATH_PUBLIC - it should not be used anymore and will be
   removed.

[Verification] run security-manager-tests and ensure that all succeed.

Change-Id: Ifb04fd19b35cc226473159728d172525fbc44bdc
Signed-off-by: Marcin Lis <m.lis@samsung.com>
9 years agoRequire gum-utils, not libgum 52/30452/1
Rafal Krypa [Tue, 18 Nov 2014 14:37:33 +0000 (15:37 +0100)]
Require gum-utils, not libgum

In gumd 1.0.2 gum-utils tool has been split from package libgum into
separate package gum-utils.

Change-Id: Ia5903f1b5725e681545b56a1e581312a22443017

9 years agoIgnore tests failing on file label removal 04/30404/2
Marcin Niesluchowski [Mon, 17 Nov 2014 16:36:16 +0000 (17:36 +0100)]
Ignore tests failing on file label removal

Change-Id: Ib4f97f1bfdda0cf2229852096bf47582dc68aa3b

9 years agoFix build dependencies on Cynara 76/30376/1
Aleksander Zdyb [Mon, 17 Nov 2014 12:16:32 +0000 (13:16 +0100)]
Fix build dependencies on Cynara

Change-Id: I3bb0ec78446999e2dfb7fe6e670fc586c113b5bf

9 years agoUpdate tests to work with group names instead of gids 55/29255/10
Krzysztof Sasiak [Thu, 23 Oct 2014 11:53:58 +0000 (13:53 +0200)]
Update tests to work with group names instead of gids

Change-Id: Ia6ac604ca4d5369a486772d1f9f39fd57e1c3ecd

9 years agosecurity-server tests commented out from all tests 89/29789/5
Michal Eljasiewicz [Tue, 4 Nov 2014 11:15:00 +0000 (12:15 +0100)]
security-server tests commented out from all tests

Change-Id: I549718922f98f08c242b9bde313ecad839392b8e
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
9 years agosecurity_server_tests_dbus moved to separate directory 89/29889/4
Michal Eljasiewicz [Wed, 5 Nov 2014 13:04:51 +0000 (14:04 +0100)]
security_server_tests_dbus moved to separate directory

tests moved out of security_server directory and renamed

Change-Id: If3a3aedecc91f43803dfb349ac6a06a79ed4eccd
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
9 years agoExtending security_manager_set_process_label_from_binary and 70/29670/7
Zbigniew Jasinski [Fri, 31 Oct 2014 11:11:20 +0000 (12:11 +0100)]
Extending security_manager_set_process_label_from_binary and
security_manager_set_process_label_from_appid for proper socket
labeling.

Added checking for proper socket Smack labeling. Implementation:
https://review.tizen.org/gerrit/27849

Change-Id: I3cf1f7a06615f7652fcefe6d89b2fe370d5f2ba5

9 years agoTest case for security_manager_drop_process_privileges function. 34/29534/9
Zbigniew Jasinski [Wed, 29 Oct 2014 09:10:26 +0000 (10:10 +0100)]
Test case for security_manager_drop_process_privileges function.

security_manager_drop_process_privileges implementation:
https://review.tizen.org/gerrit/27848

Change-Id: I17732780dad25f8c3ecdde3e9ad30781a87a6b69

9 years agoRemove test for security_manager_set_process_label_from_binary() 99/29699/2
Rafal Krypa [Tue, 4 Nov 2014 18:21:08 +0000 (19:21 +0100)]
Remove test for security_manager_set_process_label_from_binary()

Removing test for security-manager function that is now being removed
from security-manager (https://review.tizen.org/gerrit/27041).

Change-Id: I879016d2d0e87b7d0e1eafe982d4e25e61b2f71e
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
9 years agolibprivilege-control tests commented out from all tests 87/29787/1
Michal Eljasiewicz [Tue, 4 Nov 2014 10:51:04 +0000 (11:51 +0100)]
libprivilege-control tests commented out from all tests

Change-Id: Id76b6b0ba3b9b5c2ee8948fb2078c44e5a444fdc
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
9 years agoCheck creation of maximal count of cynara requests 85/28985/7
Lukasz Wojciechowski [Fri, 17 Oct 2014 18:27:59 +0000 (20:27 +0200)]
Check creation of maximal count of cynara requests

Request creating function should return CYNARA_API_MAX_PENDING_REQUESTS,
when maximal number of possible requests (2^16) is created.

Change-Id: Icdbbf6e6377a73892ccd8f4affa31756f6161414

9 years agoAdd CynaraTestAsync::Client::createRequest() method 84/28984/6
Lukasz Wojciechowski [Fri, 17 Oct 2014 18:22:57 +0000 (20:22 +0200)]
Add CynaraTestAsync::Client::createRequest() method

Method can be used for testing cynara_async_create_request() API function.

Change-Id: Ib26d97a1a45451c014f3a495408f555c203bf834

9 years agoAdd test for checking CACHE_MISS when cache is empty 83/28983/6
Lukasz Wojciechowski [Fri, 17 Oct 2014 16:45:33 +0000 (18:45 +0200)]
Add test for checking CACHE_MISS when cache is empty

Change-Id: I5857cec7b8d8da2b281a60029648d70516a3c00f

9 years agoAdd CynaraTestAsync::Client::checkCache() method 82/28982/6
Lukasz Wojciechowski [Fri, 17 Oct 2014 16:44:02 +0000 (18:44 +0200)]
Add CynaraTestAsync::Client::checkCache() method

Method can be used to test cynara_async_check_cache() API function.

Change-Id: Ibc7009362bec2cfdc90472299d3bfdf155f186c3

9 years agoAdd CynaraTestAsync::RequestMonitor class 65/28965/7
Lukasz Wojciechowski [Fri, 17 Oct 2014 14:15:43 +0000 (16:15 +0200)]
Add CynaraTestAsync::RequestMonitor class

Added class shall be used for monitoring all requests, matching
callbacks and checking expected causes and responses in callbacks.

Change-Id: I0ddb2d8848d80950d430f768510c6466144b399d

9 years agoCreate cynara_async_tests group 98/28898/7
Lukasz Wojciechowski [Thu, 16 Oct 2014 17:23:13 +0000 (19:23 +0200)]
Create cynara_async_tests group

Create a test group for asynchronous API tests
and add CynaraTestAsync::Client initialization test.

Change-Id: I0e8cc37cd16282a7834cc61dd72e1aa90fb9129e

9 years agoAdd CynaraTestAsync::Client 97/28897/7
Lukasz Wojciechowski [Thu, 16 Oct 2014 17:21:58 +0000 (19:21 +0200)]
Add CynaraTestAsync::Client

This is a class that will wrap usage of libcynara-client-async API.

Change-Id: I89124b57c811e016854122fec6b2cf0ddbaa0525

9 years agoAdd RUNNER_ERROR_MSG(message) macro 96/28896/7
Lukasz Wojciechowski [Thu, 16 Oct 2014 17:10:49 +0000 (19:10 +0200)]
Add RUNNER_ERROR_MSG(message) macro

Macro can be used to print error messages during test runtime.
Sometimes there is a need to print out important information
that are related to error that happen during test run, but it is
impossible to do that with RUNNER_ASSERT... macros because
an exception is alredy thrown.

Change-Id: I574af27bba7c20f21e2c6f9fc0b808f7ed9675ed

9 years agoAdd CynaraTestAsync::StatusMonitor 95/28895/6
Lukasz Wojciechowski [Thu, 16 Oct 2014 15:25:13 +0000 (17:25 +0200)]
Add CynaraTestAsync::StatusMonitor

Added class wraps functionality of status callbacks.

Change-Id: I8c42a80d02b9092e89d930367632110ca33e3fa9

9 years agoFix security_manager_05_app_install_uninstall_by_uid_5000 05/29405/2
Marcin Niesluchowski [Thu, 23 Oct 2014 11:32:38 +0000 (13:32 +0200)]
Fix security_manager_05_app_install_uninstall_by_uid_5000

User app (uid 5000) used for tests has been removed from system.
Due to this chage security-manager can not find it in /etc/passwd.
Special user is created in %post section and is removed in %postun
section. Current test name:
security_manager_05_app_install_uninstall_by_app_user

Change-Id: Ia2eec416b44fe216b08f1fc29ec46826621ad796

9 years agoAdd licence and copyright header to cynara test files 94/28894/2
Lukasz Wojciechowski [Thu, 16 Oct 2014 14:01:55 +0000 (16:01 +0200)]
Add licence and copyright header to cynara test files

Change-Id: I4cb894b91b076c6475f8c285966dd2bacc0ff64d

9 years agoOne missing fix for cynara_check return code 09/29209/2
Rafal Krypa [Tue, 21 Oct 2014 11:35:55 +0000 (13:35 +0200)]
One missing fix for cynara_check return code

Commit 1c357c269b should also adjust tests for security-manager.
Changing expected return code of cynara_check from CYNARA_API_SUCCESS
to CYNARA_API_ACCESS_ALLOWED.

Change-Id: I4f1ad908f0d91f91af9dec9a701f8f41504730dc

9 years agoMerge remote-tracking branch 'tizen-gerrit/cynara' into HEAD 07/29207/1
Marcin Niesluchowski [Wed, 22 Oct 2014 11:34:10 +0000 (13:34 +0200)]
Merge remote-tracking branch 'tizen-gerrit/cynara' into HEAD

Change-Id: Id5089ff0e604c1608038d68ffc5d5e041a2d29d7

9 years agoMerge commit 'af35045308e6b0221690b420f530e53ce6c2fbad' into HEAD 05/29205/1
Marcin Niesluchowski [Wed, 22 Oct 2014 11:10:37 +0000 (13:10 +0200)]
Merge commit 'af35045308e6b0221690b420f530e53ce6c2fbad' into HEAD

Change-Id: Ib16081848a41ef480360b31a14bb9a9bc4786c3f

9 years agoMove HTML collector to separate files 93/28693/5
Marcin Niesluchowski [Mon, 13 Oct 2014 13:05:27 +0000 (15:05 +0200)]
Move HTML collector to separate files

Change-Id: I9e3d507cbde42bced1daac0eae351c55b925a63c

9 years agoMove Console collector to separate files 92/28692/5
Marcin Niesluchowski [Mon, 13 Oct 2014 11:39:02 +0000 (13:39 +0200)]
Move Console collector to separate files

Change-Id: Ia7c23d144db858f94eac34e79e12dd11faad9de4

9 years agoMove XML collector to separate files 91/28691/5
Marcin Niesluchowski [Mon, 13 Oct 2014 09:09:48 +0000 (11:09 +0200)]
Move XML collector to separate files

Change-Id: I7c82a9415bbf9969ab2bc5bc008878b8b61bbcc4

9 years agoMove statistic class to separate file 90/28690/5
Marcin Niesluchowski [Mon, 13 Oct 2014 09:42:33 +0000 (11:42 +0200)]
Move statistic class to separate file

Change-Id: Ife2fd4e0e2952d6145096a8c4de14ed5bbfdb369

9 years agoRemove CSV collector 89/28689/5
Marcin Niesluchowski [Mon, 13 Oct 2014 08:24:02 +0000 (10:24 +0200)]
Remove CSV collector

Change-Id: Iae8c4bbb7cfd415e228426885f224412122ce52f

9 years agoRemove TAP collector 88/28688/5
Marcin Niesluchowski [Mon, 13 Oct 2014 08:13:47 +0000 (10:13 +0200)]
Remove TAP collector

Change-Id: Ie9022778cf489eaaba0177ba8b84c5d0dd425fdb

9 years agoRemove unnecessary includes from test_results_collector.cpp 87/28687/4
Marcin Niesluchowski [Mon, 13 Oct 2014 13:21:49 +0000 (15:21 +0200)]
Remove unnecessary includes from test_results_collector.cpp

Change-Id: I7caaf12269eb63f1a1e7ec2dc3afaa203aa8ad82

9 years agoRevert commits to cynara tests 00/29100/1
Marcin Niesluchowski [Tue, 21 Oct 2014 09:34:12 +0000 (11:34 +0200)]
Revert commits to cynara tests

Some commits to cynara tests making security-tests not buildable
with cynara release.

This reverts commits:
1c357c2 "Fix cynara_check return codes"
d2eb84f "Add tests for cynara_admin_check function"
a58d784 "Enhance CynaraTestAdmin with adminCheck() method"
e0b08a3 "Add tests for none bucket"

Change-Id: If344771ef62de103c24cd551cd40a6b9b8be44a3

9 years agoRevert commits to security-manager tests 99/29099/1
Marcin Niesluchowski [Tue, 21 Oct 2014 09:43:03 +0000 (11:43 +0200)]
Revert commits to security-manager tests

Some commits to security-manager tests making security-tests not buildable
with security-manager release.

This reverts commits:
e3e2809 "security-manager: test security_manager_set_process_groups_from_appid"

Change-Id: I009c33811a3af23451e5cac6db142a555f248408

9 years agoAdopt test to newer version of libsmack. 36/29036/1
Bartlomiej Grzelewski [Mon, 20 Oct 2014 13:23:53 +0000 (15:23 +0200)]
Adopt test to newer version of libsmack.

Change-Id: I1e908016923dc489f6fd1c82dc6409e10106859c

9 years agoMove smack_access and access_provider to ckm test. 03/28903/1
Bartlomiej Grzelewski [Thu, 16 Oct 2014 17:16:20 +0000 (19:16 +0200)]
Move smack_access and access_provider to ckm test.

Change-Id: I5098846a2edcb7597252f2ab08444f6428c73cc7

9 years agoAdd remaining Async API tests 02/28902/1
Krzysztof Jackiewicz [Tue, 23 Sep 2014 08:04:16 +0000 (10:04 +0200)]
Add remaining Async API tests

run ckm-tests --group=CKM_ASYNC_API

Change-Id: I0b270ade92c88b946dc8a9b6eefa542e391572ea

9 years agoCommon ckm functions moved to separate file 01/28901/1
Krzysztof Jackiewicz [Tue, 7 Oct 2014 06:57:00 +0000 (08:57 +0200)]
Common ckm functions moved to separate file

Change-Id: Iddca880cf7824b0696d3375cb8cb391b29df183a

9 years agoAdd tests for async ckm API - saveKey 00/28900/1
Krzysztof Jackiewicz [Mon, 25 Aug 2014 16:00:01 +0000 (18:00 +0200)]
Add tests for async ckm API - saveKey

Change-Id: I5caf324c5861a44edb613bf11e52fd02f270d27f

9 years agoAccess control tests 76/28876/2
Krzysztof Jackiewicz [Tue, 30 Sep 2014 06:27:21 +0000 (08:27 +0200)]
Access control tests

run with: ckm-tests --group=T300_CKMC_ACCESS_CONTROL_C_API

Change-Id: I0d7fcf254a4df705155a535957f380bf8d77db17

9 years agoRestore cc mode status to off in deinit 75/28875/2
kyungwook tak [Wed, 1 Oct 2014 05:57:09 +0000 (14:57 +0900)]
Restore cc mode status to off in deinit

Change-Id: I1ae644057580248a8134d7c47101bbfce4ad72d5
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoRebase TC and TC Group numbering 74/28874/2
kyungwook tak [Wed, 1 Oct 2014 04:46:45 +0000 (13:46 +0900)]
Rebase TC and TC Group numbering

Change-Id: Ic8f4346a5c863347d054ee033a694bb0a6892224
Signed-off-by: kyungwook tak <k.tak@samsung.com>