prasanthj commented on a change in pull request #1179:
URL: https://github.com/apache/hadoop-ozone/pull/1179#discussion_r451927312



##########
File path: hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
##########
@@ -38,6 +40,16 @@ Secure S3 test Success
     ${output} =         Execute          aws s3api --endpoint-url 
${ENDPOINT_URL} list-buckets
                         Should contain   ${output}         bucket-test123
 
+Secure S3 put-object test
+    ${testFilePath} =       Set Variable            ${TEMPDIR}/${TEST_FILE}
+                            Copy File               ${TEST_FILE}            
${testFilePath}
+    ${output} =             Execute                 aws s3api --endpoint 
${ENDPOINT_URL} put-object --bucket=bucket-test123 --key=tmp1/tmp2/NOTICE.txt 
--body=${testFilePath}
+    ${output} =             Execute                 aws s3api --endpoint 
${ENDPOINT_URL} list-objects --bucket=bucket-test123
+                            Should contain   ${output}         
tmp1/tmp2/NOTICE.txt
+    ${output} =             Execute                 aws s3api --endpoint 
${ENDPOINT_URL} put-object --bucket=bucket-test123 --key=tmp3//tmp4/NOTICE.txt 
--body=${testFilePath}

Review comment:
       should we add a test for key with leading '/' as well?




----------------------------------------------------------------
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.

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