kerneltime commented on code in PR #3728:
URL: https://github.com/apache/ozone/pull/3728#discussion_r960286181
##########
hadoop-ozone/dist/src/main/smoketest/s3/objectputget.robot:
##########
@@ -159,3 +159,15 @@ Zero byte file
${result} = Execute AWSS3APICli and checkrc
get-object --bucket ${BUCKET} --key ${PREFIX}/putobject/key=value/zerobyte
--range bytes=0-10000 /tmp/testfile2.result 255
Should contain ${result}
InvalidRange
+
+Create file with user defined metadata
+ Execute echo "Randomtext" >
/tmp/testfile2
+ Execute AWSS3ApiCli put-object --bucket
${BUCKET} --key ${PREFIX}/putobject/custom-metadata/key1 --body /tmp/testfile2
--metadata="custom-key1=custom-value1,custom-key2=custom-value2"
+
+ ${result} = Execute AWSS3APICli head-object --bucket
${BUCKET} --key ${PREFIX}/putobject/custom-metadata/key1
+ Should contain ${result}
\"custom-key1\": \"custom-value1\"
+ Should contain ${result}
\"custom-key2\": \"custom-value2\"
+
+ ${result} = Execute ozone sh key info
/s3v/${BUCKET}/${PREFIX}/putobject/custom-metadata/key1
+ Should contain ${result}
\"custom-key1\" : \"custom-value1\"
+ Should contain ${result}
\"custom-key2\" : \"custom-value2\"
Review Comment:
Can you add a test for skipping GDPR and exceeding size limit?
--
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]