3 # run s3-tests from current directory. assume working
4 # ceph environment (radosgw-admin in path) and rgw on localhost:8000
5 # (the vstart default).
8 [ -z "$1" ] && branch=master
10 [ -z "$2" ] && port=8000 # this is vstart's default
14 if [ -e CMakeCache.txt ]; then
16 elif [ -e $root_path/../build/CMakeCache.txt ]; then
17 cd $root_path/../build
27 git clone https://github.com/ceph/s3-tests
29 git checkout ceph-$branch
30 VIRTUALENV_PYTHON=/usr/bin/python2 ./bootstrap
36 radosgw-admin user create --uid=s3test1 --display-name='tester1' \
37 --access-key=$akey1 --secret=$skey1 --email=tester1@ceph.com
41 radosgw-admin user create --uid=s3test2 --display-name='tester2' \
42 --access-key=$akey2 --secret=$skey2 --email=tester2@ceph.com
46 ## replace with e.g. "localhost" to run against local software
48 ## uncomment the port to use something other than 80
50 ## say "no" to disable TLS
53 ## all the buckets created will start with this prefix;
54 ## {random} will be filled with random characters to pad
55 ## the prefix to 30 characters long, and avoid collisions
56 bucket prefix = s3testbucket-{random}-
58 ## the tests assume two accounts are defined, "main" and "alt".
59 ## user_id is a 64-character hexstring
61 ## display name typically looks more like a unix login, "jdoe" etc
62 display_name = tester1
63 ## replace these with your access keys
66 email = tester1@ceph.com
68 ## another user account, used for ACL-related tests
70 display_name = tester2
71 ## the "alt" user needs to have email set, too
72 email = tester2@ceph.com
77 S3TEST_CONF=`pwd`/s3.conf $dir/s3-tests/virtualenv/bin/nosetests -a '!fails_on_rgw' -v