We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82cdf1c commit d0c9a0aCopy full SHA for d0c9a0a
1 file changed
test/integration/smoke/test_scale_vm.py
@@ -159,7 +159,14 @@ def test_01_scale_vm(self):
159
cmd = scaleVirtualMachine.scaleVirtualMachineCmd()
160
cmd.serviceofferingid = self.big_offering.id
161
cmd.id = self.virtual_machine.id
162
- self.apiclient.scaleVirtualMachine(cmd)
+
163
+ try:
164
+ self.apiclient.scaleVirtualMachine(cmd)
165
+ except Exception as e:
166
+ if "LicenceRestriction" in str(e):
167
+ self.skipTest("Your XenServer License does not allow scaling")
168
+ else:
169
+ self.fail("Scaling failed with the following exception: " + str(e))
170
171
list_vm_response = VirtualMachine.list(
172
self.apiclient,
0 commit comments