Set Agent policy according to user provided by test case 86/54286/2
authorLukasz Kostyra <l.kostyra@samsung.com>
Mon, 14 Dec 2015 08:50:28 +0000 (09:50 +0100)
committerLukasz Kostyra <l.kostyra@samsung.com>
Wed, 16 Dec 2015 12:39:05 +0000 (13:39 +0100)
commit7f8102ed77ff834045b00a4fc74e41ea7764a4e1
tree93f9cf0e31b2ef38f11d9bebb1a3fed958615a0d
parent341503434c437571d02c4f8d4eaa7aaf4c489f2f
Set Agent policy according to user provided by test case

[Bug]           On some occasions tests failed randomly.
[Cause]         Some images (ex. mobile profile on RD-PQ) had other
                services running in the background, which asked Cynara
                for privileges during tests. This caused an incorrect
                behavior of getAgentRequest function (timeout was expected
                to launch client on separate thread, instead a request
                was successfully processed and no timeout occured).
[Solution]      User in CheckData structure now does not depend on a minor
                number.
                setAgentPolicy() has additional argument - user, used to
                filter incoming requests.
[Verification]  Build, install on RD-PQ, run tests multiple times.

Change-Id: Icccf09b8a72929145f624242ace14a60076761a4
src/cynara-tests/common/cynara_test_client_async_client.cpp
src/cynara-tests/test_cases_agent.cpp