]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw/rgw_multi/tests.py: decode retval of bucket.get_policy()
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 15:20:32 +0000 (23:20 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 13:51:23 +0000 (21:51 +0800)
commitea63b52b1705e80977ce1fe6d2dc276ea9477344
tree10775e1dff493728d29029bbf07b77cd5b0596b3
parentfcf4de3855f01e80b90d246529916a5915fe413d
test/rgw/rgw_multi/tests.py: decode retval of bucket.get_policy()

return value of bucket.get_policy() is a bytes, so we need to decode it
before comparing it with a string, since the content of policy is ASCII,
it'd be suffice to decode it with 'ascii'.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rgw/rgw_multi/tests.py