mgr/dashboard: adapt bucket tenant tests to new behaviour

Fixes: https://tracker.ceph.com/issues/41175
Signed-off-by: alfonsomthd <almartin@redhat.com>
This commit is contained in:
alfonsomthd 2019-08-09 10:05:46 +02:00
parent 2db496017a
commit bc8e811b08

View File

@ -245,14 +245,15 @@ class RgwBucketTest(RgwTestCase):
})
self.assertStatus(200)
data = self._get('/api/rgw/bucket/{}'.format(
urllib.quote_plus('testx/teuth-test-bucket')))
urllib.quote_plus('teuth-test-bucket')))
self.assertStatus(200)
self.assertIn('owner', data)
self.assertEqual(data['owner'], 'admin')
self.assertEqual(data['tenant'], '')
# Delete the bucket.
self._delete('/api/rgw/bucket/{}'.format(
urllib.quote_plus('testx/teuth-test-bucket')))
urllib.quote_plus('teuth-test-bucket')))
self.assertStatus(204)
data = self._get('/api/rgw/bucket')
self.assertStatus(200)