public override void Cleanup() { if (this.exhaustiveVMId != null) { this.vmService.Delete(this.exhaustiveVMId); } VapiAuthHelper.Logout(); }
public override void Cleanup() { if (this.basicVmId != null) { this.vmService.Delete(this.basicVmId); } VapiAuthHelper.Logout(); }
public override void Cleanup() { Console.WriteLine("\n#### Cleanup: Revert boot device " + "configuration"); this.bootDeviceService.Set(this.vmId, this.orginalBootDeviceEntries); List <DeviceTypes.Entry> bootDeviceEntries = this.bootDeviceService.Get(this.vmId); bootDeviceEntries.ForEach(i => Console.WriteLine(i)); VapiAuthHelper.Logout(); }
public override void Cleanup() { Console.WriteLine("\n\n#### Cleanup:Revert memory configuration."); MemoryTypes.UpdateSpec memoryUpdateSpec = new MemoryTypes.UpdateSpec(); memoryUpdateSpec.SetHotAddEnabled( this.originalMemoryInfo.GetHotAddEnabled()); memoryUpdateSpec.SetSizeMiB(this.originalMemoryInfo.GetSizeMiB()); Console.WriteLine(memoryUpdateSpec); MemoryTypes.Info memoryInfo = memoryService.Get(this.vmId); Console.WriteLine(memoryInfo); VapiAuthHelper.Logout(); }
public override void Cleanup() { Console.WriteLine("\n\n#### Cleanup: Deleting all adapters that " + "were created"); foreach (string sataId in createdSataAdapters) { this.sataService.Delete(this.vmId, sataId); } Console.WriteLine("\n\n#### List all SATA adapters on the VM"); List <SataTypes.Summary> sataSummaries = this.sataService.List(this.vmId); sataSummaries.ForEach(i => Console.WriteLine(i)); VapiAuthHelper.Logout(); }
public override void Cleanup() { Console.WriteLine("\n\n### Cleanup: Revert the CPU configuration"); CpuTypes.UpdateSpec cpuUpdateSpec = new CpuTypes.UpdateSpec(); cpuUpdateSpec.SetCoresPerSocket( this.originalCpuInfo.GetCoresPerSocket()); cpuUpdateSpec.SetCount(this.originalCpuInfo.GetCount()); cpuUpdateSpec.SetHotAddEnabled( this.originalCpuInfo.GetHotAddEnabled()); cpuUpdateSpec.SetHotRemoveEnabled( this.originalCpuInfo.GetHotRemoveEnabled()); cpuService.Update(this.vmId, cpuUpdateSpec); Console.WriteLine(cpuUpdateSpec); CpuTypes.Info cpuInfo = cpuService.Get(this.vmId); Console.WriteLine("VM ID = " + this.vmId); Console.WriteLine(cpuInfo); VapiAuthHelper.Logout(); }
public override void Cleanup() { Console.WriteLine("\n\n#### Cleanup: Revert the boot " + "configuration"); BootTypes.UpdateSpec bootUpdateSpec = new BootTypes.UpdateSpec(); bootUpdateSpec.SetDelay(this.originalBootInfo.GetDelay()); bootUpdateSpec.SetEfiLegacyBoot( this.originalBootInfo.GetEfiLegacyBoot()); bootUpdateSpec.SetEnterSetupMode( this.originalBootInfo.GetEnterSetupMode()); bootUpdateSpec.SetNetworkProtocol( this.originalBootInfo.GetNetworkProtocol()); bootUpdateSpec.SetRetry(this.originalBootInfo.GetRetry()); bootUpdateSpec.SetRetryDelay( this.originalBootInfo.GetRetryDelay()); bootUpdateSpec.SetType(this.originalBootInfo.Get_Type()); this.bootService.Update(this.vmId, bootUpdateSpec); BootTypes.Info bootInfo = this.bootService.Get(this.vmId); Console.WriteLine(bootInfo); VapiAuthHelper.Logout(); }
public override void Cleanup() { VapiAuthHelper.Logout(); }