Fixed rules

This commit is contained in:
Luca Frosini 2019-11-14 18:13:08 +01:00
parent 7bf508a480
commit 7f0ae4a681
3 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ public class TestRegexReplaceRules {
String[] aggregationTests = new String[]{ String[] aggregationTests = new String[]{
"AuthorizationService-generate", "AuthorizationService-retrieve", "AuthorizationService-scopes", "AuthorizationService-generate", "AuthorizationService-retrieve", "AuthorizationService-scopes",
"TagMe-tag", "GeoNetwork-login", "CkanConnector-connect", "CkanConnector-disconnect" "TagMe-tag", "GeoNetwork-login", "CkanConnector-connect", "CkanConnector-disconnect",
"FullTextIndexNode-insert", "FullTextIndexNode-delete"
}; };
for(String aggregationTest : aggregationTests) { for(String aggregationTest : aggregationTests) {
@ -40,7 +41,7 @@ public class TestRegexReplaceRules {
logger.info("{} -> {}", line, regexReplace.getReplace()); logger.info("{} -> {}", line, regexReplace.getReplace());
} else { } else {
logger.error("{} does not match {}. This MUST not occur.", line, regexReplace.getRegex()); logger.error("{} does not match {}. This MUST not occur.", line, regexReplace.getRegex());
throw new Exception(line + "does not match "+ regexReplace.getRegex() + ". This MUST not occur."); throw new Exception(line + " does not match "+ regexReplace.getRegex() + ". This MUST not occur.");
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"regex": "^\/{0,1}gcube\/service\/connect.*", "regex": "^\/{0,1}gcube\/service\/connect.*",
"replace": "/gcube/service/connect", "replace": "connect",
"serviceClass": "DataAccess", "serviceClass": "DataAccess",
"serviceName": "CkanConnector" "serviceName": "CkanConnector"
} }

View File

@ -1,6 +1,6 @@
{ {
"regex": "^\/{0,1}gcube\/service\/disconnect.*", "regex": "^\/{0,1}gcube\/service\/disconnect.*",
"replace": "/gcube/service/disconnect", "replace": "disconnect",
"serviceClass": "DataAccess", "serviceClass": "DataAccess",
"serviceName": "CkanConnector" "serviceName": "CkanConnector"
} }