diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-09 12:57:12 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-09 13:03:20 +0100 |
| commit | 970f5c6f653c8442ecd9b73b208a53a2dbb9a150 (patch) | |
| tree | aa5724ee239cb831e48d45aef8327d7b487e2ad1 /simulator/opendc-compute/opendc-compute-simulator/src/test | |
| parent | e97774dbf274fcb57b9d173f9d674a2ef1b982af (diff) | |
compute: Add lifecycle methods for Server instances
This change adds more methods for controlling the lifecycle of Server instances.
Diffstat (limited to 'simulator/opendc-compute/opendc-compute-simulator/src/test')
| -rw-r--r-- | simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt b/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt index e48fd947..931d8d68 100644 --- a/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt +++ b/simulator/opendc-compute/opendc-compute-simulator/src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt @@ -148,7 +148,13 @@ internal class SimHostTest { override val image: Image ) : Server { override val tags: Map<String, String> = emptyMap() - override val state: ServerState = ServerState.BUILD + override val state: ServerState = ServerState.TERMINATED + + override suspend fun start() {} + + override suspend fun stop() {} + + override suspend fun delete() {} override fun watch(watcher: ServerWatcher) {} |
