This is an automated email from the ASF dual-hosted git repository.
achennaka pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new 060bb39b3 [test] fix negotiation-test for krb5 version 1.19.2
060bb39b3 is described below
commit 060bb39b3549a3ebac99ad98cbbe72a87e834bfb
Author: Alexey Serbin <[email protected]>
AuthorDate: Thu Oct 19 14:56:33 2023 -0700
[test] fix negotiation-test for krb5 version 1.19.2
TestNegotiation.TestPreflight was failing on Ubuntu 22.04.3 LTS
because of the error message mismatch:
src/kudu/rpc/negotiation-test.cc:1533: Failure
Value of: s.ToString()
Expected: contains regular expression "error accessing keytab:
Permission denied
"
Actual: "Runtime error: GSSAPI Error: No credentials were supplied, or
the credentials were unavailable or inaccessible (Permission denied)"
This patch addresses the issue, making the reference error message
pattern more generic.
Change-Id: If4a3772fa50fc799756da121644c9dbb4d9bc977
Reviewed-on: http://gerrit.cloudera.org:8080/20599
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Abhishek Chennaka <[email protected]>
---
src/kudu/rpc/negotiation-test.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kudu/rpc/negotiation-test.cc b/src/kudu/rpc/negotiation-test.cc
index a501b0616..eee35ebc5 100644
--- a/src/kudu/rpc/negotiation-test.cc
+++ b/src/kudu/rpc/negotiation-test.cc
@@ -1530,7 +1530,7 @@ TEST_F(TestNegotiation, TestPreflight) {
} else {
ASSERT_FALSE(s.ok()) << s.ToString();
#ifndef KRB5_VERSION_LE_1_10
- ASSERT_STR_MATCHES(s.ToString(), "error accessing keytab: Permission
denied");
+ ASSERT_STR_MATCHES(s.ToString(), "Permission denied");
#endif
}
CHECK_ERR(unlink(kt_path.c_str()));