Chore: Replace yaml.v2 with yaml.v3 (#59897)

* replace yaml.v2 with yaml.v3

* fix a few tests due to the yaml.v3 api changes

* and another goconvey mistake in tests
This commit is contained in:
Serge Zaitsev
2022-12-06 21:17:17 +01:00
committed by GitHub
parent fdc3adb2c9
commit 43f40e6c7c
12 changed files with 33 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ import (
"strings"
"github.com/grafana/grafana/pkg/infra/log"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
type rulesConfigReader struct {

View File

@@ -5,7 +5,7 @@ import (
"github.com/grafana/grafana/pkg/services/provisioning/values"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
func TestReceivers(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"os"
"testing"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
"github.com/stretchr/testify/require"
)