Mercurial > stress-tester
changeset 798:8a244bf83d7d
Config attribute prefix changed (old @ new *).
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilter.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilter.java Thu Dec 21 12:18:41 2017 +0100 @@ -182,7 +182,7 @@ ); HeaderOperationNodeDefinition setSessionDef = new HeaderOperationNodeDefinition(mapDef); - setSessionDef.addParam(tupleDef("@autocreate", valueDefBool()).setRequired(false)); + setSessionDef.addParam(tupleDef("*autocreate", valueDefBool()).setRequired(false)); HeaderOperationNodeDefinition setGlobalDef = new HeaderOperationNodeDefinition(mapDef);
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTransformer.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTransformer.java Thu Dec 21 12:18:41 2017 +0100 @@ -38,7 +38,7 @@ try { errors.pushNestedPath(mapTupleNode.getName()); switch (mapTupleNode.getName()) { - case "@autocreate": + case "*autocreate": autocreate = extractBoolean(mapTupleNode, errors); break; default:
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilter.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilter.java Thu Dec 21 12:18:41 2017 +0100 @@ -250,7 +250,7 @@ HeaderOperationNodeDefinition setSessionDef = new HeaderOperationNodeDefinition( valueDef() ); - setSessionDef.addParam(tupleDef("@autocreate", valueDefBool()).setRequired(false)); + setSessionDef.addParam(tupleDef("*autocreate", valueDefBool()).setRequired(false)); HeaderOperationNodeDefinition setGlobalDef = new HeaderOperationNodeDefinition( valueDef()
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java Thu Dec 21 12:18:41 2017 +0100 @@ -43,7 +43,7 @@ try { errors.pushNestedPath(mapTupleNode.getName()); switch (mapTupleNode.getName()) { - case "@autocreate": + case "*autocreate": autocreate = extractBoolean(mapTupleNode, errors); break; default:
--- a/stress-tester/src/main/java/com/passus/st/config/ConfigUtils.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/config/ConfigUtils.java Thu Dec 21 12:18:41 2017 +0100 @@ -15,7 +15,7 @@ public static final char PREFIX_OPERATOR = '$'; - public static final char PREFIX_PARAMETER = '@'; + public static final char PREFIX_PARAMETER = '*'; private ConfigUtils() { }
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTest.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpResponseContentExtractorFilterTest.java Thu Dec 21 12:18:41 2017 +0100 @@ -77,7 +77,7 @@ + " \"req.uri\": {$contains: \"/pydio/\"}\n" + " operations:\n" + " setSessionParam:\n" - + " \"@autocreate\": true\n" + + " \"*autocreate\": true\n" + " SecureToken: {$regex: '\"SECURE_TOKEN\"[ ]*:[ ]*\"(.*?)\"'}\n" + " addGlobalParam:\n" + " SomeVariable: {$xpath: 'root.abc'}\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTest.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTest.java Thu Dec 21 12:18:41 2017 +0100 @@ -170,7 +170,7 @@ + " addSessionParam: \n" + " NewParam1: NewParamValue1\n" + " setSessionParam: \n" - + " \"@autocreate\": true\n" + + " \"*autocreate\": true\n" + " NewParam2: NewParamValue2\n" + " removeGlobalParam: GlobalParamName\n" + " addGlobalParam: \n"
--- a/stress-tester/src/test/java/com/passus/st/config/HeaderOperationNodeDefinitionTest.java Thu Dec 21 12:13:54 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/config/HeaderOperationNodeDefinitionTest.java Thu Dec 21 12:18:41 2017 +0100 @@ -21,11 +21,11 @@ CCompositeNode rootNode = readNodeFromString( "op:\n" + " Header-Name: Header-Value\n" - + " \"@type\": type" + + " \"*type\": type" ); HeaderOperationNodeDefinition def = new HeaderOperationNodeDefinition(); - def.addParam("@type", valueDef()); + def.addParam("*type", valueDef()); MapNodeDefinition rootNodeDef = mapDef( tupleDef("op", def) );