From ed745d3489340eb0394264a379a22a10c76092b9 Mon Sep 17 00:00:00 2001 From: Saksham Srivastava Date: Mon, 19 Aug 2013 16:28:00 +0530 Subject: [PATCH] CLOUDSTACK-4257: [Automation] test_storage_motion test cases failed during with unexpected result in listStoragePool API call Signed-off-by: Prasanna Santhanam (cherry picked from commit a9e45bf7766728c8439fcc0e3a1a6e3af074b2b7) --- test/integration/component/test_storage_motion.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/integration/component/test_storage_motion.py b/test/integration/component/test_storage_motion.py index eda77d1a629..8ddbebe6374 100644 --- a/test/integration/component/test_storage_motion.py +++ b/test/integration/component/test_storage_motion.py @@ -259,16 +259,8 @@ class TestStorageMotion(cloudstackTestCase): self.apiclient, id=volume.id ) - self.assertEqual( - isinstance(pools, list), - True, - "Check list storage pools response for valid list" - ) - self.assertNotEqual( - pools, - None, - "Check if pools exists in ListStoragePools" - ) + if not pools or pools is None: + self.skipTest("No suitable storage pools found for volume migration.Skipping") pool = pools[0] self.debug("Migrating Volume-ID: %s to Pool: %s" % (