Skip to content
Snippets Groups Projects
Commit b23b964a authored by Benedikt Wetzel's avatar Benedikt Wetzel Committed by Sören Henning
Browse files

Sort resources and load values correctly

parent 3a419255
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!144Sort resource and load values correctly,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -68,6 +68,18 @@ class TheodoliteExecutor( ...@@ -68,6 +68,18 @@ class TheodoliteExecutor(
afterTeardownDelay = config.execution.afterTeardownDelay afterTeardownDelay = config.execution.afterTeardownDelay
) )
if (config.load.loadValues != config.load.loadValues.sorted()) {
config.load.loadValues = config.load.loadValues.sorted()
logger.info { "Load values are not sorted correctly, Theodolite sorts them in ascending order." +
"New order is: ${config.load.loadValues}" }
}
if (config.resources.resourceValues != config.resources.resourceValues.sorted()) {
config.resources.resourceValues = config.resources.resourceValues.sorted()
logger.info { "Load values are not sorted correctly, Theodolite sorts them in ascending order." +
"New order is: ${config.resources.resourceValues}" }
}
return Config( return Config(
loads = config.load.loadValues.map { load -> LoadDimension(load, loadDimensionPatcherDefinition) }, loads = config.load.loadValues.map { load -> LoadDimension(load, loadDimensionPatcherDefinition) },
resources = config.resources.resourceValues.map { resource -> resources = config.resources.resourceValues.map { resource ->
......
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