Skip to content

Commit

Permalink
update dependencies and fix broken tests
Browse files Browse the repository at this point in the history
The module used for test consul servers, consul/sdk/testutil, changed
and required some updated to get working again. Those are included in
addition to the module updates.
  • Loading branch information
eikenb committed Oct 2, 2020
1 parent 15e145a commit 6213a54
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 29 deletions.
9 changes: 6 additions & 3 deletions dependency/dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"runtime"
"testing"

"github.com/hashicorp/consul-template/test"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/sdk/testutil"
vapi "github.com/hashicorp/vault/api"
Expand All @@ -25,7 +26,8 @@ var testClients *ClientSet
func TestMain(m *testing.M) {
log.SetOutput(ioutil.Discard)
runTestVault()
runTestConsul()
tb := &test.TestingTB{}
runTestConsul(tb)
clients := NewClientSet()
if err := clients.CreateConsulClient(&CreateConsulClientInput{
Address: testConsul.HTTPAddr,
Expand Down Expand Up @@ -98,13 +100,14 @@ func TestMain(m *testing.M) {

exit := <-exitCh

tb.DoCleanup()
testConsul.Stop()
testVault.Stop()
os.Exit(exit)
}

func runTestConsul() {
consul, err := testutil.NewTestServerConfig(
func runTestConsul(tb testutil.TestingTB) {
consul, err := testutil.NewTestServerConfigT(tb,
func(c *testutil.TestServerConfig) {
c.LogLevel = "warn"
c.Stdout = ioutil.Discard
Expand Down
40 changes: 24 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,44 @@ go 1.12

require (
github.com/BurntSushi/toml v0.3.1
github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 // indirect
github.com/armon/go-metrics v0.3.4 // indirect
github.com/frankban/quicktest v1.4.0 // indirect
github.com/golang/snappy v0.0.2 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/hashicorp/consul/api v1.4.0
github.com/hashicorp/consul/sdk v0.4.0
github.com/hashicorp/consul/sdk v0.4.1-0.20200910203702-bb2b5dd871ca
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-gatedio v0.5.0
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect
github.com/hashicorp/go-hclog v0.14.1 // indirect
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect
github.com/hashicorp/go-msgpack v0.5.5 // indirect
github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/go-multierror v1.1.0
github.com/hashicorp/go-retryablehttp v0.6.7 // indirect
github.com/hashicorp/go-rootcerts v1.0.2
github.com/hashicorp/go-sockaddr v1.0.2
github.com/hashicorp/go-syslog v1.0.0
github.com/hashicorp/golang-lru v0.5.3 // indirect
github.com/hashicorp/go.net v0.0.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/hcl v1.0.0
github.com/hashicorp/logutils v1.0.0
github.com/hashicorp/memberlist v0.1.4 // indirect
github.com/hashicorp/serf v0.8.3 // indirect
github.com/hashicorp/serf v0.9.4 // indirect
github.com/hashicorp/vault/api v1.0.5-0.20190730042357-746c0b111519
github.com/mattn/go-shellwords v1.0.5
github.com/miekg/dns v1.1.15 // indirect
github.com/mattn/go-colorable v0.1.7 // indirect
github.com/mattn/go-shellwords v1.0.10
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/gox v0.4.0 // indirect
github.com/mitchellh/hashstructure v1.0.0
github.com/mitchellh/mapstructure v1.1.2
github.com/pierrec/lz4 v2.2.5+incompatible // indirect
github.com/pkg/errors v0.8.1
github.com/mitchellh/iochan v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.3.3
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.4.0
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 // indirect
golang.org/x/text v0.3.2 // indirect
gopkg.in/yaml.v2 v2.2.8
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c // indirect
golang.org/x/text v0.3.3 // indirect
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
gopkg.in/yaml.v2 v2.3.0
)

replace github.com/golang/lint => golang.org/x/lint v0.0.0-20190409202823-959b441ac422
Expand Down
Loading

0 comments on commit 6213a54

Please sign in to comment.