Added rules for GRSFPublisher refs #18057

This commit is contained in:
Luca Frosini 2019-11-25 11:04:53 +01:00
parent c2d006b996
commit c09944d4e9
11 changed files with 102 additions and 1 deletions

View File

@ -37,6 +37,11 @@ public class TestRules {
"FullTextIndexNode-search",
"geoanalytics-main-service-UNKNOWN",
"GeoNetwork-login",
"GRSFPublisher-create",
"GRSFPublisher-delete",
"GRSFPublisher-getURLandIdFromName",
"GRSFPublisher-UNKNOWN",
"GRSFPublisher-update",
"RConnector-connect",
"RConnector-UNKNOWN",
"ShareLatex-connect",
@ -96,7 +101,7 @@ public class TestRules {
@Test
public void testSingleRule() throws Exception {
testRule("storage-UNKNOWN");
testRule("GRSFPublisher-update");
}
}

View File

@ -0,0 +1,3 @@
Data-Catalogue,GRSFPublisher,UNKNOWN
Data-Catalogue,GRSFPublisher,/rest/firms/hello
Data-Catalogue,GRSFPublisher,/rest/ram/hello
1 Data-Catalogue GRSFPublisher UNKNOWN
2 Data-Catalogue GRSFPublisher /rest/firms/hello
3 Data-Catalogue GRSFPublisher /rest/ram/hello

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
"calledMethodRegex": ".*(hello)|(UNKNOWN).*"
},
"replace": {
"serviceClass": "Data-Catalogue",
"serviceName": "GRSFPublisher",
"calledMethod": "UNKNOWN"
}
}

View File

@ -0,0 +1,14 @@
Data-Catalogue,GRSFPublisher,/rest/firms/fishery/publish-product
Data-Catalogue,GRSFPublisher,/rest/firms/stock/publish-product
Data-Catalogue,GRSFPublisher,/rest/fishsource/fishery/publish-product
Data-Catalogue,GRSFPublisher,/rest/grsf/fishery/publish-product
Data-Catalogue,GRSFPublisher,rest/firms/stock/publish-product
Data-Catalogue,GRSFPublisher,rest/grsf/stock/publish-product
Data-Catalogue,GRSFPublisher,rest/ram/stock/publish-product
Data-Catalogue,GRSFPublisher,rest/grsf/fishery/publish-product
Data-Catalogue,GRSFPublisher,/rest/fishsource/stock/publish-product
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/publish-product
Data-Catalogue,GRSFPublisher,/rest/ram/stock/publish-product
Data-Catalogue,GRSFPublisher,rest/firms/fishery/publish-product
Data-Catalogue,GRSFPublisher,rest/fishsource/fishery/publish-product
Data-Catalogue,GRSFPublisher,rest/fishsource/stock/publish-product
1 Data-Catalogue GRSFPublisher /rest/firms/fishery/publish-product
2 Data-Catalogue GRSFPublisher /rest/firms/stock/publish-product
3 Data-Catalogue GRSFPublisher /rest/fishsource/fishery/publish-product
4 Data-Catalogue GRSFPublisher /rest/grsf/fishery/publish-product
5 Data-Catalogue GRSFPublisher rest/firms/stock/publish-product
6 Data-Catalogue GRSFPublisher rest/grsf/stock/publish-product
7 Data-Catalogue GRSFPublisher rest/ram/stock/publish-product
8 Data-Catalogue GRSFPublisher rest/grsf/fishery/publish-product
9 Data-Catalogue GRSFPublisher /rest/fishsource/stock/publish-product
10 Data-Catalogue GRSFPublisher /rest/grsf/stock/publish-product
11 Data-Catalogue GRSFPublisher /rest/ram/stock/publish-product
12 Data-Catalogue GRSFPublisher rest/firms/fishery/publish-product
13 Data-Catalogue GRSFPublisher rest/fishsource/fishery/publish-product
14 Data-Catalogue GRSFPublisher rest/fishsource/stock/publish-product

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
"calledMethodRegex": ".*publish-product.*"
},
"replace": {
"serviceClass": "Data-Catalogue",
"serviceName": "GRSFPublisher",
"calledMethod": "create"
}
}

