Added rules for GRSFPublisher refs #18057
This commit is contained in:
parent
c2d006b996
commit
c09944d4e9
|
@ -37,6 +37,11 @@ public class TestRules {
|
||||||
"FullTextIndexNode-search",
|
"FullTextIndexNode-search",
|
||||||
"geoanalytics-main-service-UNKNOWN",
|
"geoanalytics-main-service-UNKNOWN",
|
||||||
"GeoNetwork-login",
|
"GeoNetwork-login",
|
||||||
|
"GRSFPublisher-create",
|
||||||
|
"GRSFPublisher-delete",
|
||||||
|
"GRSFPublisher-getURLandIdFromName",
|
||||||
|
"GRSFPublisher-UNKNOWN",
|
||||||
|
"GRSFPublisher-update",
|
||||||
"RConnector-connect",
|
"RConnector-connect",
|
||||||
"RConnector-UNKNOWN",
|
"RConnector-UNKNOWN",
|
||||||
"ShareLatex-connect",
|
"ShareLatex-connect",
|
||||||
|
@ -96,7 +101,7 @@ public class TestRules {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSingleRule() throws Exception {
|
public void testSingleRule() throws Exception {
|
||||||
testRule("storage-UNKNOWN");
|
testRule("GRSFPublisher-update");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Data-Catalogue,GRSFPublisher,UNKNOWN
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/firms/hello
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/ram/hello
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "Data-Catalogue",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*(hello)|(UNKNOWN).*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "Data-Catalogue",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "UNKNOWN"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "Data-Catalogue",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*publish-product.*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "Data-Catalogue",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "create"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "Data-Catalogue",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*delete-product.*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "Data-Catalogue",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "delete"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/update-product
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "Data-Catalogue",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*update-product.*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "Data-Catalogue",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "update"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue