CLOUDSTACK-3999: Fix the skipTest typo

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-08-01 16:09:07 +05:30
parent 4b448995a3
commit b303fd3428
2 changed files with 6 additions and 5 deletions

View File

@ -233,7 +233,7 @@ class TestRvRDeploymentPlanning(cloudstackTestCase):
)
if len(pods) < 2:
raise self.SkipTest("The env don't have 2 pods req for test")
raise self.skipTest("The env don't have 2 pods req for test")
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
@ -380,7 +380,7 @@ class TestRvRDeploymentPlanning(cloudstackTestCase):
"List clusters should not return empty response"
)
if len(clusters) < 2:
raise self.SkipTest(
raise self.skipTest(
"The env don't have 2 clusters req for test")
self.debug("disable all pods except one!")
@ -600,7 +600,7 @@ class TestRvRDeploymentPlanning(cloudstackTestCase):
)
if len(storage_pools) < 2:
raise self.SkipTest(
raise self.skipTest(
"The env don't have 2 storage pools req for test")
self.debug("disable all pods except one!")
@ -841,7 +841,7 @@ class TestRvRDeploymentPlanning(cloudstackTestCase):
)
if len(hosts) < 2:
raise self.SkipTest(
raise self.skipTest(
"The env don't have 2 hosts req for test")
self.debug("disable all pods except one!")

View File

@ -71,6 +71,7 @@ class TestDeployVmWithUserData(cloudstackTestCase):
cls.services["service_offering"]
)
cls.account = Account.create(cls.apiClient, services=cls.services["account"])
cls.cleanup = [cls.account]
cls.template = get_template(
cls.apiClient,
cls.zone.id,
@ -79,7 +80,7 @@ class TestDeployVmWithUserData(cloudstackTestCase):
cls.debug("Successfully created account: %s, id: \
%s" % (cls.account.name,\
cls.account.id))
cls.cleanup = [cls.account]
# Generate userdata of 2500 bytes. This is larger than the 2048 bytes limit.
# CS however allows for upto 4K bytes in the code. So this must succeed.