mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-3636: Fix invalid condition to check for empty response for private service offerings
This commit is contained in:
parent
6cfcbc665e
commit
69462fd0cb
@ -824,22 +824,10 @@ class TestServiceOfferingHierarchy(cloudstackTestCase):
|
||||
domainid=self.domain_2.id
|
||||
)
|
||||
self.assertEqual(
|
||||
isinstance(service_offerings, list),
|
||||
True,
|
||||
service_offerings,
|
||||
None,
|
||||
"Check List Service Offerings for a valid response"
|
||||
)
|
||||
self.assertNotEqual(
|
||||
len(service_offerings),
|
||||
0,
|
||||
"Check List Service Offerings response"
|
||||
)
|
||||
|
||||
for service_offering in service_offerings:
|
||||
self.assertEqual(
|
||||
service_offering.id,
|
||||
self.service_offering.id,
|
||||
"Check Service offering ID for domain" + str(self.domain_2.name)
|
||||
)
|
||||
return
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user