From 323db5c51737f995a8edfd2ba23afbf2836c971c Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Mon, 22 Jul 2013 14:50:45 +0530 Subject: [PATCH] CLOUDSTACK-3672: Multiple minor fixes to tags tests - SourceHost is an id - Invalid format in debug() message corrected Signed-off-by: Prasanna Santhanam (cherry picked from commit ce4dd723ab486894523f08f48b6054f614be4d85) --- test/integration/component/test_tags.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/component/test_tags.py b/test/integration/component/test_tags.py index 52df6da5554..f10641b762c 100644 --- a/test/integration/component/test_tags.py +++ b/test/integration/component/test_tags.py @@ -1083,12 +1083,12 @@ class TestResourceTags(cloudstackTestCase): 'CentOS', 'The tag should have original value' ) - isos = Iso.list( self.apiclient, - listall=True, key='OS', - value='CentOS' + value='CentOS', + account=self.account.name, + domainid=self.account.domainid ) self.assertEqual( @@ -1096,7 +1096,7 @@ class TestResourceTags(cloudstackTestCase): True, "List isos should not return an empty response" ) - + self.debug("Deleting the created tag..") try: tag.delete( @@ -1454,14 +1454,14 @@ class TestResourceTags(cloudstackTestCase): self.debug("Available hosts: ") for host in hosts: - self.debug("Host: %s", host.id) + self.debug("Host: %s" % host.id) # Filtering out the source host from list host response temp_hosts = [host for host in hosts if host.id != source_host] dest_host = temp_hosts[0] self.debug("Destination host is: %s" % dest_host.id) - self.debug("Source host is: %s" % source_host.id) + self.debug("Source host is: %s" % source_host) self.debug("Creating a tag for user VM") tag = Tag.create(