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

Clean up

parent 4917896f
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!97Restructuring to create the PatcherDefinition inside the TheodoliteExecutor,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
This commit is part of merge request !97. Comments created here will be created in the context of that merge request.
......@@ -45,17 +45,12 @@ class KubernetesBenchmark : Benchmark {
val resources = loadKubernetesResources(this.appResource + this.loadGenResource)
val patcherFactory = PatcherFactory()
// patch the load dimension
load.getType().map { patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources) }
.forEach { patcher -> patcher.patch(load.get().toString()) }
// patch the resources
res.getType().map { patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources) }
.forEach { patcher -> patcher.patch(res.get().toString()) }
// patch the load dimension the resources
load.getType().forEach { patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources).patch(load.get().toString()) }
res.getType().forEach{ patcherDefinition -> patcherFactory.createPatcher(patcherDefinition, resources).patch(res.get().toString()) }
// Patch the given overrides
configurationOverrides.forEach { override ->
patcherFactory.createPatcher(override.patcher, resources).patch(override.value) }
configurationOverrides.forEach { override -> patcherFactory.createPatcher(override.patcher, resources).patch(override.value) }
return KubernetesBenchmarkDeployment(
......
......@@ -53,7 +53,6 @@ class ResourceLimitPatcherTest {
k8sResource.spec.template.spec.containers.filter { it.name == defCPU.container }
.forEach {
println(it)
assertTrue(it.resources.limits["cpu"].toString() == cpuValue)
assertTrue(it.resources.limits["memory"].toString() == memValue)
}
......
......@@ -53,7 +53,6 @@ class ResourceRequestPatcherTest {
k8sResource.spec.template.spec.containers.filter { it.name == defCPU.container }
.forEach {
println(it)
assertTrue(it.resources.requests["cpu"].toString() == cpuValue)
assertTrue(it.resources.requests["memory"].toString() == memValue)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment