rafaelweingartner commented on a change in pull request #3133: feature: add
libvirt / qemu io bursting
URL: https://github.com/apache/cloudstack/pull/3133#discussion_r248899117
##########
File path: test/integration/smoke/test_service_offerings.py
##########
@@ -129,6 +129,73 @@ def test_01_create_service_offering(self):
"Check name in createServiceOffering"
)
return
+ @attr(
+ tags=[
+ "advanced",
+ "advancedns",
+ "smoke",
+ "basic",
+ "eip",
+ "sg"],
+ required_hardware="false")
+ def test_02_create_iops_offering(self):
+ """Test to create service io burst offering"""
+
+ # Validate the following:
+ # 1. createServiceOfferings should return a valid information
+ # for newly created offering
+ # 2. The Cloud Database contains the valid information
+
+
+
+ svcs = self.services["service_offerings"]["tiny"]
+ kws = {}
+
+ for key in self.services["ioburst"]:
+ if str(key).startswith("bytes") or str(key).startswith("iops"):
+ kws[key] = self.services["ioburst"][key]
+ else:
+ svcs[key] = self.services["ioburst"][key]
+
+ service_offering = ServiceOffering.create(
+ self.apiclient,
+ svcs,
+ None,
+ None,
+ **kws
+ )
+ self.cleanup.append(service_offering)
+
+ self.debug(
+ "Created service offering with ID: %s" %
+ service_offering.id)
+
+ list_service_response = list_service_offering(
+ self.apiclient,
+ id=service_offering.id
+ )
+ self.assertEqual(
+ isinstance(list_service_response, list),
+ True,
+ "Check list response returns a valid list"
+ )
+
+ self.assertNotEqual(
+ len(list_service_response),
+ 0,
+ "Check Service offering is created"
Review comment:
I would say...
"Service offering was not created", right?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services