diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-01-11 16:33:15 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-01-11 16:33:15 +0100 |
| commit | 9dbb7bbcc2202955c715aaa3b28c70641a2fbd5b (patch) | |
| tree | bea8e47037660c88df42e04105e7a0b7f709173a /simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org | |
| parent | f2028b23e25c8520f25a53771a1b261c4e991bb8 (diff) | |
Add support for hypervisor selection
This change allows users to select the hypervisor scheduler to use when
deploying hypervisors onto bare-metal machines.
Diffstat (limited to 'simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org')
| -rw-r--r-- | simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimVirtDriverTest.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimVirtDriverTest.kt b/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimVirtDriverTest.kt index 163b326a..1831eae0 100644 --- a/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimVirtDriverTest.kt +++ b/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimVirtDriverTest.kt @@ -34,6 +34,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertAll import org.opendc.compute.core.Flavor import org.opendc.compute.core.virt.HypervisorEvent +import org.opendc.simulator.compute.SimFairShareHypervisorProvider import org.opendc.simulator.compute.SimMachineModel import org.opendc.simulator.compute.model.MemoryUnit import org.opendc.simulator.compute.model.ProcessingNode @@ -75,7 +76,7 @@ internal class SimVirtDriverTest { var overcommittedWork = 0L scope.launch { - val virtDriver = SimVirtDriver(this) + val virtDriver = SimVirtDriver(this, SimFairShareHypervisorProvider()) val vmm = SimWorkloadImage(UUID.randomUUID(), "vmm", emptyMap(), virtDriver) val duration = 5 * 60L val vmImageA = SimWorkloadImage( |
