diff options
author | Casey Bodley <cbodley@users.noreply.github.com> | 2023-12-11 15:43:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 15:43:28 +0100 |
commit | 37ccf0efab64ce996b86861e68dd0b911b37c053 (patch) | |
tree | 0b9f90fcc27944f5ef39ebd9bf789f020c2c7b03 /qa | |
parent | Merge PR #54726 into main (diff) | |
parent | qa: enable test_librgw_file.sh to be run with vstart cluster (diff) | |
download | ceph-37ccf0efab64ce996b86861e68dd0b911b37c053.tar.xz ceph-37ccf0efab64ce996b86861e68dd0b911b37c053.zip |
Merge pull request #53830 from alimaredia/wip-test-librgw-file-sh-vstart
qa: enable test_librgw_file.sh to be run with vstart cluster
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/workunits/rgw/test_librgw_file.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/qa/workunits/rgw/test_librgw_file.sh b/qa/workunits/rgw/test_librgw_file.sh index 4b9dfeb4121..2fa4c7f2ae1 100755 --- a/qa/workunits/rgw/test_librgw_file.sh +++ b/qa/workunits/rgw/test_librgw_file.sh @@ -1,5 +1,11 @@ #!/bin/sh -e - +# +# To run this test script with a cluster created via vstart.sh: +# $PATH needs to be set for radosgw-admin and ceph_test_librgw executables. +# $KEYRING need to be set as the path for a vstart clusters Ceph keyring. +# +# Example when ceph source is cloned into $HOME and a vstart cluster is already running with a radosgw: +# $ PATH=~/ceph/build/bin/:$PATH KEYRING=~/ceph/build/keyring ~/ceph/qa/workunits/rgw/test_librgw_file.sh if [ -z ${AWS_ACCESS_KEY_ID} ] then @@ -13,7 +19,10 @@ then --email librgw@example.com || echo "librgw user exists" # keyring override for teuthology env - KEYRING="/etc/ceph/ceph.keyring" + if [ -z ${KEYRING} ] + then + KEYRING="/etc/ceph/ceph.keyring" + fi K="-k ${KEYRING}" fi |