Correct tests due to change in Security Server password validity calculation
authorMarcin Lis <m.lis@samsung.com>
Fri, 30 Aug 2013 10:45:29 +0000 (12:45 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:07:38 +0000 (15:07 +0100)
commitcc3f289a6b0f2b0288238f1ecab55c78a4c9a3c5
tree4a6b3b6df1b48b002aae8bb6187fdbb5c32b1f8d
parent25c84cbd9eec64df12b2d045c205f85bdfe88bee
Correct tests due to change in Security Server password validity calculation

[Issue#]       SSDWSSP-332
[Bug]          Two tests fails after correction in Security Server
[Cause]        Test cases tc10 and tc18 use UINT_MAX as a value of valid_days
               for password setting. This value is now rejected by SS pwd,
               because it causes overflow when changing number of days to
               seconds.
[Solution]     Checking if UINT_MAX is correctly rejected when trying to set pwd
               Added calculation of proper max number of valid days that will
               not cause unsigned int overflow while changing to seconds.
[Varification] Build and run tests.

Change-Id: I25139243d11eba4eb58e79db0fc3b869eedb26e6
tests/security-server-tests/security_server_tests_password.cpp