apache /
kudu /
43957e9d14b5a242c8f5c7e20d53054f446f9105 [test] fix TestCorruptKerberosCC scenario
On macOS, the SecurityITest.TestCorruptKerberosCC scenario was failing
with errors like below:
src/kudu/integration-tests/security-itest.cc:430: Failure
Value of: s.ok()
Actual: true
Expected: false
Google Test trace:
src/kudu/integration-tests/security-itest.cc:419: Truncating ccache at
'security-itest.0.SecurityITest.TestCorruptKerberosCC/krb5kdc/krb5cc' to 500
It seems Kerberos cache truncated to 500 bytes is big enough to
successfully extract necessary data on macOS.
This patch decreases the size of the corrupted client cache to 266
bytes, so now the scenario passes on macOS as well. In addition,
the truncation size is now selected randomly.
Change-Id: I765e9f1f6cd208f86bc321e962588982f9e01447
Reviewed-on: http://gerrit.cloudera.org:8080/15786
Reviewed-by: Bankim Bhavsar <bankim@cloudera.com>
Tested-by: Kudu Jenkins
Reviewed-by: Grant Henke <granthenke@apache.org>
(cherry picked from commit b0d5852591b2452cd12b46ab4070752014b2e954)
Reviewed-on: http://gerrit.cloudera.org:8080/15789
Reviewed-by: Hao Hao <hao.hao@cloudera.com>
1 file changed