]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: librgw workunit creates a test user
authorCasey Bodley <cbodley@redhat.com>
Tue, 22 Sep 2020 14:38:22 +0000 (10:38 -0400)
committersinguliere <singuliere@autistici.org>
Fri, 19 Mar 2021 18:21:17 +0000 (19:21 +0100)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 12b5b9506c19133d10823ca6d2041eda92618765)

qa/workunits/rgw/test_librgw_file.sh

index 466f5e6aefcf566200a8b44e6a7307ac965ffa8e..ab4b67eb04021000e5ddf2ee507288ddfb36d08d 100755 (executable)
@@ -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