diff --git a/cli/command/bundlefile/bundlefile_test.go b/cli/command/bundlefile/bundlefile_test.go index 8837aa1a2..cbaa341cd 100644 --- a/cli/command/bundlefile/bundlefile_test.go +++ b/cli/command/bundlefile/bundlefile_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestLoadFileV01Success(t *testing.T) { diff --git a/cli/command/checkpoint/create_test.go b/cli/command/checkpoint/create_test.go index 59fdf9d10..70c6aad7e 100644 --- a/cli/command/checkpoint/create_test.go +++ b/cli/command/checkpoint/create_test.go @@ -7,9 +7,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "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 TestCheckpointCreateErrors(t *testing.T) { diff --git a/cli/command/checkpoint/list_test.go b/cli/command/checkpoint/list_test.go index 2523bba56..986d3ee46 100644 --- a/cli/command/checkpoint/list_test.go +++ b/cli/command/checkpoint/list_test.go @@ -6,10 +6,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestCheckpointListErrors(t *testing.T) { diff --git a/cli/command/checkpoint/remove_test.go b/cli/command/checkpoint/remove_test.go index 9816b2f16..d1a9ac4bc 100644 --- a/cli/command/checkpoint/remove_test.go +++ b/cli/command/checkpoint/remove_test.go @@ -6,9 +6,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "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 TestCheckpointRemoveErrors(t *testing.T) { diff --git a/cli/command/cli_test.go b/cli/command/cli_test.go index 1418d1b1d..26ead5ddb 100644 --- a/cli/command/cli_test.go +++ b/cli/command/cli_test.go @@ -13,11 +13,11 @@ import ( "github.com/docker/docker/api" "github.com/docker/docker/api/types" "github.com/docker/docker/client" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/env" - "github.com/gotestyourself/gotestyourself/fs" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/env" + "gotest.tools/fs" ) func TestNewAPIClientFromFlags(t *testing.T) { diff --git a/cli/command/config/create_test.go b/cli/command/config/create_test.go index 46515ca52..bb2ea946d 100644 --- a/cli/command/config/create_test.go +++ b/cli/command/config/create_test.go @@ -10,10 +10,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) const configDataFile = "config-create-with-name.golden" diff --git a/cli/command/config/inspect_test.go b/cli/command/config/inspect_test.go index b714e9583..1b4f275cc 100644 --- a/cli/command/config/inspect_test.go +++ b/cli/command/config/inspect_test.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestConfigInspectErrors(t *testing.T) { diff --git a/cli/command/config/ls_test.go b/cli/command/config/ls_test.go index 3ef7a9178..d3055b4aa 100644 --- a/cli/command/config/ls_test.go +++ b/cli/command/config/ls_test.go @@ -12,9 +12,9 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestConfigListErrors(t *testing.T) { diff --git a/cli/command/config/remove_test.go b/cli/command/config/remove_test.go index 6501210dc..4a1980bc8 100644 --- a/cli/command/config/remove_test.go +++ b/cli/command/config/remove_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/docker/cli/internal/test" - "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 TestConfigRemoveErrors(t *testing.T) { diff --git a/cli/command/container/attach_test.go b/cli/command/container/attach_test.go index e8f6da29a..7d8d3f6ed 100644 --- a/cli/command/container/attach_test.go +++ b/cli/command/container/attach_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestNewAttachCommandErrors(t *testing.T) { diff --git a/cli/command/container/cp_test.go b/cli/command/container/cp_test.go index 7d706f354..67cdaf15a 100644 --- a/cli/command/container/cp_test.go +++ b/cli/command/container/cp_test.go @@ -11,10 +11,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/archive" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/fs" + "gotest.tools/skip" ) func TestRunCopyWithInvalidArguments(t *testing.T) { @@ -182,7 +182,7 @@ func TestSplitCpArg(t *testing.T) { } for _, testcase := range testcases { t.Run(testcase.doc, func(t *testing.T) { - skip.IfCondition(t, testcase.os != "" && testcase.os != runtime.GOOS) + skip.If(t, testcase.os != "" && testcase.os != runtime.GOOS) container, path := splitCpArg(testcase.path) assert.Check(t, is.Equal(testcase.expectedContainer, container)) diff --git a/cli/command/container/create_test.go b/cli/command/container/create_test.go index a5367dfc6..1df09c7d6 100644 --- a/cli/command/container/create_test.go +++ b/cli/command/container/create_test.go @@ -16,10 +16,10 @@ import ( "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" "github.com/google/go-cmp/cmp" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/fs" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/fs" ) func TestCIDFileNoOPWithNoFilename(t *testing.T) { diff --git a/cli/command/container/exec_test.go b/cli/command/container/exec_test.go index b4012a34c..0c6e2614b 100644 --- a/cli/command/container/exec_test.go +++ b/cli/command/container/exec_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/cli/opts" "github.com/docker/docker/api/types" - "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 withDefaultOpts(options execOptions) execOptions { diff --git a/cli/command/container/list_test.go b/cli/command/container/list_test.go index 9a064eb73..2bc1949a7 100644 --- a/cli/command/container/list_test.go +++ b/cli/command/container/list_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/docker/api/types" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestContainerListErrors(t *testing.T) { diff --git a/cli/command/container/logs_test.go b/cli/command/container/logs_test.go index 4465df9a5..a618ad5e5 100644 --- a/cli/command/container/logs_test.go +++ b/cli/command/container/logs_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) var logFn = func(expectedOut string) func(string, types.ContainerLogsOptions) (io.ReadCloser, error) { diff --git a/cli/command/container/opts_test.go b/cli/command/container/opts_test.go index 5d4340966..67f0cad44 100644 --- a/cli/command/container/opts_test.go +++ b/cli/command/container/opts_test.go @@ -12,10 +12,10 @@ import ( "github.com/docker/docker/api/types/container" networktypes "github.com/docker/docker/api/types/network" "github.com/docker/go-connections/nat" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/pkg/errors" "github.com/spf13/pflag" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestValidateAttach(t *testing.T) { diff --git a/cli/command/container/ps_test.go b/cli/command/container/ps_test.go index 4ca11dcb4..28853576f 100644 --- a/cli/command/container/ps_test.go +++ b/cli/command/container/ps_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/docker/cli/opts" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestBuildContainerListOptions(t *testing.T) { diff --git a/cli/command/container/run_test.go b/cli/command/container/run_test.go index 94dea4680..2dcf1af24 100644 --- a/cli/command/container/run_test.go +++ b/cli/command/container/run_test.go @@ -8,8 +8,8 @@ import ( "github.com/docker/cli/internal/test/notary" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRunLabel(t *testing.T) { diff --git a/cli/command/container/stats_helpers_test.go b/cli/command/container/stats_helpers_test.go index 099f425d4..a9657e2e2 100644 --- a/cli/command/container/stats_helpers_test.go +++ b/cli/command/container/stats_helpers_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" ) func TestCalculateMemUsageUnixNoCache(t *testing.T) { diff --git a/cli/command/container/utils_test.go b/cli/command/container/utils_test.go index de9d33a73..970549c04 100644 --- a/cli/command/container/utils_test.go +++ b/cli/command/container/utils_test.go @@ -8,9 +8,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api" "github.com/docker/docker/api/types/container" - "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 waitFn(cid string) (<-chan container.ContainerWaitOKBody, <-chan error) { diff --git a/cli/command/formatter/checkpoint_test.go b/cli/command/formatter/checkpoint_test.go index b91748044..9b8ac5e50 100644 --- a/cli/command/formatter/checkpoint_test.go +++ b/cli/command/formatter/checkpoint_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" ) func TestCheckpointContextFormatWrite(t *testing.T) { diff --git a/cli/command/formatter/config_test.go b/cli/command/formatter/config_test.go index 3a5efb80d..7cd310c9e 100644 --- a/cli/command/formatter/config_test.go +++ b/cli/command/formatter/config_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestConfigContextFormatWrite(t *testing.T) { diff --git a/cli/command/formatter/container_test.go b/cli/command/formatter/container_test.go index 8b1893f8d..cafb9abda 100644 --- a/cli/command/formatter/container_test.go +++ b/cli/command/formatter/container_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestContainerPsContext(t *testing.T) { diff --git a/cli/command/formatter/custom_test.go b/cli/command/formatter/custom_test.go index 02df8d9f8..6a4bfec78 100644 --- a/cli/command/formatter/custom_test.go +++ b/cli/command/formatter/custom_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func compareMultipleValues(t *testing.T, value, expected string) { diff --git a/cli/command/formatter/diff_test.go b/cli/command/formatter/diff_test.go index dd104aecc..aad594505 100644 --- a/cli/command/formatter/diff_test.go +++ b/cli/command/formatter/diff_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/docker/api/types/container" "github.com/docker/docker/pkg/archive" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestDiffContextFormatWrite(t *testing.T) { diff --git a/cli/command/formatter/disk_usage_test.go b/cli/command/formatter/disk_usage_test.go index dc206dea4..6196af598 100644 --- a/cli/command/formatter/disk_usage_test.go +++ b/cli/command/formatter/disk_usage_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestDiskUsageContextFormatWrite(t *testing.T) { diff --git a/cli/command/formatter/displayutils_test.go b/cli/command/formatter/displayutils_test.go index 0182d7075..db60610bb 100644 --- a/cli/command/formatter/displayutils_test.go +++ b/cli/command/formatter/displayutils_test.go @@ -3,8 +3,8 @@ package formatter import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestEllipsis(t *testing.T) { diff --git a/cli/command/formatter/history_test.go b/cli/command/formatter/history_test.go index 77423a801..7dfc146be 100644 --- a/cli/command/formatter/history_test.go +++ b/cli/command/formatter/history_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/docker/api/types/image" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) type historyCase struct { diff --git a/cli/command/formatter/image_test.go b/cli/command/formatter/image_test.go index 26488f335..7efad0a75 100644 --- a/cli/command/formatter/image_test.go +++ b/cli/command/formatter/image_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestImageContext(t *testing.T) { diff --git a/cli/command/formatter/network_test.go b/cli/command/formatter/network_test.go index 79b588054..6831926e4 100644 --- a/cli/command/formatter/network_test.go +++ b/cli/command/formatter/network_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestNetworkContext(t *testing.T) { diff --git a/cli/command/formatter/node_test.go b/cli/command/formatter/node_test.go index 3fa9ceb78..cf9ccbde8 100644 --- a/cli/command/formatter/node_test.go +++ b/cli/command/formatter/node_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestNodeContext(t *testing.T) { diff --git a/cli/command/formatter/plugin_test.go b/cli/command/formatter/plugin_test.go index ebe615dd1..b8551589e 100644 --- a/cli/command/formatter/plugin_test.go +++ b/cli/command/formatter/plugin_test.go @@ -8,8 +8,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPluginContext(t *testing.T) { diff --git a/cli/command/formatter/search_test.go b/cli/command/formatter/search_test.go index e5a2d1a91..2e5bac0fc 100644 --- a/cli/command/formatter/search_test.go +++ b/cli/command/formatter/search_test.go @@ -7,9 +7,9 @@ import ( "testing" registrytypes "github.com/docker/docker/api/types/registry" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestSearchContext(t *testing.T) { diff --git a/cli/command/formatter/secret_test.go b/cli/command/formatter/secret_test.go index e62793d3b..31119786f 100644 --- a/cli/command/formatter/secret_test.go +++ b/cli/command/formatter/secret_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestSecretContextFormatWrite(t *testing.T) { diff --git a/cli/command/formatter/service_test.go b/cli/command/formatter/service_test.go index 11c00c4b0..243899d1b 100644 --- a/cli/command/formatter/service_test.go +++ b/cli/command/formatter/service_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestServiceContextWrite(t *testing.T) { diff --git a/cli/command/formatter/stack_test.go b/cli/command/formatter/stack_test.go index 27ca17e5a..44a08406c 100644 --- a/cli/command/formatter/stack_test.go +++ b/cli/command/formatter/stack_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestStackContextWrite(t *testing.T) { diff --git a/cli/command/formatter/stats_test.go b/cli/command/formatter/stats_test.go index 6c88fe877..3325dd9fb 100644 --- a/cli/command/formatter/stats_test.go +++ b/cli/command/formatter/stats_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestContainerStatsContext(t *testing.T) { diff --git a/cli/command/formatter/task_test.go b/cli/command/formatter/task_test.go index 9dc8a18bb..84bdbfeb9 100644 --- a/cli/command/formatter/task_test.go +++ b/cli/command/formatter/task_test.go @@ -7,9 +7,9 @@ import ( "testing" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestTaskContextWrite(t *testing.T) { diff --git a/cli/command/formatter/trust_test.go b/cli/command/formatter/trust_test.go index 4f97996a7..7e1d894fb 100644 --- a/cli/command/formatter/trust_test.go +++ b/cli/command/formatter/trust_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestTrustTag(t *testing.T) { diff --git a/cli/command/formatter/volume_test.go b/cli/command/formatter/volume_test.go index 425aaed12..43c6061d6 100644 --- a/cli/command/formatter/volume_test.go +++ b/cli/command/formatter/volume_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/stringid" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestVolumeContext(t *testing.T) { diff --git a/cli/command/idresolver/idresolver_test.go b/cli/command/idresolver/idresolver_test.go index c4ab3fecd..f667b1064 100644 --- a/cli/command/idresolver/idresolver_test.go +++ b/cli/command/idresolver/idresolver_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" // Import builders to get the builder function as package function "context" diff --git a/cli/command/image/build/context_test.go b/cli/command/image/build/context_test.go index 493eda014..d74add88b 100644 --- a/cli/command/image/build/context_test.go +++ b/cli/command/image/build/context_test.go @@ -12,8 +12,8 @@ import ( "testing" "github.com/docker/docker/pkg/archive" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) const dockerfileContents = "FROM busybox" diff --git a/cli/command/image/build_test.go b/cli/command/image/build_test.go index fb8764c64..adcacd49f 100644 --- a/cli/command/image/build_test.go +++ b/cli/command/image/build_test.go @@ -17,9 +17,9 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/pkg/archive" "github.com/google/go-cmp/cmp" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + "gotest.tools/fs" + "gotest.tools/skip" ) func TestRunBuildDockerfileFromStdinWithCompress(t *testing.T) { diff --git a/cli/command/image/history_test.go b/cli/command/image/history_test.go index b94e4ce8c..ad2beb9a8 100644 --- a/cli/command/image/history_test.go +++ b/cli/command/image/history_test.go @@ -8,10 +8,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/image" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/skip" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/golden" + "gotest.tools/skip" ) func TestNewHistoryCommandErrors(t *testing.T) { diff --git a/cli/command/image/import_test.go b/cli/command/image/import_test.go index 2eefe7247..9e2fad61f 100644 --- a/cli/command/image/import_test.go +++ b/cli/command/image/import_test.go @@ -8,9 +8,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "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 TestNewImportCommandErrors(t *testing.T) { diff --git a/cli/command/image/inspect_test.go b/cli/command/image/inspect_test.go index 4bf054741..d881ae0aa 100644 --- a/cli/command/image/inspect_test.go +++ b/cli/command/image/inspect_test.go @@ -7,9 +7,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestNewInspectCommandErrors(t *testing.T) { diff --git a/cli/command/image/list_test.go b/cli/command/image/list_test.go index f4ce84726..81394a797 100644 --- a/cli/command/image/list_test.go +++ b/cli/command/image/list_test.go @@ -8,10 +8,10 @@ import ( "github.com/docker/cli/cli/config/configfile" "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestNewImagesCommandErrors(t *testing.T) { diff --git a/cli/command/image/load_test.go b/cli/command/image/load_test.go index d3ec89e36..5fe4344f6 100644 --- a/cli/command/image/load_test.go +++ b/cli/command/image/load_test.go @@ -9,9 +9,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestNewLoadCommandErrors(t *testing.T) { diff --git a/cli/command/image/prune_test.go b/cli/command/image/prune_test.go index 9c03d83d7..ca46bbf6b 100644 --- a/cli/command/image/prune_test.go +++ b/cli/command/image/prune_test.go @@ -8,10 +8,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestNewPruneCommandErrors(t *testing.T) { diff --git a/cli/command/image/pull_test.go b/cli/command/image/pull_test.go index df639232f..c5ae75608 100644 --- a/cli/command/image/pull_test.go +++ b/cli/command/image/pull_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/cli/internal/test/notary" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestNewPullCommandErrors(t *testing.T) { diff --git a/cli/command/image/push_test.go b/cli/command/image/push_test.go index 10d5cb3a8..75798aaaf 100644 --- a/cli/command/image/push_test.go +++ b/cli/command/image/push_test.go @@ -8,8 +8,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestNewPushCommandErrors(t *testing.T) { diff --git a/cli/command/image/remove_test.go b/cli/command/image/remove_test.go index 2c0cc9b0a..6db2e0318 100644 --- a/cli/command/image/remove_test.go +++ b/cli/command/image/remove_test.go @@ -7,10 +7,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) type notFound struct { diff --git a/cli/command/image/save_test.go b/cli/command/image/save_test.go index b87be3c8a..d051e8cb5 100644 --- a/cli/command/image/save_test.go +++ b/cli/command/image/save_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/docker/cli/internal/test" - "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 TestNewSaveCommandErrors(t *testing.T) { diff --git a/cli/command/image/tag_test.go b/cli/command/image/tag_test.go index 0319cb052..9c43f3fe7 100644 --- a/cli/command/image/tag_test.go +++ b/cli/command/image/tag_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestCliNewTagCommandErrors(t *testing.T) { diff --git a/cli/command/image/trust_test.go b/cli/command/image/trust_test.go index 946caf444..97585a729 100644 --- a/cli/command/image/trust_test.go +++ b/cli/command/image/trust_test.go @@ -7,10 +7,10 @@ import ( "github.com/docker/cli/cli/trust" registrytypes "github.com/docker/docker/api/types/registry" - "github.com/gotestyourself/gotestyourself/assert" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustpinning" + "gotest.tools/assert" ) func unsetENV() { diff --git a/cli/command/inspect/inspector_test.go b/cli/command/inspect/inspector_test.go index 8eb818ee7..f4df36848 100644 --- a/cli/command/inspect/inspector_test.go +++ b/cli/command/inspect/inspector_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/docker/cli/templates" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) type testElement struct { diff --git a/cli/command/manifest/annotate_test.go b/cli/command/manifest/annotate_test.go index ab6f3bbf3..e5cce8f62 100644 --- a/cli/command/manifest/annotate_test.go +++ b/cli/command/manifest/annotate_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestManifestAnnotateError(t *testing.T) { diff --git a/cli/command/manifest/create_test.go b/cli/command/manifest/create_test.go index 9082c56ed..fbf0ae7b8 100644 --- a/cli/command/manifest/create_test.go +++ b/cli/command/manifest/create_test.go @@ -8,10 +8,10 @@ import ( manifesttypes "github.com/docker/cli/cli/manifest/types" "github.com/docker/cli/internal/test" "github.com/docker/distribution/reference" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestManifestCreateErrors(t *testing.T) { diff --git a/cli/command/manifest/inspect_test.go b/cli/command/manifest/inspect_test.go index 06192fb38..4c4379680 100644 --- a/cli/command/manifest/inspect_test.go +++ b/cli/command/manifest/inspect_test.go @@ -13,11 +13,11 @@ import ( "github.com/docker/distribution" "github.com/docker/distribution/manifest/schema2" "github.com/docker/distribution/reference" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func newTempManifestStore(t *testing.T) (store.Store, func()) { diff --git a/cli/command/manifest/push_test.go b/cli/command/manifest/push_test.go index a09069606..3a2e9b8a9 100644 --- a/cli/command/manifest/push_test.go +++ b/cli/command/manifest/push_test.go @@ -8,8 +8,8 @@ import ( manifesttypes "github.com/docker/cli/cli/manifest/types" "github.com/docker/cli/internal/test" "github.com/docker/distribution/reference" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func newFakeRegistryClient() *fakeRegistryClient { diff --git a/cli/command/network/connect_test.go b/cli/command/network/connect_test.go index 59e35ab1a..2c1d04014 100644 --- a/cli/command/network/connect_test.go +++ b/cli/command/network/connect_test.go @@ -7,9 +7,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/network" - "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 TestNetworkConnectErrors(t *testing.T) { diff --git a/cli/command/network/create_test.go b/cli/command/network/create_test.go index 3a0fa0fba..6bfa7b65b 100644 --- a/cli/command/network/create_test.go +++ b/cli/command/network/create_test.go @@ -9,9 +9,9 @@ import ( "github.com/docker/cli/internal/test" "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/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestNetworkCreateErrors(t *testing.T) { diff --git a/cli/command/network/disconnect_test.go b/cli/command/network/disconnect_test.go index 5f15e6187..9a5525705 100644 --- a/cli/command/network/disconnect_test.go +++ b/cli/command/network/disconnect_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestNetworkDisconnectErrors(t *testing.T) { diff --git a/cli/command/network/list_test.go b/cli/command/network/list_test.go index cdffcc645..1106315f7 100644 --- a/cli/command/network/list_test.go +++ b/cli/command/network/list_test.go @@ -11,10 +11,10 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/google/go-cmp/cmp" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestNetworkListErrors(t *testing.T) { diff --git a/cli/command/node/demote_test.go b/cli/command/node/demote_test.go index 5bbc7dae3..3f18d63d4 100644 --- a/cli/command/node/demote_test.go +++ b/cli/command/node/demote_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" ) diff --git a/cli/command/node/inspect_test.go b/cli/command/node/inspect_test.go index 73f0a9e87..de343b0f4 100644 --- a/cli/command/node/inspect_test.go +++ b/cli/command/node/inspect_test.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestNodeInspectErrors(t *testing.T) { diff --git a/cli/command/node/list_test.go b/cli/command/node/list_test.go index 2d56af837..5dc11c961 100644 --- a/cli/command/node/list_test.go +++ b/cli/command/node/list_test.go @@ -8,10 +8,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" ) diff --git a/cli/command/node/promote_test.go b/cli/command/node/promote_test.go index 5d5c105df..c6b534232 100644 --- a/cli/command/node/promote_test.go +++ b/cli/command/node/promote_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" ) diff --git a/cli/command/node/ps_test.go b/cli/command/node/ps_test.go index 2a8533fb0..ae5ed6169 100644 --- a/cli/command/node/ps_test.go +++ b/cli/command/node/ps_test.go @@ -12,8 +12,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestNodePsErrors(t *testing.T) { diff --git a/cli/command/node/remove_test.go b/cli/command/node/remove_test.go index 17ebb46f7..8ae01c7b2 100644 --- a/cli/command/node/remove_test.go +++ b/cli/command/node/remove_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestNodeRemoveErrors(t *testing.T) { diff --git a/cli/command/node/update_test.go b/cli/command/node/update_test.go index 6d3f6f0bd..8b6ae807d 100644 --- a/cli/command/node/update_test.go +++ b/cli/command/node/update_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" ) diff --git a/cli/command/plugin/create_test.go b/cli/command/plugin/create_test.go index 41191cab3..bef002c07 100644 --- a/cli/command/plugin/create_test.go +++ b/cli/command/plugin/create_test.go @@ -9,9 +9,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "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 TestCreateErrors(t *testing.T) { diff --git a/cli/command/plugin/disable_test.go b/cli/command/plugin/disable_test.go index 592e0e495..c9292965f 100644 --- a/cli/command/plugin/disable_test.go +++ b/cli/command/plugin/disable_test.go @@ -7,8 +7,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPluginDisableErrors(t *testing.T) { diff --git a/cli/command/plugin/enable_test.go b/cli/command/plugin/enable_test.go index 42ce53576..933ff5de1 100644 --- a/cli/command/plugin/enable_test.go +++ b/cli/command/plugin/enable_test.go @@ -7,8 +7,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPluginEnableErrors(t *testing.T) { diff --git a/cli/command/plugin/remove_test.go b/cli/command/plugin/remove_test.go index 813c7615f..4cfec4334 100644 --- a/cli/command/plugin/remove_test.go +++ b/cli/command/plugin/remove_test.go @@ -7,8 +7,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRemoveErrors(t *testing.T) { diff --git a/cli/command/registry/login_test.go b/cli/command/registry/login_test.go index 9eb3f682c..7e7749418 100644 --- a/cli/command/registry/login_test.go +++ b/cli/command/registry/login_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/docker/api/types" registrytypes "github.com/docker/docker/api/types/registry" "github.com/docker/docker/client" - "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" ) const userErr = "userunknownError" diff --git a/cli/command/registry_test.go b/cli/command/registry_test.go index f6be9b316..8c9f5835f 100644 --- a/cli/command/registry_test.go +++ b/cli/command/registry_test.go @@ -6,9 +6,9 @@ import ( "fmt" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" // Prevents a circular import with "github.com/docker/cli/internal/test" diff --git a/cli/command/secret/create_test.go b/cli/command/secret/create_test.go index 7a9492ca0..eb9c08986 100644 --- a/cli/command/secret/create_test.go +++ b/cli/command/secret/create_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) const secretDataFile = "secret-create-with-name.golden" diff --git a/cli/command/secret/inspect_test.go b/cli/command/secret/inspect_test.go index b23d78beb..67addaead 100644 --- a/cli/command/secret/inspect_test.go +++ b/cli/command/secret/inspect_test.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestSecretInspectErrors(t *testing.T) { diff --git a/cli/command/secret/ls_test.go b/cli/command/secret/ls_test.go index 371218926..e1417115c 100644 --- a/cli/command/secret/ls_test.go +++ b/cli/command/secret/ls_test.go @@ -12,9 +12,9 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestSecretListErrors(t *testing.T) { diff --git a/cli/command/secret/remove_test.go b/cli/command/secret/remove_test.go index 349f47b38..d2fc8ad09 100644 --- a/cli/command/secret/remove_test.go +++ b/cli/command/secret/remove_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/docker/cli/internal/test" - "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 TestSecretRemoveErrors(t *testing.T) { diff --git a/cli/command/service/generic_resource_opts_test.go b/cli/command/service/generic_resource_opts_test.go index ffc7f4ca6..c750f1dc8 100644 --- a/cli/command/service/generic_resource_opts_test.go +++ b/cli/command/service/generic_resource_opts_test.go @@ -3,8 +3,8 @@ package service import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestValidateSingleGenericResource(t *testing.T) { diff --git a/cli/command/service/inspect_test.go b/cli/command/service/inspect_test.go index 41736f889..c27a9a885 100644 --- a/cli/command/service/inspect_test.go +++ b/cli/command/service/inspect_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/cli/cli/command/formatter" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func formatServiceInspect(t *testing.T, format formatter.Format, now time.Time) string { diff --git a/cli/command/service/list_test.go b/cli/command/service/list_test.go index c84dd587f..e52e7e03c 100644 --- a/cli/command/service/list_test.go +++ b/cli/command/service/list_test.go @@ -7,8 +7,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestServiceListOrder(t *testing.T) { diff --git a/cli/command/service/opts_test.go b/cli/command/service/opts_test.go index 0cacffec9..344893f55 100644 --- a/cli/command/service/opts_test.go +++ b/cli/command/service/opts_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestMemBytesString(t *testing.T) { diff --git a/cli/command/service/progress/progress_test.go b/cli/command/service/progress/progress_test.go index 198d29acf..2a386d64f 100644 --- a/cli/command/service/progress/progress_test.go +++ b/cli/command/service/progress/progress_test.go @@ -7,8 +7,8 @@ import ( "github.com/docker/docker/api/types/swarm" "github.com/docker/docker/pkg/progress" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) type mockProgress struct { diff --git a/cli/command/service/ps_test.go b/cli/command/service/ps_test.go index 80ee61e9f..6459cfcc3 100644 --- a/cli/command/service/ps_test.go +++ b/cli/command/service/ps_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/swarm" "github.com/google/go-cmp/cmp" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestCreateFilter(t *testing.T) { diff --git a/cli/command/service/rollback_test.go b/cli/command/service/rollback_test.go index 70795af94..e61d1c20b 100644 --- a/cli/command/service/rollback_test.go +++ b/cli/command/service/rollback_test.go @@ -10,8 +10,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRollback(t *testing.T) { diff --git a/cli/command/service/update_test.go b/cli/command/service/update_test.go index 94ccb4963..fa761ba08 100644 --- a/cli/command/service/update_test.go +++ b/cli/command/service/update_test.go @@ -12,8 +12,8 @@ import ( "github.com/docker/docker/api/types/container" mounttypes "github.com/docker/docker/api/types/mount" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestUpdateServiceArgs(t *testing.T) { diff --git a/cli/command/stack/kubernetes/conversion_test.go b/cli/command/stack/kubernetes/conversion_test.go index 866557b3a..213e9ea60 100644 --- a/cli/command/stack/kubernetes/conversion_test.go +++ b/cli/command/stack/kubernetes/conversion_test.go @@ -6,7 +6,7 @@ import ( "github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/kubernetes/labels" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" appsv1beta2 "k8s.io/api/apps/v1beta2" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/cli/command/stack/kubernetes/services_test.go b/cli/command/stack/kubernetes/services_test.go index 89cb9b7e4..5603eeda1 100644 --- a/cli/command/stack/kubernetes/services_test.go +++ b/cli/command/stack/kubernetes/services_test.go @@ -5,8 +5,8 @@ import ( "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + "gotest.tools/assert/cmp" ) func TestServiceFiltersLabelSelectorGen(t *testing.T) { diff --git a/cli/command/stack/kubernetes/stackclient_test.go b/cli/command/stack/kubernetes/stackclient_test.go index b82e6b13e..8757f1c46 100644 --- a/cli/command/stack/kubernetes/stackclient_test.go +++ b/cli/command/stack/kubernetes/stackclient_test.go @@ -5,7 +5,7 @@ import ( "testing" composetypes "github.com/docker/cli/cli/compose/types" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" ) func TestFromCompose(t *testing.T) { diff --git a/cli/command/stack/kubernetes/warnings_test.go b/cli/command/stack/kubernetes/warnings_test.go index b1d911e09..bdb7bf9de 100644 --- a/cli/command/stack/kubernetes/warnings_test.go +++ b/cli/command/stack/kubernetes/warnings_test.go @@ -6,7 +6,7 @@ import ( "time" composetypes "github.com/docker/cli/cli/compose/types" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/golden" ) func TestWarnings(t *testing.T) { diff --git a/cli/command/stack/kubernetes/watcher_test.go b/cli/command/stack/kubernetes/watcher_test.go index 80c7b5fd8..84e51ea3b 100644 --- a/cli/command/stack/kubernetes/watcher_test.go +++ b/cli/command/stack/kubernetes/watcher_test.go @@ -5,7 +5,7 @@ import ( apiv1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1" composelabels "github.com/docker/cli/kubernetes/labels" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" diff --git a/cli/command/stack/list_test.go b/cli/command/stack/list_test.go index c3d827ccd..2e7ad4df1 100644 --- a/cli/command/stack/list_test.go +++ b/cli/command/stack/list_test.go @@ -9,9 +9,9 @@ import ( . "github.com/docker/cli/internal/test/builders" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestListErrors(t *testing.T) { diff --git a/cli/command/stack/loader/loader_test.go b/cli/command/stack/loader/loader_test.go index c027371dd..de524cc52 100644 --- a/cli/command/stack/loader/loader_test.go +++ b/cli/command/stack/loader/loader_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "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 TestGetConfigDetails(t *testing.T) { diff --git a/cli/command/stack/ps_test.go b/cli/command/stack/ps_test.go index b3cce8d58..da769d865 100644 --- a/cli/command/stack/ps_test.go +++ b/cli/command/stack/ps_test.go @@ -11,10 +11,10 @@ import ( . "github.com/docker/cli/internal/test/builders" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestStackPsErrors(t *testing.T) { diff --git a/cli/command/stack/remove_test.go b/cli/command/stack/remove_test.go index 5f27a9b32..196ebdc67 100644 --- a/cli/command/stack/remove_test.go +++ b/cli/command/stack/remove_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func fakeClientForRemoveStackTest(version string) *fakeClient { diff --git a/cli/command/stack/services_test.go b/cli/command/stack/services_test.go index 195d65c34..2acb91ca7 100644 --- a/cli/command/stack/services_test.go +++ b/cli/command/stack/services_test.go @@ -10,10 +10,10 @@ import ( . "github.com/docker/cli/internal/test/builders" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) func TestStackServicesErrors(t *testing.T) { diff --git a/cli/command/stack/swarm/deploy_bundlefile_test.go b/cli/command/stack/swarm/deploy_bundlefile_test.go index 4e66caabe..485271cbc 100644 --- a/cli/command/stack/swarm/deploy_bundlefile_test.go +++ b/cli/command/stack/swarm/deploy_bundlefile_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestLoadBundlefileErrors(t *testing.T) { diff --git a/cli/command/stack/swarm/deploy_composefile_test.go b/cli/command/stack/swarm/deploy_composefile_test.go index a3278b847..065a4f293 100644 --- a/cli/command/stack/swarm/deploy_composefile_test.go +++ b/cli/command/stack/swarm/deploy_composefile_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/internal/test/network" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) type notFound struct { diff --git a/cli/command/stack/swarm/deploy_test.go b/cli/command/stack/swarm/deploy_test.go index 690ab4844..64aafec38 100644 --- a/cli/command/stack/swarm/deploy_test.go +++ b/cli/command/stack/swarm/deploy_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPruneServices(t *testing.T) { diff --git a/cli/command/stack/swarm/ps_test.go b/cli/command/stack/swarm/ps_test.go index 1989f140b..33401da65 100644 --- a/cli/command/stack/swarm/ps_test.go +++ b/cli/command/stack/swarm/ps_test.go @@ -5,8 +5,8 @@ import ( "github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRunPSWithEmptyName(t *testing.T) { diff --git a/cli/command/stack/swarm/remove_test.go b/cli/command/stack/swarm/remove_test.go index bfc43e742..3d30b288a 100644 --- a/cli/command/stack/swarm/remove_test.go +++ b/cli/command/stack/swarm/remove_test.go @@ -5,8 +5,8 @@ import ( "github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRunRemoveWithEmptyName(t *testing.T) { diff --git a/cli/command/stack/swarm/services_test.go b/cli/command/stack/swarm/services_test.go index dbd56222d..9e3ca47f3 100644 --- a/cli/command/stack/swarm/services_test.go +++ b/cli/command/stack/swarm/services_test.go @@ -5,8 +5,8 @@ import ( "github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestRunServicesWithEmptyName(t *testing.T) { diff --git a/cli/command/swarm/ca_test.go b/cli/command/swarm/ca_test.go index d11739ec3..499090477 100644 --- a/cli/command/swarm/ca_test.go +++ b/cli/command/swarm/ca_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func swarmSpecWithFullCAConfig() *swarm.Spec { diff --git a/cli/command/swarm/init_test.go b/cli/command/swarm/init_test.go index 22712726c..735cc8da4 100644 --- a/cli/command/swarm/init_test.go +++ b/cli/command/swarm/init_test.go @@ -8,9 +8,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestSwarmInitErrorOnAPIFailure(t *testing.T) { diff --git a/cli/command/swarm/join_test.go b/cli/command/swarm/join_test.go index 7817df144..e70d448db 100644 --- a/cli/command/swarm/join_test.go +++ b/cli/command/swarm/join_test.go @@ -8,9 +8,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "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 TestSwarmJoinErrors(t *testing.T) { diff --git a/cli/command/swarm/join_token_test.go b/cli/command/swarm/join_token_test.go index ca042671b..1bd7ba250 100644 --- a/cli/command/swarm/join_token_test.go +++ b/cli/command/swarm/join_token_test.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestSwarmJoinTokenErrors(t *testing.T) { diff --git a/cli/command/swarm/leave_test.go b/cli/command/swarm/leave_test.go index 07eac2c4d..91ee6e248 100644 --- a/cli/command/swarm/leave_test.go +++ b/cli/command/swarm/leave_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/docker/cli/internal/test" - "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 TestSwarmLeaveErrors(t *testing.T) { diff --git a/cli/command/swarm/opts_test.go b/cli/command/swarm/opts_test.go index 6aa12b89c..6382d2a02 100644 --- a/cli/command/swarm/opts_test.go +++ b/cli/command/swarm/opts_test.go @@ -3,8 +3,8 @@ package swarm import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestNodeAddrOptionSetHostAndPort(t *testing.T) { diff --git a/cli/command/swarm/unlock_key_test.go b/cli/command/swarm/unlock_key_test.go index aaade6fe9..d28921a14 100644 --- a/cli/command/swarm/unlock_key_test.go +++ b/cli/command/swarm/unlock_key_test.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestSwarmUnlockKeyErrors(t *testing.T) { diff --git a/cli/command/swarm/unlock_test.go b/cli/command/swarm/unlock_test.go index eb481d13c..8eb2ecd4f 100644 --- a/cli/command/swarm/unlock_test.go +++ b/cli/command/swarm/unlock_test.go @@ -9,8 +9,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestSwarmUnlockErrors(t *testing.T) { diff --git a/cli/command/swarm/update_test.go b/cli/command/swarm/update_test.go index 60e44ddfe..256c9de6d 100644 --- a/cli/command/swarm/update_test.go +++ b/cli/command/swarm/update_test.go @@ -12,8 +12,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestSwarmUpdateErrors(t *testing.T) { diff --git a/cli/command/system/info_test.go b/cli/command/system/info_test.go index 7e2dd6bff..600e79ac3 100644 --- a/cli/command/system/info_test.go +++ b/cli/command/system/info_test.go @@ -10,9 +10,9 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/registry" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) // helper function that base64 decodes a string and ignores the error diff --git a/cli/command/system/prune_test.go b/cli/command/system/prune_test.go index b763c480a..c0b5cafd3 100644 --- a/cli/command/system/prune_test.go +++ b/cli/command/system/prune_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPrunePromptPre131DoesNotIncludeBuildCache(t *testing.T) { diff --git a/cli/command/system/version_test.go b/cli/command/system/version_test.go index 81fc5b91a..fdf870d0f 100644 --- a/cli/command/system/version_test.go +++ b/cli/command/system/version_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" "github.com/docker/cli/internal/test" "github.com/docker/docker/api" diff --git a/cli/command/task/print_test.go b/cli/command/task/print_test.go index aa1cfed37..6fa6e5865 100644 --- a/cli/command/task/print_test.go +++ b/cli/command/task/print_test.go @@ -12,8 +12,8 @@ import ( . "github.com/docker/cli/internal/test/builders" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestTaskPrintWithQuietOption(t *testing.T) { diff --git a/cli/command/trust/helpers_test.go b/cli/command/trust/helpers_test.go index 216ae5ce9..fab61214c 100644 --- a/cli/command/trust/helpers_test.go +++ b/cli/command/trust/helpers_test.go @@ -5,10 +5,10 @@ import ( "os" "testing" - "github.com/gotestyourself/gotestyourself/assert" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustpinning" + "gotest.tools/assert" ) func TestGetOrGenerateNotaryKeyAndInitRepo(t *testing.T) { diff --git a/cli/command/trust/inspect_pretty_test.go b/cli/command/trust/inspect_pretty_test.go index 5db01666b..8c5141b33 100644 --- a/cli/command/trust/inspect_pretty_test.go +++ b/cli/command/trust/inspect_pretty_test.go @@ -9,12 +9,12 @@ import ( "github.com/docker/cli/internal/test" notaryfake "github.com/docker/cli/internal/test/notary" dockerClient "github.com/docker/docker/client" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" "github.com/theupdateframework/notary" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/tuf/data" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" ) // TODO(n4ss): remove common tests with the regular inspect command diff --git a/cli/command/trust/inspect_test.go b/cli/command/trust/inspect_test.go index 6e0e402bb..3cf6e0ebc 100644 --- a/cli/command/trust/inspect_test.go +++ b/cli/command/trust/inspect_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/cli/internal/test/notary" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestTrustInspectCommandErrors(t *testing.T) { diff --git a/cli/command/trust/key_generate_test.go b/cli/command/trust/key_generate_test.go index 6e26f98d1..b4c798d87 100644 --- a/cli/command/trust/key_generate_test.go +++ b/cli/command/trust/key_generate_test.go @@ -10,12 +10,12 @@ import ( "github.com/docker/cli/cli/config" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/theupdateframework/notary" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustmanager" tufutils "github.com/theupdateframework/notary/tuf/utils" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestTrustKeyGenerateErrors(t *testing.T) { diff --git a/cli/command/trust/key_load_test.go b/cli/command/trust/key_load_test.go index c4da320a5..e0e35aab9 100644 --- a/cli/command/trust/key_load_test.go +++ b/cli/command/trust/key_load_test.go @@ -11,14 +11,14 @@ import ( "github.com/docker/cli/cli/config" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/skip" "github.com/theupdateframework/notary" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/storage" "github.com/theupdateframework/notary/trustmanager" tufutils "github.com/theupdateframework/notary/tuf/utils" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/skip" ) func TestTrustKeyLoadErrors(t *testing.T) { diff --git a/cli/command/trust/revoke_test.go b/cli/command/trust/revoke_test.go index 289fd3f17..b0a43876c 100644 --- a/cli/command/trust/revoke_test.go +++ b/cli/command/trust/revoke_test.go @@ -7,11 +7,11 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/cli/internal/test/notary" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustpinning" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestTrustRevokeCommandErrors(t *testing.T) { diff --git a/cli/command/trust/sign_test.go b/cli/command/trust/sign_test.go index e441f7bef..5a7b6b5f3 100644 --- a/cli/command/trust/sign_test.go +++ b/cli/command/trust/sign_test.go @@ -12,15 +12,15 @@ import ( "github.com/docker/cli/cli/trust" "github.com/docker/cli/internal/test" notaryfake "github.com/docker/cli/internal/test/notary" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/skip" "github.com/theupdateframework/notary" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/client/changelist" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustpinning" "github.com/theupdateframework/notary/tuf/data" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/skip" ) const passwd = "password" diff --git a/cli/command/trust/signer_add_test.go b/cli/command/trust/signer_add_test.go index 643a31b75..64121e295 100644 --- a/cli/command/trust/signer_add_test.go +++ b/cli/command/trust/signer_add_test.go @@ -11,9 +11,9 @@ import ( "github.com/docker/cli/cli/config" "github.com/docker/cli/internal/test" notaryfake "github.com/docker/cli/internal/test/notary" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/theupdateframework/notary" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestTrustSignerAddErrors(t *testing.T) { diff --git a/cli/command/trust/signer_remove_test.go b/cli/command/trust/signer_remove_test.go index 4f11634be..f86bd8401 100644 --- a/cli/command/trust/signer_remove_test.go +++ b/cli/command/trust/signer_remove_test.go @@ -6,10 +6,10 @@ import ( "github.com/docker/cli/internal/test" notaryfake "github.com/docker/cli/internal/test/notary" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/tuf/data" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestTrustSignerRemoveErrors(t *testing.T) { diff --git a/cli/command/volume/create_test.go b/cli/command/volume/create_test.go index 40462a8c6..a0646ed11 100644 --- a/cli/command/volume/create_test.go +++ b/cli/command/volume/create_test.go @@ -9,9 +9,9 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" volumetypes "github.com/docker/docker/api/types/volume" - "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 TestVolumeCreateErrors(t *testing.T) { diff --git a/cli/command/volume/inspect_test.go b/cli/command/volume/inspect_test.go index c827b7281..759042a51 100644 --- a/cli/command/volume/inspect_test.go +++ b/cli/command/volume/inspect_test.go @@ -10,8 +10,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestVolumeInspectErrors(t *testing.T) { diff --git a/cli/command/volume/list_test.go b/cli/command/volume/list_test.go index ac140e358..62d7d9566 100644 --- a/cli/command/volume/list_test.go +++ b/cli/command/volume/list_test.go @@ -12,8 +12,8 @@ import ( "github.com/pkg/errors" // Import builders to get the builder function as package function . "github.com/docker/cli/internal/test/builders" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" + "gotest.tools/assert" + "gotest.tools/golden" ) func TestVolumeListErrors(t *testing.T) { diff --git a/cli/command/volume/prune_test.go b/cli/command/volume/prune_test.go index 0d75d3b75..79d4d52e3 100644 --- a/cli/command/volume/prune_test.go +++ b/cli/command/volume/prune_test.go @@ -11,10 +11,10 @@ import ( "github.com/docker/cli/internal/test" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/skip" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/golden" + "gotest.tools/skip" ) func TestVolumePruneErrors(t *testing.T) { @@ -79,7 +79,7 @@ func TestVolumePruneForce(t *testing.T) { func TestVolumePrunePromptYes(t *testing.T) { // FIXME(vdemeester) make it work.. - skip.IfCondition(t, runtime.GOOS == "windows", "TODO: fix test on windows") + skip.If(t, runtime.GOOS == "windows", "TODO: fix test on windows") for _, input := range []string{"y", "Y"} { cli := test.NewFakeCli(&fakeClient{ @@ -95,7 +95,7 @@ func TestVolumePrunePromptYes(t *testing.T) { func TestVolumePrunePromptNo(t *testing.T) { // FIXME(vdemeester) make it work.. - skip.IfCondition(t, runtime.GOOS == "windows", "TODO: fix test on windows") + skip.If(t, runtime.GOOS == "windows", "TODO: fix test on windows") for _, input := range []string{"n", "N", "no", "anything", "really"} { cli := test.NewFakeCli(&fakeClient{ diff --git a/cli/command/volume/remove_test.go b/cli/command/volume/remove_test.go index f773a3648..789d906a8 100644 --- a/cli/command/volume/remove_test.go +++ b/cli/command/volume/remove_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/docker/cli/internal/test" - "github.com/gotestyourself/gotestyourself/assert" "github.com/pkg/errors" + "gotest.tools/assert" ) func TestVolumeRemoveErrors(t *testing.T) { diff --git a/cli/compose/convert/compose_test.go b/cli/compose/convert/compose_test.go index 1846df17e..98b2dc1cc 100644 --- a/cli/compose/convert/compose_test.go +++ b/cli/compose/convert/compose_test.go @@ -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) { diff --git a/cli/compose/convert/service_test.go b/cli/compose/convert/service_test.go index 3d9e47140..7e5fa4e18 100644 --- a/cli/compose/convert/service_test.go +++ b/cli/compose/convert/service_test.go @@ -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) { diff --git a/cli/compose/convert/volume_test.go b/cli/compose/convert/volume_test.go index d7d45eedf..d29c3b6de 100644 --- a/cli/compose/convert/volume_test.go +++ b/cli/compose/convert/volume_test.go @@ -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) { diff --git a/cli/compose/interpolation/interpolation_test.go b/cli/compose/interpolation/interpolation_test.go index 42ea55ff1..3e76642a9 100644 --- a/cli/compose/interpolation/interpolation_test.go +++ b/cli/compose/interpolation/interpolation_test.go @@ -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{ diff --git a/cli/compose/loader/loader_test.go b/cli/compose/loader/loader_test.go index 64b7406e6..a00a972eb 100644 --- a/cli/compose/loader/loader_test.go +++ b/cli/compose/loader/loader_test.go @@ -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 { diff --git a/cli/compose/loader/merge_test.go b/cli/compose/loader/merge_test.go index df74ad17f..178d302da 100644 --- a/cli/compose/loader/merge_test.go +++ b/cli/compose/loader/merge_test.go @@ -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) { diff --git a/cli/compose/loader/types_test.go b/cli/compose/loader/types_test.go index 88f677809..0d604d8ce 100644 --- a/cli/compose/loader/types_test.go +++ b/cli/compose/loader/types_test.go @@ -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) { diff --git a/cli/compose/loader/volume_test.go b/cli/compose/loader/volume_test.go index 5e96b0aef..ebe5f6b59 100644 --- a/cli/compose/loader/volume_test.go +++ b/cli/compose/loader/volume_test.go @@ -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) { diff --git a/cli/compose/schema/schema_test.go b/cli/compose/schema/schema_test.go index 17ffb203f..6fa027e49 100644 --- a/cli/compose/schema/schema_test.go +++ b/cli/compose/schema/schema_test.go @@ -3,7 +3,7 @@ package schema import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" + "gotest.tools/assert" ) type dict map[string]interface{} diff --git a/cli/compose/template/template_test.go b/cli/compose/template/template_test.go index 5e4ff9b3e..48d76bb9f 100644 --- a/cli/compose/template/template_test.go +++ b/cli/compose/template/template_test.go @@ -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{ diff --git a/cli/config/config_test.go b/cli/config/config_test.go index 74c441a4b..11c8dd6de 100644 --- a/cli/config/config_test.go +++ b/cli/config/config_test.go @@ -12,9 +12,9 @@ import ( "github.com/docker/cli/cli/config/configfile" "github.com/docker/cli/cli/config/credentials" "github.com/docker/docker/pkg/homedir" - "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 setupConfigDir(t *testing.T) (string, func()) { diff --git a/cli/config/configfile/file_test.go b/cli/config/configfile/file_test.go index 34e3b485b..f0704cef3 100644 --- a/cli/config/configfile/file_test.go +++ b/cli/config/configfile/file_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/cli/config/credentials" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestEncodeAuth(t *testing.T) { diff --git a/cli/config/credentials/file_store_test.go b/cli/config/credentials/file_store_test.go index 984dc1fa6..eb27d3774 100644 --- a/cli/config/credentials/file_store_test.go +++ b/cli/config/credentials/file_store_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) type fakeStore struct { diff --git a/cli/config/credentials/native_store_test.go b/cli/config/credentials/native_store_test.go index 57a506f62..88befab5e 100644 --- a/cli/config/credentials/native_store_test.go +++ b/cli/config/credentials/native_store_test.go @@ -11,9 +11,9 @@ import ( "github.com/docker/docker-credential-helpers/client" "github.com/docker/docker-credential-helpers/credentials" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/pkg/errors" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) const ( diff --git a/cli/flags/common_test.go b/cli/flags/common_test.go index 2f06e11e4..7150691ec 100644 --- a/cli/flags/common_test.go +++ b/cli/flags/common_test.go @@ -5,9 +5,9 @@ import ( "testing" cliconfig "github.com/docker/cli/cli/config" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" "github.com/spf13/pflag" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestCommonOptionsInstallFlags(t *testing.T) { diff --git a/cli/manifest/store/store_test.go b/cli/manifest/store/store_test.go index 669b81e7c..ae56fea92 100644 --- a/cli/manifest/store/store_test.go +++ b/cli/manifest/store/store_test.go @@ -8,8 +8,8 @@ import ( "github.com/docker/cli/cli/manifest/types" "github.com/docker/distribution/reference" "github.com/google/go-cmp/cmp" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) type fakeRef struct { diff --git a/cli/required_test.go b/cli/required_test.go index c82e3b965..df3e9a467 100644 --- a/cli/required_test.go +++ b/cli/required_test.go @@ -5,8 +5,8 @@ import ( "io/ioutil" "testing" - "github.com/gotestyourself/gotestyourself/assert" "github.com/spf13/cobra" + "gotest.tools/assert" ) func TestRequiresNoArgs(t *testing.T) { diff --git a/cli/trust/trust_test.go b/cli/trust/trust_test.go index 67e181ba2..b49b7ca87 100644 --- a/cli/trust/trust_test.go +++ b/cli/trust/trust_test.go @@ -6,12 +6,12 @@ import ( "testing" "github.com/docker/distribution/reference" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" digest "github.com/opencontainers/go-digest" "github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/trustpinning" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestGetTag(t *testing.T) { diff --git a/cmd/docker/docker_test.go b/cmd/docker/docker_test.go index 1bf30bf7c..92a946685 100644 --- a/cmd/docker/docker_test.go +++ b/cmd/docker/docker_test.go @@ -7,9 +7,9 @@ import ( "github.com/docker/cli/cli/command" "github.com/docker/cli/cli/debug" - "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 TestClientDebugEnabled(t *testing.T) { diff --git a/e2e/container/attach_test.go b/e2e/container/attach_test.go index 393d8cc81..3be6c2ae1 100644 --- a/e2e/container/attach_test.go +++ b/e2e/container/attach_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/docker/cli/e2e/internal/fixtures" - "github.com/gotestyourself/gotestyourself/icmd" + "gotest.tools/icmd" ) func TestAttachExitCode(t *testing.T) { diff --git a/e2e/container/create_test.go b/e2e/container/create_test.go index 23e6883b5..973380860 100644 --- a/e2e/container/create_test.go +++ b/e2e/container/create_test.go @@ -6,8 +6,8 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/icmd" + "gotest.tools/skip" ) func TestCreateWithContentTrust(t *testing.T) { diff --git a/e2e/container/kill_test.go b/e2e/container/kill_test.go index cfa019386..d4e71591a 100644 --- a/e2e/container/kill_test.go +++ b/e2e/container/kill_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/docker/cli/e2e/internal/fixtures" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/poll" + "gotest.tools/icmd" + "gotest.tools/poll" ) func TestKillContainer(t *testing.T) { diff --git a/e2e/container/run_test.go b/e2e/container/run_test.go index ed9f9d0b0..68a3e4002 100644 --- a/e2e/container/run_test.go +++ b/e2e/container/run_test.go @@ -6,11 +6,11 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/golden" + "gotest.tools/icmd" + "gotest.tools/skip" ) const registryPrefix = "registry:5000" diff --git a/e2e/image/build_test.go b/e2e/image/build_test.go index 4d7ff0897..7d89a6f3b 100644 --- a/e2e/image/build_test.go +++ b/e2e/image/build_test.go @@ -7,9 +7,9 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" "github.com/docker/cli/internal/test/output" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/fs" + "gotest.tools/icmd" + "gotest.tools/skip" ) func TestBuildFromContextDirectoryWithTag(t *testing.T) { diff --git a/e2e/image/pull_test.go b/e2e/image/pull_test.go index fbf14d46b..625ccd599 100644 --- a/e2e/image/pull_test.go +++ b/e2e/image/pull_test.go @@ -5,9 +5,9 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/golden" + "gotest.tools/icmd" + "gotest.tools/skip" ) const registryPrefix = "registry:5000" diff --git a/e2e/image/push_test.go b/e2e/image/push_test.go index 6b21f1196..91dbc1cba 100644 --- a/e2e/image/push_test.go +++ b/e2e/image/push_test.go @@ -10,11 +10,11 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" "github.com/docker/cli/internal/test/output" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + "gotest.tools/fs" + "gotest.tools/golden" + "gotest.tools/icmd" + "gotest.tools/skip" ) const ( diff --git a/e2e/internal/fixtures/fixtures.go b/e2e/internal/fixtures/fixtures.go index 528e07b95..99343f654 100644 --- a/e2e/internal/fixtures/fixtures.go +++ b/e2e/internal/fixtures/fixtures.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/icmd" + "gotest.tools/fs" + "gotest.tools/icmd" ) const ( diff --git a/e2e/plugin/trust_test.go b/e2e/plugin/trust_test.go index f19034e38..8dc3cad87 100644 --- a/e2e/plugin/trust_test.go +++ b/e2e/plugin/trust_test.go @@ -11,11 +11,11 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" "github.com/docker/docker/api/types" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" "github.com/pkg/errors" + "gotest.tools/assert" + "gotest.tools/fs" + "gotest.tools/icmd" + "gotest.tools/skip" ) const registryPrefix = "registry:5000" diff --git a/e2e/stack/deploy_test.go b/e2e/stack/deploy_test.go index a19f1ea81..a0e7d2860 100644 --- a/e2e/stack/deploy_test.go +++ b/e2e/stack/deploy_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/assert" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + "gotest.tools/golden" + "gotest.tools/icmd" + "gotest.tools/skip" ) func TestDeployWithNamedResources(t *testing.T) { diff --git a/e2e/stack/remove_test.go b/e2e/stack/remove_test.go index 47ec92bbe..27300b1cc 100644 --- a/e2e/stack/remove_test.go +++ b/e2e/stack/remove_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/golden" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/poll" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/golden" + "gotest.tools/icmd" + "gotest.tools/poll" + "gotest.tools/skip" ) var pollSettings = environment.DefaultPollSettings diff --git a/e2e/system/inspect_test.go b/e2e/system/inspect_test.go index aefab5160..2b3295972 100644 --- a/e2e/system/inspect_test.go +++ b/e2e/system/inspect_test.go @@ -3,7 +3,7 @@ package system import ( "testing" - "github.com/gotestyourself/gotestyourself/icmd" + "gotest.tools/icmd" ) // TestInspectInvalidReference migrated from moby/integration-cli diff --git a/e2e/trust/revoke_test.go b/e2e/trust/revoke_test.go index b356bd76c..85b1cdc0e 100644 --- a/e2e/trust/revoke_test.go +++ b/e2e/trust/revoke_test.go @@ -6,11 +6,11 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/fs" + "gotest.tools/icmd" + "gotest.tools/skip" ) const ( diff --git a/e2e/trust/sign_test.go b/e2e/trust/sign_test.go index 5dbf959ae..ffa320e90 100644 --- a/e2e/trust/sign_test.go +++ b/e2e/trust/sign_test.go @@ -6,11 +6,11 @@ import ( "github.com/docker/cli/e2e/internal/fixtures" "github.com/docker/cli/internal/test/environment" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" - "github.com/gotestyourself/gotestyourself/fs" - "github.com/gotestyourself/gotestyourself/icmd" - "github.com/gotestyourself/gotestyourself/skip" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" + "gotest.tools/fs" + "gotest.tools/icmd" + "gotest.tools/skip" ) const ( diff --git a/internal/test/environment/testenv.go b/internal/test/environment/testenv.go index 9d719014b..3e4ef8495 100644 --- a/internal/test/environment/testenv.go +++ b/internal/test/environment/testenv.go @@ -5,8 +5,8 @@ import ( "strings" "time" - "github.com/gotestyourself/gotestyourself/poll" "github.com/pkg/errors" + "gotest.tools/poll" ) // Setup a new environment diff --git a/kubernetes/check_test.go b/kubernetes/check_test.go index a8a6e6593..e9b9aa7f9 100644 --- a/kubernetes/check_test.go +++ b/kubernetes/check_test.go @@ -3,8 +3,8 @@ package kubernetes import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/kubernetes/labels/labels_test.go b/kubernetes/labels/labels_test.go index d99f88182..7815b73d3 100644 --- a/kubernetes/labels/labels_test.go +++ b/kubernetes/labels/labels_test.go @@ -3,8 +3,8 @@ package labels import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestForService(t *testing.T) { diff --git a/opts/duration_test.go b/opts/duration_test.go index 937585d89..1a2c76a8d 100644 --- a/opts/duration_test.go +++ b/opts/duration_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestDurationOptString(t *testing.T) { diff --git a/opts/mount_test.go b/opts/mount_test.go index bf7b0f201..e59f07fe6 100644 --- a/opts/mount_test.go +++ b/opts/mount_test.go @@ -5,8 +5,8 @@ import ( "testing" mounttypes "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 TestMountOptString(t *testing.T) { diff --git a/opts/network_test.go b/opts/network_test.go index 357ac1080..5219d14a3 100644 --- a/opts/network_test.go +++ b/opts/network_test.go @@ -3,8 +3,8 @@ package opts import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestNetworkOptLegacySyntax(t *testing.T) { diff --git a/opts/port_test.go b/opts/port_test.go index 7f07a86cf..fb3498f7c 100644 --- a/opts/port_test.go +++ b/opts/port_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/docker/docker/api/types/swarm" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestPortOptValidSimpleSyntax(t *testing.T) { diff --git a/opts/quotedstring_test.go b/opts/quotedstring_test.go index a23448f1b..72ec6a21c 100644 --- a/opts/quotedstring_test.go +++ b/opts/quotedstring_test.go @@ -3,8 +3,8 @@ package opts import ( "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestQuotedStringSetWithQuotes(t *testing.T) { diff --git a/opts/secret_test.go b/opts/secret_test.go index 95ed75214..94dd80d19 100644 --- a/opts/secret_test.go +++ b/opts/secret_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) func TestSecretOptionsSimple(t *testing.T) { diff --git a/service/logs/parse_logs_test.go b/service/logs/parse_logs_test.go index a8f612ce4..24bd0db7b 100644 --- a/service/logs/parse_logs_test.go +++ b/service/logs/parse_logs_test.go @@ -3,9 +3,9 @@ package logs import ( "testing" - "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 TestParseLogDetails(t *testing.T) { diff --git a/templates/templates_test.go b/templates/templates_test.go index fa4d77339..102de2bd9 100644 --- a/templates/templates_test.go +++ b/templates/templates_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/gotestyourself/gotestyourself/assert" - is "github.com/gotestyourself/gotestyourself/assert/cmp" + "gotest.tools/assert" + is "gotest.tools/assert/cmp" ) // GitHub #32120