AzureMonitor: Parse non-fatal errors for Logs (#51320)

This commit is contained in:
Andres Martinez Gotor
2022-06-24 08:56:58 +02:00
committed by GitHub
parent 9e80e44b45
commit b10ddfdf8c
7 changed files with 174 additions and 6 deletions
@@ -235,7 +235,7 @@ func Test_executeQueryErrorWithDifferentLogAnalyticsCreds(t *testing.T) {
if res.Error == nil {
t.Fatal("expecting an error")
}
if !strings.Contains(res.Error.Error(), "Log Analytics credentials are no longer supported") {
if !strings.Contains(res.Error.Error(), "credentials for Log Analytics are no longer supported") {
t.Error("expecting the error to inform of bad credentials")
}
}