Skip to content
Snippets Groups Projects
Commit 0ed3bec6 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

reformat code

parent 23478893
No related branches found
No related tags found
1 merge request!201Introduce action commands
Pipeline #5821 passed
...@@ -115,16 +115,6 @@ internal class BenchmarkStateCheckerTest { ...@@ -115,16 +115,6 @@ internal class BenchmarkStateCheckerTest {
return actionSelector 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 { private fun createAndDeployConfigmapResourceSet(): ResourceSets {
// create test deployment // create test deployment
val resourceBuilder = DeploymentBuilder() val resourceBuilder = DeploymentBuilder()
...@@ -153,6 +143,15 @@ internal class BenchmarkStateCheckerTest { ...@@ -153,6 +143,15 @@ internal class BenchmarkStateCheckerTest {
return set 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 @Test
fun checkIfResourceIsInfrastructure() { fun checkIfResourceIsInfrastructure() {
val resourceSets = listOf(createAndDeployConfigmapResourceSet()) val resourceSets = listOf(createAndDeployConfigmapResourceSet())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment