Skip to content
Snippets Groups Projects
Commit 5ec2003c authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch '229-sort-input-values' into 'theodolite-kotlin'

Sort resource and load values correctly

See merge request !144
parents 3a419255 b23b964a
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
Pipeline #3522 passed
......@@ -68,6 +68,18 @@ class TheodoliteExecutor(
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(
loads = config.load.loadValues.map { load -> LoadDimension(load, loadDimensionPatcherDefinition) },
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