diff options
author | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2016-04-16 00:46:56 +0200 |
---|---|---|
committer | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2016-04-16 00:46:56 +0200 |
commit | b19bac7c23b61ffe2412212a154450c0ddf22bca (patch) | |
tree | c6d49aca27eac8b0f54a7cd0cb339e46a458d847 /src/test/rgw/test-rgw-common.sh | |
parent | Merge pull request #8560 from liewegas/wip-lfn-startup (diff) | |
download | ceph-b19bac7c23b61ffe2412212a154450c0ddf22bca.tar.xz ceph-b19bac7c23b61ffe2412212a154450c0ddf22bca.zip |
rgw: Add a test for multi-tenancy
This is a very rudimentary test for now. For one thing, it
only creates a tenantized user, but does not even try to run
the radosgw and access it with Boto. And it already has several
XXX tags. But baby steps.
Two areas of exising code had to be fixed up.
- We forgot to patch an argument through in RGWcluster.rgw_admin()
- We must not process the arguments of a command through eval(1)
in test-rgw-call.sh. This causes a double-eval with the function
x() in test-rgw-common.sh, and as a result arguments with spaces
or dollars cannot be used. There is no way to escape or quote.
But we need the dollar for the tenant!
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Diffstat (limited to 'src/test/rgw/test-rgw-common.sh')
-rw-r--r-- | src/test/rgw/test-rgw-common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rgw/test-rgw-common.sh b/src/test/rgw/test-rgw-common.sh index 47d02bcf044..a61653daf43 100644 --- a/src/test/rgw/test-rgw-common.sh +++ b/src/test/rgw/test-rgw-common.sh @@ -48,7 +48,7 @@ END x() { - # echo "x " "$@" + # echo "x " "$@" >&2 eval "$@" } |