Attila Doroszlai created HDDS-11095:
---------------------------------------
Summary: Generate fixed length string with Robot builtin
Key: HDDS-11095
URL: https://issues.apache.org/jira/browse/HDDS-11095
Project: Apache Ozone
Issue Type: Bug
Components: test
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
S3 Robot tests have some test cases using shell function {{printf}} to generate
fixed length string.
{code}
hadoop-ozone/dist/src/main/smoketest/s3/objectcopy.robot
115: ${custom_metadata_value} = Execute printf 'v%.0s'
{1..3000}
hadoop-ozone/dist/src/main/smoketest/s3/objectputget.robot
194: ${custom_metadata_value} = Execute printf 'v%.0s'
{1..3000}
202: ${long_tag_key} = Execute
printf 'v%.0s' {1..129}
205: ${long_tag_value} = Execute
printf 'v%.0s' {1..257}
hadoop-ozone/dist/src/main/smoketest/s3/MultipartUpload.robot
161: ${custom_metadata_value} = Execute
printf 'v%.0s' {1..3000}
{code}
This does not work on more recent bash and/or python versions. (I couldn't
find the culprit yet.)
I propose to replace with {{Generate Random String N}}} from Robot's
{{String}} library.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]