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:
@@ -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{},
|
||||
}},
|
||||
}}))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user