]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: adapt bucket tenant tests to new behaviour 29570/head
authoralfonsomthd <almartin@redhat.com>
Fri, 9 Aug 2019 08:05:46 +0000 (10:05 +0200)
committeralfonsomthd <almartin@redhat.com>
Fri, 9 Aug 2019 08:05:46 +0000 (10:05 +0200)
Fixes: https://tracker.ceph.com/issues/41175
Signed-off-by: alfonsomthd <almartin@redhat.com>
qa/tasks/mgr/dashboard/test_rgw.py

index 77f6c47985a1a4dee5960f7853c2b74a4bd235d8..5ca09e09a2f3424c16ae2f1b9ba1a6c7cdfa85a9 100644 (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)