Alerting: Remove ConfigHash() from the Alertmanager interface (#77134)

This commit is contained in:
Santiago
2023-10-25 17:11:53 +02:00
committed by GitHub
parent 6ee52ac80c
commit f9fc2e4568
5 changed files with 9 additions and 18 deletions

View File

@@ -395,10 +395,6 @@ func (am *alertmanager) PutAlerts(_ context.Context, postableAlerts apimodels.Po
return am.Base.PutAlerts(alerts)
}
func (am *alertmanager) ConfigHash() [16]byte {
return am.Base.ConfigHash()
}
func (am *alertmanager) OrgID() int64 {
return am.orgID
}

View File

@@ -58,7 +58,6 @@ type Alertmanager interface {
StopAndWait()
Ready() bool
OrgID() int64
ConfigHash() [16]byte
}
type MultiOrgAlertmanager struct {

View File

@@ -288,7 +288,6 @@ func TestMultiOrgAlertmanager_AlertmanagerFor(t *testing.T) {
require.NoError(t, err)
require.Equal(t, "N/A", *am.GetStatus().VersionInfo.Version)
require.Equal(t, int64(2), am.OrgID())
require.NotNil(t, am.ConfigHash())
}
// Let's now remove the previous queried organization.