diff --git a/test/integration/smoke/test_deploy_vgpu_enabled_vm.py b/test/integration/smoke/test_deploy_vgpu_enabled_vm.py index 13c1e5e11fe..2188c7f2165 100644 --- a/test/integration/smoke/test_deploy_vgpu_enabled_vm.py +++ b/test/integration/smoke/test_deploy_vgpu_enabled_vm.py @@ -75,11 +75,12 @@ class TestDeployvGPUenabledVM(cloudstackTestCase): self.testdata["vgpu140q"]["zoneid"] = self.zone.id self.testdata["vgpu140q"]["template"] = self.template.id + self.testdata["service_offerings"]["vgpu260qwin"]["serviceofferingdetails"] = [{'pciDevice': 'VGPU'}, + {'vgpuType':'GRID K120Q'}] #create a service offering self.service_offering = ServiceOffering.create( self.apiclient, self.testdata["service_offerings"]["vgpu260qwin"], - serviceofferingdetails={'pciDevice': 'VGPU'} ) #build cleanup list self.cleanup = [ diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index 7d2622eb7c8..2ef6f8209b2 100755 --- a/tools/marvin/marvin/lib/base.py +++ b/tools/marvin/marvin/lib/base.py @@ -1866,8 +1866,12 @@ class ServiceOffering: cmd.deploymentplanner = services["deploymentplanner"] if "serviceofferingdetails" in services: - cmd.serviceofferingdetails.append( - {services['serviceofferingdetails']}) + count = 1 + for i in services["serviceofferingdetails"]: + for key, value in i.items(): + setattr(cmd, "serviceofferingdetails[%d].key" % count, key) + setattr(cmd, "serviceofferingdetails[%d].value" % count, value) + count = count + 1 if "isvolatile" in services: cmd.isvolatile = services["isvolatile"]