From f5efde88ec95fc139e957303615c302d4aa2035d Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 9 Mar 2021 15:05:47 +0100 Subject: compute: Introduce labels and meta-data for resources This change adds the ability to define labels and meta-data for resources. This can be used in the future to identify servers and pass data between client and server. --- .../src/test/kotlin/org/opendc/compute/simulator/SimHostTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'simulator/opendc-compute/opendc-compute-simulator/src/test') 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 931d8d68..b2f6bfc3 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 @@ -147,7 +147,10 @@ internal class SimHostTest { override val flavor: Flavor, override val image: Image ) : Server { - override val tags: Map = emptyMap() + override val labels: Map = emptyMap() + + override val meta: Map = emptyMap() + override val state: ServerState = ServerState.TERMINATED override suspend fun start() {} -- cgit v1.2.3