This is an automated email from the ASF dual-hosted git repository.

adoroszlai 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 7da66e21ba HDDS-8012. Clean up after link loop test (#4304)
7da66e21ba is described below

commit 7da66e21ba9009010563d9638059815e862ef21c
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Feb 23 22:47:13 2023 +0100

    HDDS-8012. Clean up after link loop test (#4304)
---
 hadoop-ozone/dist/src/main/smoketest/basic/links.robot | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/hadoop-ozone/dist/src/main/smoketest/basic/links.robot 
b/hadoop-ozone/dist/src/main/smoketest/basic/links.robot
index 69fc30e7ad..1057a75365 100644
--- a/hadoop-ozone/dist/src/main/smoketest/basic/links.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/basic/links.robot
@@ -69,6 +69,17 @@ ACL verified on source bucket
     ${result} =         Execute And Ignore Error    ozone sh key list 
${target}/link-to-unreadable-bucket
                         Should Contain              ${result}         
PERMISSION_DENIED
 
+Create link loop
+    Run Keyword if      '${SECURITY_ENABLED}' == 'true'    Kinit test user     
testuser     testuser.keytab
+                        Execute                     ozone sh bucket link 
${target}/loop1 ${target}/loop2
+                        Execute                     ozone sh bucket link 
${target}/loop2 ${target}/loop3
+                        Execute                     ozone sh bucket link 
${target}/loop3 ${target}/loop1
+
+Delete link loop
+                        Execute                     ozone sh bucket delete 
${target}/loop1
+                        Execute                     ozone sh bucket delete 
${target}/loop2
+                        Execute                     ozone sh bucket delete 
${target}/loop3
+
 *** Test Cases ***
 Link to non-existent bucket
                         Execute                     ozone sh bucket link 
${source}/no-such-bucket ${target}/dangling-link
@@ -140,11 +151,10 @@ ACL verified on source bucket
     Run Keyword if    '${SECURITY_ENABLED}' == 'true'    ACL verified on 
source bucket
 
 Loop in link chain is detected
-                        Execute                     ozone sh bucket link 
${target}/loop1 ${target}/loop2
-                        Execute                     ozone sh bucket link 
${target}/loop2 ${target}/loop3
-                        Execute                     ozone sh bucket link 
${target}/loop3 ${target}/loop1
+    [setup]             Create link loop
     ${result} =         Execute And Ignore Error    ozone sh key list 
${target}/loop2
                         Should Contain              ${result}    DETECTED_LOOP
+    [teardown]          Delete link loop
 
 Multiple links to same bucket are allowed
     Execute                         ozone sh bucket link ${source}/bucket1 
${target}/link3


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to