Esempio n. 1
0
	def gen_launch_res(self, inf, radl, requested_radl, num_vm, auth_data):
		res = []
		for i in range(num_vm):
			cloud = CloudInfo()
			cloud.type = "DeployedNode"
			vm = VirtualMachine(inf, "1234", cloud, radl, requested_radl)
			# create the mock for the vm finalize function
			vm.finalize = Mock(return_value=(True, vm))
			res.append((True, vm))
		return res