]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Add a test for multi-tenancy 8592/head
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 15 Apr 2016 22:46:56 +0000 (16:46 -0600)
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 15 Apr 2016 22:46:56 +0000 (16:46 -0600)
commitb19bac7c23b61ffe2412212a154450c0ddf22bca
treec6d49aca27eac8b0f54a7cd0cb339e46a458d847
parent052e16f79a58f09be8736e5b98ae4e9ed5ad258d
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>
src/test/rgw/test-rgw-call.sh
src/test/rgw/test-rgw-common.sh
src/test/rgw/test_multen.py [new file with mode: 0644]
src/test/rgw/test_multi.py