Mercurial > stress-tester
changeset 900:8cb5192c4b62
lookups - name required
author | Devel 1 |
---|---|
date | Tue, 10 Apr 2018 13:47:02 +0200 |
parents | dc4a6b3fe009 |
children | a609224a38df |
files | stress-tester/src/main/java/com/passus/st/lookup/LookupsNodeDefinitionCreator.java stress-tester/src/test/java/com/passus/st/lookup/LookupsDomainConfiguratorTest.java stress-tester/src/test/resources/com/passus/st/config/test_job_config.yml |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/lookup/LookupsNodeDefinitionCreator.java Tue Apr 10 13:47:02 2018 +0200 +++ b/stress-tester/src/main/java/com/passus/st/lookup/LookupsNodeDefinitionCreator.java Tue Apr 10 13:47:02 2018 +0200 @@ -1,5 +1,6 @@ package com.passus.st.lookup; +import static com.passus.config.schema.ConfigurationSchemaBuilder.*; import com.passus.config.schema.DynaKeyValueVaryListNodeDefinition; import com.passus.config.schema.NodeDefinition; import com.passus.config.schema.NodeDefinitionCreator; @@ -9,7 +10,8 @@ public NodeDefinition createLookupsListDef(boolean transformToObject) { return new DynaKeyValueVaryListNodeDefinition("type", LookupFactory.getInstance()) - .setTransformToPluginObject(transformToObject); + .setTransformToPluginObject(transformToObject) + .addAdditionalChildDef(tupleDef("name", valueDef())); } @Override
--- a/stress-tester/src/test/java/com/passus/st/lookup/LookupsDomainConfiguratorTest.java Tue Apr 10 13:47:02 2018 +0200 +++ b/stress-tester/src/test/java/com/passus/st/lookup/LookupsDomainConfiguratorTest.java Tue Apr 10 13:47:02 2018 +0200 @@ -18,6 +18,7 @@ private final String lookupsConfig = "lookups:\n" + " - type: csvFile\n" + + " name: csv\n" + " fileName: 'c:\\test.csv'\n"; @Test
--- a/stress-tester/src/test/resources/com/passus/st/config/test_job_config.yml Tue Apr 10 13:47:02 2018 +0200 +++ b/stress-tester/src/test/resources/com/passus/st/config/test_job_config.yml Tue Apr 10 13:47:02 2018 +0200 @@ -42,6 +42,7 @@ lookups: - type: csvFile + name: csv fileName: c:\csv appVars: