Adding StorageHub rules

This commit is contained in:
Luca Frosini 2020-04-03 14:36:28 +02:00
parent d53dd33644
commit 185e104127
5 changed files with 32 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class TestRules extends ContextTest {
allRules();
File rulesDirectory = getRulesDirectory();
File rulesDirFile = new File(rulesDirectory, "StorageHub");
File ruleFile = new File(rulesDirFile, "StorageHub-getVreRootFolder.json");
File ruleFile = new File(rulesDirFile, "StorageHub-getVreFolderRecents.json");
testRule(ruleFile);
}

View File

@ -0,0 +1,5 @@
DataAccess,StorageHub,/workspace/verefolders
DataAccess,StorageHub,/workspace/vrefodlers
DataAccess,StorageHub,getVreFolders
DataAccess,StorageHub,/workspace/verefolders/
DataAccess,StorageHub,/workspace/vrefodlers/
1 DataAccess StorageHub /workspace/verefolders
2 DataAccess StorageHub /workspace/vrefodlers
3 DataAccess StorageHub getVreFolders
4 DataAccess StorageHub /workspace/verefolders/
5 DataAccess StorageHub /workspace/vrefodlers/

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "StorageHub",
"calledMethodRegex": "\/workspace\/v(re|ere|er)fo(ld|dl)ers(\/){0,1}|getVreFolders"
},
"replace": {
"serviceClass": "DataAccess",
"serviceName": "StorageHub",
"calledMethod": "getVreFolders"
}
}

View File

@ -0,0 +1,2 @@
DataAccess,StorageHub,/workspace/vrefolder/recents
DataAccess,StorageHub,getVreFolderRecents
1 DataAccess StorageHub /workspace/vrefolder/recents
2 DataAccess StorageHub getVreFolderRecents

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "StorageHub",
"calledMethodRegex": "\/workspace\/vrefolder\/recents|getVreFolderRecents"
},
"replace": {
"serviceClass": "DataAccess",
"serviceName": "StorageHub",
"calledMethod": "getVreFolderRecents"
}
}