mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Remove OrgID() from the Alertmanager interface (#77398)
This commit is contained in:
@@ -297,10 +297,6 @@ func (am *Alertmanager) Ready() bool {
|
||||
// We don't have files on disk, no-op.
|
||||
func (am *Alertmanager) CleanUp() {}
|
||||
|
||||
func (am *Alertmanager) OrgID() int64 {
|
||||
return am.orgID
|
||||
}
|
||||
|
||||
type roundTripper struct {
|
||||
tenantID string
|
||||
basicAuthPassword string
|
||||
|
||||
@@ -59,7 +59,7 @@ func TestNewAlertmanager(t *testing.T) {
|
||||
require.NoError(tt, err)
|
||||
require.Equal(tt, am.tenantID, test.tenantID)
|
||||
require.Equal(tt, am.url, test.url)
|
||||
require.Equal(tt, am.OrgID(), test.orgID)
|
||||
require.Equal(tt, am.orgID, test.orgID)
|
||||
require.NotNil(tt, am.amClient)
|
||||
require.NotNil(tt, am.httpClient)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user