You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ga...@apache.org on 2026/05/04 04:43:37 UTC
(ozone) branch master updated: HDDS-15044. Exercise ozone debug kerberos commands (#10085).
This is an automated email from the ASF dual-hosted git repository.
Gargi-jais11 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 1bf9a3bfdc6 HDDS-15044. Exercise ozone debug kerberos commands (#10085).
1bf9a3bfdc6 is described below
commit 1bf9a3bfdc611e87f4806539f50811db33fb3bb3
Author: Navink <nv...@gmail.com>
AuthorDate: Mon May 4 10:13:32 2026 +0530
HDDS-15044. Exercise ozone debug kerberos commands (#10085).
---
.../compose/ozonesecure-ha/test-debug-tools.sh | 2 +
.../smoketest/debug/ozone-debug-kerberos.robot | 59 ++++++++++++++++++++++
2 files changed, 61 insertions(+)
diff --git a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-debug-tools.sh b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-debug-tools.sh
index 92dce6a1f34..d2b07d17cc5 100644
--- a/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-debug-tools.sh
+++ b/hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-debug-tools.sh
@@ -46,4 +46,6 @@ execute_robot_test ${OM} debug/auditparser.robot
execute_robot_test ${SCM} kinit.robot
+execute_robot_test ${SCM} debug/ozone-debug-kerberos.robot
+
source "$COMPOSE_DIR/../common/replicas-test.sh"
diff --git a/hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-kerberos.robot b/hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-kerberos.robot
new file mode 100644
index 00000000000..a37b5df6a38
--- /dev/null
+++ b/hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-kerberos.robot
@@ -0,0 +1,59 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+*** Settings ***
+Documentation Test ozone debug kerberos commands
+Library OperatingSystem
+Resource ../commonlib.robot
+Test Timeout 5 minutes
+
+*** Keywords ***
+Verify Principal Translation
+ [Arguments] ${principal} ${expected_short}
+ ${output} = Execute ozone debug kerberos translate-principal ${principal}
+ Should Contain ${output} Local user = ${expected_short}
+ Should Contain ${output} PASS : 1
+
+*** Test Cases ***
+Diagnose Kerberos
+ [Documentation] Exercises the ozone debug kerberos diagnose command.
+ ${output} = Execute ozone debug kerberos diagnose
+ Should Contain ${output} == Ozone Kerberos Diagnostics ==
+ Should Contain ${output} [PASS] Kerberos Configuration
+ Should Contain ${output} [PASS] Kerberos kinit Command
+ Should Contain ${output} [PASS] Auth-to-Local Mapping
+ Should Contain ${output} == Diagnostic Summary ==
+
+Translate Principal
+ [Documentation] Exercises the ozone debug kerberos translate-principal command for single principals.
+ [Template] Verify Principal Translation
+ # PRINCIPAL # EXPECTED_SHORT_NAME
+ om/om@EXAMPLE.COM om
+ scm/scm@EXAMPLE.COM scm
+ dn/dn@EXAMPLE.COM dn
+
+Translate Multiple Principals At Once
+ [Documentation] Exercises translation of multiple principals passed in a single command.
+ ${output} = Execute ozone debug kerberos translate-principal testuser/om@EXAMPLE.COM om/om@EXAMPLE.COM
+ Should Contain ${output} [PASS] testuser/om@EXAMPLE.COM
+ Should Contain ${output} [PASS] om/om@EXAMPLE.COM
+ Should Contain ${output} PASS : 2
+
+Translate Invalid Principal
+ [Documentation] Ensures the command correctly flags principals that have no mapping rules and returns exit code 1.
+ ${rc} ${output} = Run And Return Rc And Output ozone debug kerberos translate-principal om/om@cloudera.com
+ Should Be Equal As Integers ${rc} 1
+ Should Contain ${output} [FAIL] om/om@cloudera.com
+ Should Contain ${output} No rules applied to
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org