]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_volume_client: simplify test_get_authorized_ids() 35520/head
authorRishabh Dave <ridave@redhat.com>
Mon, 20 May 2019 09:30:07 +0000 (11:30 +0200)
committerRamana Raja <rraja@redhat.com>
Mon, 15 Jun 2020 09:43:20 +0000 (15:13 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 79d62dd87461c43dd6df3775f21962be9042a7b1)

qa/tasks/cephfs/test_volume_client.py

index 0dc279cf7b82444fd03fdc1f200519b483e0599d..0f205ecec6ec29533ef532cd3210582632b30630 100644 (file)
@@ -664,8 +664,7 @@ vc.disconnect()
             volume_id=volume_id,
         )))
         # Check the list of authorized IDs for the volume.
-        expected_result = None
-        self.assertEqual(str(expected_result), auths)
+        self.assertEqual('None', auths)
 
         # Allow two auth IDs access to the volume.
         auths = self._volume_client_python(volumeclient_mount, dedent("""
@@ -698,8 +697,7 @@ vc.disconnect()
             guest_entity_2=guest_entity_2,
         )))
         # Check the list of authorized IDs for the volume.
-        expected_result = None
-        self.assertItemsEqual(str(expected_result), auths)
+        self.assertEqual('None', auths)
 
     def test_multitenant_volumes(self):
         """