View File

@ -0,0 +1,5 @@
Data-Catalogue,GRSFPublisher,/rest/firms/fishery/delete-product
Data-Catalogue,GRSFPublisher,/rest/firms/stock/delete-product
Data-Catalogue,GRSFPublisher,/rest/grsf/fishery/delete-product
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/delete-product
Data-Catalogue,GRSFPublisher,rest/firms/stock/delete-product
1 Data-Catalogue GRSFPublisher /rest/firms/fishery/delete-product
2 Data-Catalogue GRSFPublisher /rest/firms/stock/delete-product
3 Data-Catalogue GRSFPublisher /rest/grsf/fishery/delete-product
4 Data-Catalogue GRSFPublisher /rest/grsf/stock/delete-product
5 Data-Catalogue GRSFPublisher rest/firms/stock/delete-product

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
"calledMethodRegex": ".*delete-product.*"
},
"replace": {
"serviceClass": "Data-Catalogue",
"serviceName": "GRSFPublisher",
"calledMethod": "delete"
}
}

View File

@ -0,0 +1,13 @@
Data-Catalogue,GRSFPublisher,/rest/fishsource/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,/rest/fishsource/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,/rest/grsf/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/firms/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/firms/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/fishsource/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/fishsource/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/grsf/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/grsf/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/ram/fishery/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/ram/stock/get-catalogue-id-and-url-from-name
Data-Catalogue,GRSFPublisher,rest/ram/stock/get-catalogue-id-from-name
1 Data-Catalogue GRSFPublisher /rest/fishsource/fishery/get-catalogue-id-and-url-from-name
2 Data-Catalogue GRSFPublisher /rest/fishsource/stock/get-catalogue-id-and-url-from-name
3 Data-Catalogue GRSFPublisher /rest/grsf/fishery/get-catalogue-id-and-url-from-name
4 Data-Catalogue GRSFPublisher /rest/grsf/stock/get-catalogue-id-and-url-from-name
5 Data-Catalogue GRSFPublisher rest/firms/fishery/get-catalogue-id-and-url-from-name
6 Data-Catalogue GRSFPublisher rest/firms/stock/get-catalogue-id-and-url-from-name
7 Data-Catalogue GRSFPublisher rest/fishsource/fishery/get-catalogue-id-and-url-from-name
8 Data-Catalogue GRSFPublisher rest/fishsource/stock/get-catalogue-id-and-url-from-name
9 Data-Catalogue GRSFPublisher rest/grsf/fishery/get-catalogue-id-and-url-from-name
10 Data-Catalogue GRSFPublisher rest/grsf/stock/get-catalogue-id-and-url-from-name
11 Data-Catalogue GRSFPublisher rest/ram/fishery/get-catalogue-id-and-url-from-name
12 Data-Catalogue GRSFPublisher rest/ram/stock/get-catalogue-id-and-url-from-name
13 Data-Catalogue GRSFPublisher rest/ram/stock/get-catalogue-id-from-name

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
"calledMethodRegex": ".*get-catalogue-id-(and-url-){0,1}from-name.*"
},
"replace": {
"serviceClass": "Data-Catalogue",
"serviceName": "GRSFPublisher",
"calledMethod": "getURLandIdFromName"
}
}

View File

@ -0,0 +1 @@
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/update-product
1 Data-Catalogue GRSFPublisher /rest/grsf/stock/update-product

View File

@ -0,0 +1,12 @@
{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
"calledMethodRegex": ".*update-product.*"
},
"replace": {
"serviceClass": "Data-Catalogue",
"serviceName": "GRSFPublisher",
"calledMethod": "update"
}
}