diff --git a/theodolite/src/test/kotlin/theodolite/benchmark/ActionCommandTest.kt b/theodolite/src/test/kotlin/theodolite/benchmark/ActionCommandTest.kt index 0b9f89aa09dacad9d6cfc96e5999397a7f95a133..ef73d8973ec79f0a369a8c1f364f73ebb3341f43 100644 --- a/theodolite/src/test/kotlin/theodolite/benchmark/ActionCommandTest.kt +++ b/theodolite/src/test/kotlin/theodolite/benchmark/ActionCommandTest.kt @@ -10,15 +10,5 @@ class ActionCommandTest { @Test fun testAction() { - val action = ActionCommand(DefaultKubernetesClient().inNamespace("default")) - val result = action.exec(mutableMapOf( - Pair("app.kubernetes.io/name","grafana") - ), - container = "grafana", - command = "ls /") - println("out is: " + result.first) - println("error is: " + result.second) - - } } \ No newline at end of file diff --git a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt index e294ea539ea60104cc00e9f73de790302ad52670..b4d5950542c40aba0f39b1be772823a3de389793 100644 --- a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt +++ b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt @@ -34,6 +34,13 @@ class BenchmarkCRDummy(name: String) { benchmark.sut.resources = emptyList() benchmark.loadGenerator.resources = emptyList() + benchmark.infrastructure.beforeActions = emptyList() + benchmark.infrastructure.afterActions = emptyList() + benchmark.sut.beforeActions = emptyList() + benchmark.sut.afterActions = emptyList() + benchmark.loadGenerator.beforeActions = emptyList() + benchmark.loadGenerator.afterActions = emptyList() + benchmark.resourceTypes = emptyList() benchmark.loadTypes = emptyList() benchmark.kafkaConfig = kafkaConfig diff --git a/theodolite/src/test/kotlin/theodolite/execution/operator/ControllerTest.kt b/theodolite/src/test/kotlin/theodolite/execution/operator/ControllerTest.kt index 7e0532aff36cac2fb1a1c718415315b8f54052c2..6ea69689847afeb8f9fc36de2944c6fdcf4702ad 100644 --- a/theodolite/src/test/kotlin/theodolite/execution/operator/ControllerTest.kt +++ b/theodolite/src/test/kotlin/theodolite/execution/operator/ControllerTest.kt @@ -32,10 +32,11 @@ class ControllerTest { @BeforeEach fun setUp() { server.before() - this.controller = TheodoliteOperator().getController( + val operator = TheodoliteOperator() + this.controller = operator.getController( client = server.client, - executionStateHandler = ExecutionStateHandler(server.client), - benchmarkStateHandler = BenchmarkStateHandler(server.client) + executionStateHandler = operator.getExecutionStateHandler(client = server.client), + benchmarkStateChecker = operator.getBenchmarkStateChecker(client = server.client) ) // benchmark diff --git a/theodolite/src/test/kotlin/theodolite/execution/operator/ExecutionEventHandlerTest.kt b/theodolite/src/test/kotlin/theodolite/execution/operator/ExecutionEventHandlerTest.kt index d8db7ab3b64ce3856984ddbc279ef148aa325e73..c850e84f225bab7fc0b5eb145f9e655567de43d0 100644 --- a/theodolite/src/test/kotlin/theodolite/execution/operator/ExecutionEventHandlerTest.kt +++ b/theodolite/src/test/kotlin/theodolite/execution/operator/ExecutionEventHandlerTest.kt @@ -36,8 +36,8 @@ class ExecutionEventHandlerTest { val operator = TheodoliteOperator() this.controller = operator.getController( client = server.client, - executionStateHandler = ExecutionStateHandler(client = server.client), - benchmarkStateHandler = BenchmarkStateHandler(client = server.client) + executionStateHandler = operator.getExecutionStateHandler(client = server.client), + benchmarkStateChecker = operator.getBenchmarkStateChecker(client = server.client) ) this.factory = operator.getExecutionEventHandler(this.controller, server.client)