[ 
https://issues.apache.org/jira/browse/HDDS-11095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated HDDS-11095:
------------------------------------
    Status: Patch Available  (was: In Progress)

> 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
>            Priority: Minor
>
> 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, only a single 
> {{v}} is printed.  (I couldn't find the specific version behaviour has 
> changed.)
> 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]

Reply via email to