This patch adds an xfstests-style functional test suite. Run "tox -e tempauth" to test swift3 with TempAuth, and "tox -e keystone" to test with the Keystone auth system. You don't need to prepare Swift and Keystone system for that. They will be started with minimum configuration automatically. If you already have a Swift cluster for the functional test, run "./check" in the test directory directly. Individual tests can be run using "./check 003", and various other options are also supported. Try "./check -h" for more information. I added some sample test cases but they are not enough at all obviously. More tests will be added soon. Change-Id: I75abce574768abbe88f60d8c1eee87757651e357
15 lines
287 B
Bash
Executable File
15 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# PUT Bucket
|
|
|
|
. ./common
|
|
|
|
echo '
|
|
<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
|
<LocationConstraint>US</LocationConstraint>
|
|
</CreateBucketConfiguration>' > $tmp.default.xml
|
|
|
|
S3USER=tester
|
|
|
|
_s3_put /bucket -D - -T $tmp.default.xml | _filter_curl
|