From: Casey Bodley Date: Tue, 22 Sep 2020 14:38:22 +0000 (-0400) Subject: qa/rgw: librgw workunit creates a test user X-Git-Tag: v16.2.0~47^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b035477d093c712b85731961a1f3ccb84c0b5e44;p=ceph.git qa/rgw: librgw workunit creates a test user Signed-off-by: Casey Bodley (cherry picked from commit 12b5b9506c19133d10823ca6d2041eda92618765) --- diff --git a/qa/workunits/rgw/test_librgw_file.sh b/qa/workunits/rgw/test_librgw_file.sh index 466f5e6aefcf..ab4b67eb0402 100755 --- a/qa/workunits/rgw/test_librgw_file.sh +++ b/qa/workunits/rgw/test_librgw_file.sh @@ -1,5 +1,14 @@ #!/bin/sh -e +export AWS_ACCESS_KEY_ID=`openssl rand -base64 20` +export AWS_SECRET_ACCESS_KEY=`openssl rand -base64 40` + +radosgw-admin user create --uid ceph-test-librgw-file \ + --access-key $AWS_ACCESS_KEY_ID \ + --secret $AWS_SECRET_ACCESS_KEY \ + --display-name "librgw test user" \ + --email librgw@example.com || echo "librgw user exists" + ceph_test_librgw_file ceph_test_librgw_file_aw ceph_test_librgw_file_cd