test-tool: add PrinReadKeys.Truncate test

This test registers PR key and then sends a PR-In read-keys request with
an ALLOCATION LENGTH value that forces response truncation. Ensure that
the ADDITIONAL LENGTH is *not* modified as a result of the truncation.

This test currently passes against TGT but fails against LIO (fix
pending).

Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
David Disseldorp
2018-05-31 23:23:39 +02:00
parent c88e9715ab
commit ab0e40d689
4 changed files with 77 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ static CU_TestInfo tests_preventallow[] = {
static CU_TestInfo tests_prin_read_keys[] = {
{ (char *)"Simple", test_prin_read_keys_simple },
{ (char *)"Truncate", test_prin_read_keys_truncate },
CU_TEST_INFO_NULL
};