xichen01 commented on code in PR #4188:
URL: https://github.com/apache/ozone/pull/4188#discussion_r1559306108


##########
hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-tenant.robot:
##########
@@ -66,13 +66,18 @@ Verify Bucket 1 Owner
     ${result} =         Execute          ozone sh bucket info 
/tenantone/bucket-test1 | jq -r '.owner'
                         Should Be Equal  ${result}       testuser
 
-Put, get and delete a key in the tenant bucket
+Put a key in the tenant bucket
                         Execute                 echo "Randomtext" > 
/tmp/testfile
                         Execute and checkrc     aws s3api --endpoint-url 
${S3G_ENDPOINT_URL} put-object --bucket bucket-test1 --key mykey --body 
/tmp/testfile  0
+
+Verify Object Owner
+    ${result} =         Execute          ozone sh key info 
/tenantone/bucket-test1/mykey | jq -r '.owner'
+                        Should Be Equal  ${result}       testuser

Review Comment:
   Prior to this PR, the Ozone key info command would not display the `owner`, 
and if it did, it would display `hadoop`
   Because docker's startup user is hadoop, so this would have returned hadoop
   
   ```bash
   [root@centos ~/ozone]$ docker exec ozonesecure-scm-1 whoami
   hadoop
   [root@centos ~/ozone]$
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to