[Alerting]: implement backend checking for forking to Lotex ruler (#32208)
* Rename DatasourceId path parameter * Implement fork ruler backendType() * Apply suggestions from code review
This commit is contained in:
@@ -16,8 +16,8 @@ func TestToMacaronPath(t *testing.T) {
|
||||
expectedOutputPath: "",
|
||||
},
|
||||
{
|
||||
inputPath: "/ruler/{DatasourceId}/api/v1/rules/{Namespace}/{Groupname}",
|
||||
expectedOutputPath: "/ruler/:DatasourceId/api/v1/rules/:Namespace/:Groupname",
|
||||
inputPath: "/ruler/{Recipient}/api/v1/rules/{Namespace}/{Groupname}",
|
||||
expectedOutputPath: "/ruler/:Recipient/api/v1/rules/:Namespace/:Groupname",
|
||||
},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user