Update tests to use gotest.tools 👼

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 2c4de4fb5e
Component: cli
This commit is contained in:
Vincent Demeester
2018-06-08 18:24:26 +02:00
parent a7c8326a15
commit e92ec69f61
176 changed files with 389 additions and 389 deletions

View File

@ -6,9 +6,9 @@ import (
composetypes "github.com/docker/cli/cli/compose/types"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/network"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/gotestyourself/gotestyourself/fs"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
"gotest.tools/fs"
)
func TestNamespaceScope(t *testing.T) {

View File

@ -13,9 +13,9 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestConvertRestartPolicyFromNone(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
composetypes "github.com/docker/cli/cli/compose/types"
"github.com/docker/docker/api/types/mount"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestConvertVolumeToMountAnonymousVolume(t *testing.T) {

View File

@ -5,9 +5,9 @@ import (
"strconv"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/gotestyourself/gotestyourself/env"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
"gotest.tools/env"
)
var defaults = map[string]string{

View File

@ -11,9 +11,9 @@ import (
"github.com/docker/cli/cli/compose/types"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/sirupsen/logrus"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func buildConfigDetails(source map[string]interface{}, env map[string]string) types.ConfigDetails {

View File

@ -4,7 +4,7 @@ import (
"testing"
"github.com/docker/cli/cli/compose/types"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
func TestLoadTwoDifferentVersion(t *testing.T) {

View File

@ -3,9 +3,9 @@ package loader
import (
"testing"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
yaml "gopkg.in/yaml.v2"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestMarshallConfig(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"testing"
"github.com/docker/cli/cli/compose/types"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestParseVolumeAnonymousVolume(t *testing.T) {

View File

@ -3,7 +3,7 @@ package schema
import (
"testing"
"github.com/gotestyourself/gotestyourself/assert"
"gotest.tools/assert"
)
type dict map[string]interface{}

View File

@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
var defaults = map[string]string{