Completed FullTextIndexNode refs #18054

This commit is contained in:
Luca Frosini 2019-11-15 15:59:46 +01:00
parent c661f9a52c
commit 0f7fbaf79f
10 changed files with 65 additions and 20 deletions

View File

@ -21,9 +21,18 @@ public class TestRules {
public void testAllRules() throws Exception {
String[] aggregationTests = new String[]{
"AuthorizationService-generate", "AuthorizationService-retrieve", "AuthorizationService-scopes",
"TagMe-tag", "GeoNetwork-login", "CkanConnector-connect", "CkanConnector-disconnect",
"FullTextIndexNode-insert", "FullTextIndexNode-delete"
"AuthorizationService-generate",
"AuthorizationService-retrieve",
"AuthorizationService-scopes",
"CkanConnector-connect",
"CkanConnector-disconnect",
"FullTextIndexNode-delete",
"FullTextIndexNode-dropCollection",
"FullTextIndexNode-insert",
"FullTextIndexNode-listCollections",
"FullTextIndexNode-search",
"GeoNetwork-login",
"TagMe-tag"
};
for(String aggregationTest : aggregationTests) {
@ -59,7 +68,7 @@ public class TestRules {
@Test
public void testSingleRule() throws Exception {
testRule("TagMe-tag");
testRule("FullTextIndexNode-listCollections");
}
}

View File

@ -2,7 +2,7 @@
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
"calledMethodRegex": "^\/{0,1}delete\/.+\/.+"
"calledMethodRegex": "^\/{0,1}delete.*"
},
"replace": {
"serviceClass": "Index",

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
"calledMethodRegex": "^\/{0,1}dropCollection.*"
},
"replace": {
"serviceClass": "Index",
"serviceName": "FullTextIndexNode",
"calledMethod": "dropCollection"
}
}

View File

@ -0,0 +1,2 @@
Index,FullTextIndexNode,/dropCollection/3121eccdcbf9c6e982dcc5a2164b8b4029f51d8b1c448ddaf46316178d755c6f
Index,FullTextIndexNode,/dropCollection/67fa6009551977585b7a4c97666a4bdbf18b8f533ab0ab679eb496ffbc15b93d
1 Index FullTextIndexNode /dropCollection/3121eccdcbf9c6e982dcc5a2164b8b4029f51d8b1c448ddaf46316178d755c6f
2 Index FullTextIndexNode /dropCollection/67fa6009551977585b7a4c97666a4bdbf18b8f533ab0ab679eb496ffbc15b93d

View File

@ -2,7 +2,7 @@
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
"calledMethodRegex": "^\/{0,1}insert\/.+\/.+"
"calledMethodRegex": "^\/{0,1}insert.*"
},
"replace": {
"serviceClass": "Index",

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
"calledMethodRegex": "^\/{0,1}listCollections.*"
},
"replace": {
"serviceClass": "Index",
"serviceName": "FullTextIndexNode",
"calledMethod": "listCollections"
}
}

View File

@ -0,0 +1,2 @@
Index,FullTextIndexNode,/listCollections
Index,FullTextIndexNode,listCollections
1 Index FullTextIndexNode /listCollections
2 Index FullTextIndexNode listCollections

View File

@ -1,17 +1,11 @@
Index,FullTextIndexNode,getJSONTransformer
Index,FullTextIndexNode,search
Index,FullTextIndexNode,setCollectionFieldsAlias
Index,FullTextIndexNode,setJSONTransformer
Index,FullTextIndexNode,/collectionsDocCount
Index,FullTextIndexNode,/deleteCompleteCollectionInfo
Index,FullTextIndexNode,/dropCollection/3121eccdcbf9c6e982dcc5a2164b8b4029f51d8b1c448ddaf46316178d755c6f
Index,FullTextIndexNode,/dropCollection/67fa6009551977585b7a4c97666a4bdbf18b8f533ab0ab679eb496ffbc15b93d
Index,FullTextIndexNode,/getCollectionFieldsAlias
Index,FullTextIndexNode,/getCompleteCollectionInfo
Index,FullTextIndexNode,/insertWithRecID
Index,FullTextIndexNode,/listCollections
Index,FullTextIndexNode,/reIndex
Index,FullTextIndexNode,/search
Index,FullTextIndexNode,/setCompleteCollectionInfo
Index,FullTextIndexNode,getAllCollectionFields
Index,FullTextIndexNode,listCollections
Index,FullTextIndexNode,setCollectionFieldsAlias
Index,FullTextIndexNode,/getCollectionFieldsAlias
Index,FullTextIndexNode,/collectionsDocCount
Index,FullTextIndexNode,/getCompleteCollectionInfo
Index,FullTextIndexNode,/setCompleteCollectionInfo
Index,FullTextIndexNode,/deleteCompleteCollectionInfo
Index,FullTextIndexNode,/insertWithRecID
Index,FullTextIndexNode,/reIndex
1 Index FullTextIndexNode getJSONTransformer
Index FullTextIndexNode search
Index FullTextIndexNode setCollectionFieldsAlias
2 Index FullTextIndexNode setJSONTransformer
Index FullTextIndexNode /collectionsDocCount
Index FullTextIndexNode /deleteCompleteCollectionInfo
Index FullTextIndexNode /dropCollection/3121eccdcbf9c6e982dcc5a2164b8b4029f51d8b1c448ddaf46316178d755c6f
Index FullTextIndexNode /dropCollection/67fa6009551977585b7a4c97666a4bdbf18b8f533ab0ab679eb496ffbc15b93d
Index FullTextIndexNode /getCollectionFieldsAlias
Index FullTextIndexNode /getCompleteCollectionInfo
Index FullTextIndexNode /insertWithRecID
Index FullTextIndexNode /listCollections
Index FullTextIndexNode /reIndex
Index FullTextIndexNode /search
Index FullTextIndexNode /setCompleteCollectionInfo
3 Index FullTextIndexNode getAllCollectionFields
4 Index FullTextIndexNode listCollections setCollectionFieldsAlias
5 Index FullTextIndexNode /getCollectionFieldsAlias
6 Index FullTextIndexNode /collectionsDocCount
7 Index FullTextIndexNode /getCompleteCollectionInfo
8 Index FullTextIndexNode /setCompleteCollectionInfo
9 Index FullTextIndexNode /deleteCompleteCollectionInfo
10 Index FullTextIndexNode /insertWithRecID
11 Index FullTextIndexNode /reIndex

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
"calledMethodRegex": "^\/{0,1}search.*"
},
"replace": {
"serviceClass": "Index",
"serviceName": "FullTextIndexNode",
"calledMethod": "search"
}
}

View File

@ -0,0 +1,2 @@
Index,FullTextIndexNode,search
Index,FullTextIndexNode,/search
1 Index FullTextIndexNode search
2 Index FullTextIndexNode /search