Mercurial > stress-tester
changeset 797:b7cd4dc24c18
HttpResponseContentExtractorFilter operations name changed
author | Devel 2 |
---|---|
date | Thu, 21 Dec 2017 12:13:54 +0100 |
parents | caa4151f8679 |
children | 8a244bf83d7d |
files | stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilter.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTransformer.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTest.java |
diffstat | 3 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilter.java Thu Dec 21 12:09:11 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilter.java Thu Dec 21 12:13:54 2017 +0100 @@ -188,10 +188,10 @@ KeyNameVaryListNodeDefinition operationsDef = new KeyNameVaryListNodeDefinition() .setNodeTransformer(new HttpResponseContentExtractorFilterTransformer()) - .add("$addSessionParam", setSessionDef) - .add("$setSessionParam", setSessionDef) - .add("$addGlobalParam", setGlobalDef) - .add("$setGlobalParam", setGlobalDef); + .add("addSessionParam", setSessionDef) + .add("setSessionParam", setSessionDef) + .add("addGlobalParam", setGlobalDef) + .add("setGlobalParam", setGlobalDef); return mapDef( tupleDef("operations", operationsDef),
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTransformer.java Thu Dec 21 12:09:11 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTransformer.java Thu Dec 21 12:13:54 2017 +0100 @@ -110,16 +110,16 @@ errors.pushNestedPath(opName); Operation op = null; switch (opName.toLowerCase()) { - case "$addsessionparam": + case "addsessionparam": op = createSetSessionParamOperation(tuple, errors, true); break; - case "$setsessionparam": + case "setsessionparam": op = createSetSessionParamOperation(tuple, errors, false); break; - case "$addglobalparam": + case "addglobalparam": op = createSetGlobalParamOperation(tuple, errors, true); break; - case "$setglobalparam": + case "setglobalparam": op = createSetGlobalParamOperation(tuple, errors, false); break; default:
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTest.java Thu Dec 21 12:09:11 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTest.java Thu Dec 21 12:13:54 2017 +0100 @@ -76,12 +76,12 @@ + " applyIf:\n" + " \"req.uri\": {$contains: \"/pydio/\"}\n" + " operations:\n" - + " $setSessionParam:\n" + + " setSessionParam:\n" + " \"@autocreate\": true\n" + " SecureToken: {$regex: '\"SECURE_TOKEN\"[ ]*:[ ]*\"(.*?)\"'}\n" - + " $addGlobalParam:\n" + + " addGlobalParam:\n" + " SomeVariable: {$xpath: 'root.abc'}\n" - + " $addGlobalParam:\n" + + " addGlobalParam:\n" + " SomeVariable2: {$jsonpath: '$.root.abc'}\n"; Errors errors = new Errors();