Skip to content

Commit cabc784

Browse files
committed
Rebase conflict fixes
1 parent 5ac0c92 commit cabc784

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

http/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import (
1515
"github.com/benbjohnson/clock"
1616
"github.com/go-kit/log"
1717
"github.com/go-kit/log/level"
18-
commoncfg "github.com/prometheus/common/config"
1918
"golang.org/x/oauth2"
2019

20+
commoncfg "github.com/prometheus/common/config"
21+
2122
"github.com/grafana/alerting/receivers"
2223
)
2324

http/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,5 +549,5 @@ func TestToHTTPClientOption(t *testing.T) {
549549
// Verify number of fields using reflection
550550
tp := reflect.TypeOf(clientConfiguration{})
551551
// You need to increase the number of fields covered in this test, if you add a new field to the configuration struct.
552-
require.Equalf(t, 3, tp.NumField(), "Not all fields are converted to HTTPClientOption, which means that the configuration will not be supported in upstream integrations")
552+
require.Equalf(t, 4, tp.NumField(), "Not all fields are converted to HTTPClientOption, which means that the configuration will not be supported in upstream integrations")
553553
}

notify/factory_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010
"time"
1111

1212
"github.com/go-kit/log"
13+
"github.com/stretchr/testify/require"
14+
1315
"github.com/prometheus/alertmanager/config"
1416
commoncfg "github.com/prometheus/common/config"
15-
"github.com/stretchr/testify/require"
1617

1718
"github.com/prometheus/alertmanager/notify"
1819

@@ -160,7 +161,7 @@ func TestBuildReceiversIntegrations(t *testing.T) {
160161
tmpl,
161162
imageProvider,
162163
NoopDecrypt,
163-
NoopDecode,
164+
DecodeSecretsFromBase64,
164165
emailService,
165166
nil,
166167
func(_ string, n notify.Notifier) notify.Notifier {
@@ -206,7 +207,7 @@ func TestBuildReceiversIntegrations(t *testing.T) {
206207
tmpl,
207208
imageProvider,
208209
NoopDecrypt,
209-
NoopDecode,
210+
DecodeSecretsFromBase64,
210211
emailService,
211212
nil,
212213
func(_ string, n notify.Notifier) notify.Notifier {

0 commit comments

Comments
 (0)