diff --git a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt index ffb6cc3d24a0ccd9044aba7c76b9822562fb0d4f..f3af42548d3bfc0d12e9f664d11cce1ae424e748 100644 --- a/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt +++ b/theodolite/src/test/kotlin/theodolite/execution/operator/BenchmarkStateCheckerTest.kt @@ -115,16 +115,6 @@ internal class BenchmarkStateCheckerTest { return actionSelector } - @Test - fun checkIfResourceIsDeployed() { - // pod with matching labels are deployed - assertTrue(checker.checkIfResourceIsDeployed(getActionSelector("app" to "pod1"))) - - // no pod with matching labels are deployed - assertFalse(checker.checkIfResourceIsDeployed(getActionSelector("app" to "pod0"))) - } - - private fun createAndDeployConfigmapResourceSet(): ResourceSets { // create test deployment val resourceBuilder = DeploymentBuilder() @@ -153,6 +143,15 @@ internal class BenchmarkStateCheckerTest { return set } + @Test + fun checkIfResourceIsDeployed() { + // pod with matching labels are deployed + assertTrue(checker.checkIfResourceIsDeployed(getActionSelector("app" to "pod1"))) + + // no pod with matching labels are deployed + assertFalse(checker.checkIfResourceIsDeployed(getActionSelector("app" to "pod0"))) + } + @Test fun checkIfResourceIsInfrastructure() { val resourceSets = listOf(createAndDeployConfigmapResourceSet())