From 02e8ab8af562e76d01b0c782f819ec957c998c42 Mon Sep 17 00:00:00 2001 From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de> Date: Tue, 29 Mar 2022 11:31:08 +0200 Subject: [PATCH] fix test --- .../kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt | 4 +++- .../src/test/resources/k8s-resource-files/test-benchmark.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt index cbddbfbfc..bad9773d3 100644 --- a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt +++ b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkCRDummy.kt @@ -2,6 +2,7 @@ package theodolite.execution.operator import theodolite.benchmark.KubernetesBenchmark import theodolite.benchmark.Resources +import theodolite.benchmark.RolloutMode import theodolite.model.crd.BenchmarkCRD import theodolite.util.KafkaConfig @@ -20,11 +21,12 @@ class BenchmarkCRDummy(name: String) { kafkaConfig.bootstrapServer = "" kafkaConfig.topics = emptyList() + benchmarkCR.spec = benchmark benchmarkCR.metadata.name = name benchmarkCR.kind = "Benchmark" benchmarkCR.apiVersion = "v1" - + benchmark.rolloutMode = RolloutMode.DEFAULT benchmark.infrastructure = Resources() benchmark.sut = Resources() diff --git a/theodolite/src/test/resources/k8s-resource-files/test-benchmark.yaml b/theodolite/src/test/resources/k8s-resource-files/test-benchmark.yaml index ea9ee8471..e45ecb222 100644 --- a/theodolite/src/test/resources/k8s-resource-files/test-benchmark.yaml +++ b/theodolite/src/test/resources/k8s-resource-files/test-benchmark.yaml @@ -3,6 +3,7 @@ kind: benchmark metadata: name: example-benchmark spec: + rolloutMode: "default" sut: resources: - configMap: -- GitLab