Completed FullTextIndexNode refs #18054
This commit is contained in:
parent
c661f9a52c
commit
0f7fbaf79f
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"match": {
|
||||
"serviceClassRegex": "Index",
|
||||
"serviceNameRegex": "FullTextIndexNode",
|
||||
"calledMethodRegex": "^\/{0,1}delete\/.+\/.+"
|
||||
"calledMethodRegex": "^\/{0,1}delete.*"
|
||||
},
|
||||
"replace": {
|
||||
"serviceClass": "Index",
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"match": {
|
||||
"serviceClassRegex": "Index",
|
||||
"serviceNameRegex": "FullTextIndexNode",
|
||||
"calledMethodRegex": "^\/{0,1}dropCollection.*"
|
||||
},
|
||||
"replace": {
|
||||
"serviceClass": "Index",
|
||||
"serviceName": "FullTextIndexNode",
|
||||
"calledMethod": "dropCollection"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
Index,FullTextIndexNode,/dropCollection/3121eccdcbf9c6e982dcc5a2164b8b4029f51d8b1c448ddaf46316178d755c6f
|
||||
Index,FullTextIndexNode,/dropCollection/67fa6009551977585b7a4c97666a4bdbf18b8f533ab0ab679eb496ffbc15b93d
|
|
|
@ -2,7 +2,7 @@
|
|||
"match": {
|
||||
"serviceClassRegex": "Index",
|
||||
"serviceNameRegex": "FullTextIndexNode",
|
||||
"calledMethodRegex": "^\/{0,1}insert\/.+\/.+"
|
||||
"calledMethodRegex": "^\/{0,1}insert.*"
|
||||
},
|
||||
"replace": {
|
||||
"serviceClass": "Index",
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"match": {
|
||||
"serviceClassRegex": "Index",
|
||||
"serviceNameRegex": "FullTextIndexNode",
|
||||
"calledMethodRegex": "^\/{0,1}listCollections.*"
|
||||
},
|
||||
"replace": {
|
||||
"serviceClass": "Index",
|
||||
"serviceName": "FullTextIndexNode",
|
||||
"calledMethod": "listCollections"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
Index,FullTextIndexNode,/listCollections
|
||||
Index,FullTextIndexNode,listCollections
|
|
|
@ -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
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"match": {
|
||||
"serviceClassRegex": "Index",
|
||||
"serviceNameRegex": "FullTextIndexNode",
|
||||
"calledMethodRegex": "^\/{0,1}search.*"
|
||||
},
|
||||
"replace": {
|
||||
"serviceClass": "Index",
|
||||
"serviceName": "FullTextIndexNode",
|
||||
"calledMethod": "search"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
Index,FullTextIndexNode,search
|
||||
Index,FullTextIndexNode,/search
|
|
Loading…
Reference in New Issue