diff --git a/go.mod b/go.mod index e62b5d2..4f4371b 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/pelotech/drone-helm3 go 1.13 require ( - github.com/go-yaml/yaml v2.1.0+incompatible github.com/golang/mock v1.3.1 github.com/kelseyhightower/envconfig v1.4.0 github.com/stretchr/testify v1.4.0 diff --git a/go.sum b/go.sum index 49faf36..c0d66c9 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-yaml/yaml v2.1.0+incompatible h1:RYi2hDdss1u4YE7GwixGzWwVo47T8UQwnTLB6vQiq+o= -github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= diff --git a/internal/run/initkube_test.go b/internal/run/initkube_test.go index 479bf56..a3542d8 100644 --- a/internal/run/initkube_test.go +++ b/internal/run/initkube_test.go @@ -1,7 +1,6 @@ package run import ( - "github.com/go-yaml/yaml" "github.com/stretchr/testify/suite" "io/ioutil" "os" @@ -93,10 +92,6 @@ func (suite *InitKubeTestSuite) TestExecuteGeneratesConfig() { suite.Contains(string(contents), expected) } - // the generated config should be valid yaml, with no repeated keys - conf := map[string]interface{}{} - suite.NoError(yaml.UnmarshalStrict(contents, &conf)) - // test the other branch of the certificate/SkipTLSVerify conditional init.SkipTLSVerify = true init.Certificate = "" @@ -106,9 +101,6 @@ func (suite *InitKubeTestSuite) TestExecuteGeneratesConfig() { contents, err = ioutil.ReadFile(configFile.Name()) suite.Require().NoError(err) suite.Contains(string(contents), "insecure-skip-tls-verify: true") - - conf = map[string]interface{}{} - suite.NoError(yaml.UnmarshalStrict(contents, &conf)) } func (suite *InitKubeTestSuite) TestPrepareParseError() {