mirror of https://github.com/grafana/grafana.git
fixup
This commit is contained in:
parent
978fb25873
commit
a07ea91420
|
@ -96,8 +96,8 @@ func TestContactPointFromContactPointExports(t *testing.T) {
|
||||||
}
|
}
|
||||||
if integrationType == line.Type {
|
if integrationType == line.Type {
|
||||||
for _, l := range actual.LineConfigs {
|
for _, l := range actual.LineConfigs {
|
||||||
assert.Equal(t, "line", l.Metadata.Type)
|
assert.Equal(t, "line", l.Type)
|
||||||
l.Metadata.Type = string(line.Type)
|
l.Type = string(line.Type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pathFilter := cmp.FilterPath(func(path cmp.Path) bool {
|
pathFilter := cmp.FilterPath(func(path cmp.Path) bool {
|
||||||
|
|
|
@ -13,6 +13,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/grafana/alerting/notify/notifytest"
|
"github.com/grafana/alerting/notify/notifytest"
|
||||||
|
"github.com/grafana/alerting/receivers/line"
|
||||||
"github.com/grafana/alerting/receivers/schema"
|
"github.com/grafana/alerting/receivers/schema"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -1225,7 +1226,7 @@ func TestIntegrationCRUD(t *testing.T) {
|
||||||
t.Run("should be able to update default receiver", func(t *testing.T) {
|
t.Run("should be able to update default receiver", func(t *testing.T) {
|
||||||
require.NotNil(t, defaultReceiver)
|
require.NotNil(t, defaultReceiver)
|
||||||
newDefault := defaultReceiver.Copy().(*v0alpha1.Receiver)
|
newDefault := defaultReceiver.Copy().(*v0alpha1.Receiver)
|
||||||
newDefault.Spec.Integrations = append(newDefault.Spec.Integrations, createIntegration(t, "line"))
|
newDefault.Spec.Integrations = append(newDefault.Spec.Integrations, createIntegration(t, line.Type))
|
||||||
|
|
||||||
updatedReceiver, err := adminClient.Update(ctx, newDefault, v1.UpdateOptions{})
|
updatedReceiver, err := adminClient.Update(ctx, newDefault, v1.UpdateOptions{})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue