Skip to content

Commit

Permalink
Updated consul version and associated go modules dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentganne committed Feb 24, 2022
1 parent 8861a6b commit 44603dc
Show file tree
Hide file tree
Showing 54 changed files with 720 additions and 310 deletions.
7 changes: 4 additions & 3 deletions deployments/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ package deployments

import (
"context"
"strings"
"testing"

"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"
"strings"
"testing"

"github.com/hashicorp/consul/testutil"
"github.com/hashicorp/consul/sdk/testutil"
"github.com/stretchr/testify/require"

"github.com/ystia/yorc/v4/helper/consulutil"
Expand Down
9 changes: 5 additions & 4 deletions deployments/capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ package deployments

import (
"context"
"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"
"reflect"
"strings"
"testing"

"github.com/hashicorp/consul/testutil"
"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"

"github.com/hashicorp/consul/sdk/testutil"
"github.com/stretchr/testify/require"
"github.com/ystia/yorc/v4/helper/consulutil"
"github.com/ystia/yorc/v4/log"
Expand Down
9 changes: 5 additions & 4 deletions deployments/definition_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ package deployments
import (
"context"
"fmt"
"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"
"io/ioutil"
stdlog "log"
"os"
Expand All @@ -30,8 +27,12 @@ import (
"testing"
"time"

"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"

"github.com/fvbommel/sortorder"
ctu "github.com/hashicorp/consul/testutil"
ctu "github.com/hashicorp/consul/sdk/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
5 changes: 3 additions & 2 deletions deployments/nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ package deployments
import (
"context"
"fmt"
"testing"

"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"github.com/ystia/yorc/v4/tosca"
"testing"

ctu "github.com/hashicorp/consul/testutil"
ctu "github.com/hashicorp/consul/sdk/testutil"

"github.com/stretchr/testify/require"
"github.com/ystia/yorc/v4/helper/consulutil"
Expand Down
2 changes: 1 addition & 1 deletion deployments/requirements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"reflect"
"testing"

"github.com/hashicorp/consul/testutil"
"github.com/hashicorp/consul/sdk/testutil"
"github.com/stretchr/testify/require"

"github.com/ystia/yorc/v4/helper/consulutil"
Expand Down
9 changes: 5 additions & 4 deletions deployments/store/definition_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ package store

import (
"context"
"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"
"io/ioutil"
"os"
"path"
"testing"

"github.com/ystia/yorc/v4/storage"
"github.com/ystia/yorc/v4/storage/types"

"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/testutil"
"github.com/hashicorp/consul/sdk/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -72,7 +73,7 @@ func newTestConsulInstance(t *testing.T, cfg *config.Configuration) (*testutil.T
c.Args = []string{"-ui"}
c.LogLevel = logLevel
}
srv1, err := testutil.NewTestServerConfig(cb)
srv1, err := testutil.NewTestServerConfigT(t, cb)
if err != nil {
t.Fatalf("Failed to create consul server: %v", err)
}
Expand Down
52 changes: 25 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ require (
github.com/Sirupsen/logrus v0.1.0 // indirect
github.com/abice/go-enum v0.2.3
github.com/alecthomas/participle v0.3.0
github.com/armon/go-metrics v0.3.9
github.com/armon/go-metrics v0.3.10
github.com/blang/semver v3.5.1+incompatible
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
github.com/cheggaaa/pb/v3 v3.0.3
github.com/dgraph-io/ristretto v0.0.1
Expand All @@ -20,35 +19,40 @@ require (
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
github.com/dustin/go-humanize v1.0.0
github.com/elastic/go-elasticsearch/v6 v6.8.6-0.20200428134631-c5be8f8ee116
github.com/fatih/color v1.7.0
github.com/fsnotify/fsnotify v1.4.7
github.com/fatih/color v1.9.0
github.com/frankban/quicktest v1.13.0 // indirect
github.com/fsnotify/fsnotify v1.4.9
github.com/fvbommel/sortorder v1.0.1
github.com/golang/snappy v0.0.4 // indirect
github.com/google/addlicense v0.0.0-20190107131845-2e5cf00261bf
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.1.2
github.com/googleapis/gnostic v0.3.0 // indirect
github.com/goware/urlx v0.3.1
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/hashicorp/consul v1.2.3
github.com/hashicorp/consul/api v1.12.0
github.com/hashicorp/consul/sdk v0.9.0
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hashicorp/go-hclog v1.1.0
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-msgpack v0.5.5 // indirect
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-plugin v1.4.3
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
github.com/hashicorp/go-rootcerts v1.0.2
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.2 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-version v1.4.0 // indirect
github.com/hashicorp/serf v0.8.3 // indirect
github.com/hashicorp/vault/api v1.3.1
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/memberlist v0.3.1 // indirect
github.com/hashicorp/serf v0.9.7 // indirect
github.com/hashicorp/vault/api v1.1.0
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
github.com/julienschmidt/httprouter v1.2.0
github.com/justinas/alice v0.0.0-20160512134231-052b8b6c18ed
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pty v1.1.8 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/matryer/resync v0.0.0-20161211202428-d39c09a11215
Expand All @@ -62,13 +66,11 @@ require (
github.com/oklog/run v1.1.0 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/pelletier/go-toml v1.4.0 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.4.0
github.com/satori/go.uuid v1.0.0
github.com/satori/go.uuid v1.2.0
github.com/sethvargo/go-retry v0.1.0
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cast v1.3.0
github.com/spf13/cobra v0.0.6
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand All @@ -79,21 +81,17 @@ require (
github.com/ystia/tdt2go v0.3.0
golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 // indirect
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
google.golang.org/genproto v0.0.0-20220202230416-2a053f022f0d // indirect
google.golang.org/grpc v1.44.0 // indirect
gopkg.in/AlecAivazis/survey.v1 v1.6.3
gopkg.in/cookieo9/resources-go.v2 v2.0.0-20150225115733-d27c04069d0d
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v2 v2.2.7
gotest.tools/v3 v3.0.0
k8s.io/api v0.0.0-20180628040859-072894a440bd
k8s.io/apimachinery v0.0.0-20180621070125-103fd098999d
k8s.io/client-go v8.0.0+incompatible
k8s.io/kube-openapi v0.0.0-20190709113604-33be087ad058 // indirect
gopkg.in/yaml.v2 v2.4.0
gotest.tools/v3 v3.0.3
k8s.io/api v0.23.4
k8s.io/apimachinery v0.23.4
k8s.io/client-go v0.23.4
)

// Due to this capital letter thing we have troubles and we have to replace it explicitly
Expand Down
Loading

0 comments on commit 44603dc

Please sign in to comment.