Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622)

* update to alerting 20230418161049-5f374e58cb32
* rename renamed structs in https://github.com/grafana/alerting/pull/73
* update ValidateContactPoint to use BuildReceiverConfiguration
* update logger factory according to changes
* rewrite integration builder
Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
This commit is contained in:
Yuri Tseretyan
2023-04-25 13:39:46 -04:00
committed by GitHub
parent 12e5101b91
commit a8b4a4bb45
22 changed files with 179 additions and 198 deletions
@@ -108,7 +108,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test1",
UID: "uid1",
Status: "failed",
Error: alertingNotify.InvalidReceiverError{},
Error: alertingNotify.IntegrationValidationError{},
}},
}, {
Name: "test2",
@@ -116,7 +116,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test2",
UID: "uid2",
Status: "failed",
Error: alertingNotify.InvalidReceiverError{},
Error: alertingNotify.IntegrationValidationError{},
}},
}}))
})
@@ -128,7 +128,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test1",
UID: "uid1",
Status: "failed",
Error: alertingNotify.ReceiverTimeoutError{},
Error: alertingNotify.IntegrationTimeoutError{},
}},
}, {
Name: "test2",
@@ -136,7 +136,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test2",
UID: "uid2",
Status: "failed",
Error: alertingNotify.ReceiverTimeoutError{},
Error: alertingNotify.IntegrationTimeoutError{},
}},
}}))
})
@@ -148,7 +148,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test1",
UID: "uid1",
Status: "failed",
Error: alertingNotify.InvalidReceiverError{},
Error: alertingNotify.IntegrationValidationError{},
}},
}, {
Name: "test2",
@@ -156,7 +156,7 @@ func TestStatusForTestReceivers(t *testing.T) {
Name: "test2",
UID: "uid2",
Status: "failed",
Error: alertingNotify.ReceiverTimeoutError{},
Error: alertingNotify.IntegrationTimeoutError{},
}},
}}))
})