Browse code

rm-gocheck: run goimports to compile successfully

goimports -w \
-- "./integration-cli/daemon" "./pkg/discovery" "./pkg/discovery/file" "./pkg/discovery/kv" "./pkg/discovery/memory" "./pkg/discovery/nodes" "./integration-cli" \
&& \
gofmt -w -s \
-- "./integration-cli/daemon" "./pkg/discovery" "./pkg/discovery/file" "./pkg/discovery/kv" "./pkg/discovery/memory" "./pkg/discovery/nodes" "./integration-cli"

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 59e55dcdd063d3131ed1992254350b7014d1bf1f)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Tibor Vass authored on 2019/09/10 06:06:12
Showing 98 changed files
... ...
@@ -7,8 +7,8 @@ import (
7 7
 	"runtime"
8 8
 	"strings"
9 9
 	"sync"
10
+	"testing"
10 11
 
11
-	"github.com/go-check/check"
12 12
 	"gotest.tools/assert"
13 13
 )
14 14
 
... ...
@@ -23,7 +23,6 @@ import (
23 23
 	"github.com/docker/docker/internal/test/fixtures/plugin"
24 24
 	"github.com/docker/docker/internal/test/registry"
25 25
 	"github.com/docker/docker/pkg/reexec"
26
-	"github.com/go-check/check"
27 26
 	"gotest.tools/assert"
28 27
 )
29 28
 
... ...
@@ -3,6 +3,7 @@ package daemon // import "github.com/docker/docker/integration-cli/daemon"
3 3
 import (
4 4
 	"fmt"
5 5
 	"strings"
6
+	"testing"
6 7
 	"time"
7 8
 
8 9
 	"github.com/docker/docker/internal/test/daemon"
... ...
@@ -4,6 +4,7 @@ import (
4 4
 	"context"
5 5
 	"fmt"
6 6
 	"strings"
7
+	"testing"
7 8
 
8 9
 	"github.com/docker/docker/api/types"
9 10
 	"github.com/docker/docker/api/types/filters"
... ...
@@ -1,8 +1,9 @@
1 1
 package main
2 2
 
3 3
 import (
4
+	"testing"
5
+
4 6
 	"github.com/docker/docker/integration-cli/daemon"
5
-	"github.com/go-check/check"
6 7
 )
7 8
 
8 9
 func (s *DockerSwarmSuite) getDaemon(c *testing.T, nodeID string) *daemon.Daemon {
... ...
@@ -10,13 +10,13 @@ import (
10 10
 	"net/http"
11 11
 	"net/http/httputil"
12 12
 	"strings"
13
+	"testing"
13 14
 	"time"
14 15
 
15 16
 	"github.com/docker/docker/api/types"
16 17
 	"github.com/docker/docker/client"
17 18
 	"github.com/docker/docker/internal/test/request"
18 19
 	"github.com/docker/docker/pkg/stdcopy"
19
-	"github.com/go-check/check"
20 20
 	"github.com/pkg/errors"
21 21
 	"golang.org/x/net/websocket"
22 22
 	"gotest.tools/assert"
... ...
@@ -11,13 +11,13 @@ import (
11 11
 	"net/http"
12 12
 	"regexp"
13 13
 	"strings"
14
+	"testing"
14 15
 
15 16
 	"github.com/docker/docker/api/types"
16 17
 	"github.com/docker/docker/internal/test/fakecontext"
17 18
 	"github.com/docker/docker/internal/test/fakegit"
18 19
 	"github.com/docker/docker/internal/test/fakestorage"
19 20
 	"github.com/docker/docker/internal/test/request"
20
-	"github.com/go-check/check"
21 21
 	"gotest.tools/assert"
22 22
 	is "gotest.tools/assert/cmp"
23 23
 )
... ...
@@ -4,10 +4,10 @@ package main
4 4
 
5 5
 import (
6 6
 	"net/http"
7
+	"testing"
7 8
 
8 9
 	"github.com/docker/docker/internal/test/fakecontext"
9 10
 	"github.com/docker/docker/internal/test/request"
10
-	"github.com/go-check/check"
11 11
 	"gotest.tools/assert"
12 12
 	is "gotest.tools/assert/cmp"
13 13
 )
... ...
@@ -14,6 +14,7 @@ import (
14 14
 	"regexp"
15 15
 	"runtime"
16 16
 	"strings"
17
+	"testing"
17 18
 	"time"
18 19
 
19 20
 	"github.com/docker/docker/api/types"
... ...
@@ -8,12 +8,12 @@ import (
8 8
 	"io/ioutil"
9 9
 	"math/rand"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	winio "github.com/Microsoft/go-winio"
13 14
 	"github.com/docker/docker/api/types"
14 15
 	"github.com/docker/docker/api/types/container"
15 16
 	"github.com/docker/docker/api/types/mount"
16
-	"github.com/go-check/check"
17 17
 	"gotest.tools/assert"
18 18
 	is "gotest.tools/assert/cmp"
19 19
 )
... ...
@@ -8,10 +8,10 @@ import (
8 8
 	"net/http"
9 9
 	"strings"
10 10
 	"sync"
11
+	"testing"
11 12
 
12 13
 	"github.com/docker/docker/api/types/versions"
13 14
 	"github.com/docker/docker/internal/test/request"
14
-	"github.com/go-check/check"
15 15
 	"gotest.tools/assert"
16 16
 )
17 17
 
... ...
@@ -9,6 +9,7 @@ import (
9 9
 	"net/http"
10 10
 	"os"
11 11
 	"strings"
12
+	"testing"
12 13
 	"time"
13 14
 
14 15
 	"github.com/docker/docker/api/types"
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"runtime"
8 8
 	"strconv"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/docker/api/types"
12 13
 	"github.com/docker/docker/api/types/filters"
... ...
@@ -15,7 +16,6 @@ import (
15 15
 	"github.com/docker/docker/integration-cli/cli/build"
16 16
 	"github.com/docker/docker/internal/test/request"
17 17
 	"github.com/docker/docker/pkg/parsers/kernel"
18
-	"github.com/go-check/check"
19 18
 	"gotest.tools/assert"
20 19
 )
21 20
 
... ...
@@ -4,11 +4,11 @@ import (
4 4
 	"context"
5 5
 	"encoding/json"
6 6
 	"strings"
7
+	"testing"
7 8
 
8 9
 	"github.com/docker/docker/api/types"
9 10
 	"github.com/docker/docker/api/types/versions/v1p20"
10 11
 	"github.com/docker/docker/client"
11
-	"github.com/go-check/check"
12 12
 	"gotest.tools/assert"
13 13
 	is "gotest.tools/assert/cmp"
14 14
 )
... ...
@@ -10,13 +10,13 @@ import (
10 10
 	"net/http"
11 11
 	"strconv"
12 12
 	"strings"
13
+	"testing"
13 14
 	"time"
14 15
 
15 16
 	"github.com/docker/docker/api/types"
16 17
 	"github.com/docker/docker/client"
17 18
 	"github.com/docker/docker/internal/test/request"
18 19
 	"github.com/docker/docker/pkg/stdcopy"
19
-	"github.com/go-check/check"
20 20
 	"gotest.tools/assert"
21 21
 )
22 22
 
... ...
@@ -7,13 +7,13 @@ import (
7 7
 	"net/http"
8 8
 	"net/url"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/docker/api/types"
12 13
 	"github.com/docker/docker/api/types/filters"
13 14
 	"github.com/docker/docker/api/types/network"
14 15
 	"github.com/docker/docker/api/types/versions"
15 16
 	"github.com/docker/docker/internal/test/request"
16
-	"github.com/go-check/check"
17 17
 	"gotest.tools/assert"
18 18
 )
19 19
 
... ...
@@ -10,13 +10,13 @@ import (
10 10
 	"strconv"
11 11
 	"strings"
12 12
 	"sync"
13
+	"testing"
13 14
 	"time"
14 15
 
15 16
 	"github.com/docker/docker/api/types"
16 17
 	"github.com/docker/docker/api/types/versions"
17 18
 	"github.com/docker/docker/client"
18 19
 	"github.com/docker/docker/internal/test/request"
19
-	"github.com/go-check/check"
20 20
 	"gotest.tools/assert"
21 21
 )
22 22
 
... ...
@@ -3,12 +3,14 @@
3 3
 package main
4 4
 
5 5
 import (
6
+	"testing"
6 7
 	"time"
7 8
 
8 9
 	"github.com/docker/docker/api/types/swarm"
9 10
 	"github.com/docker/docker/integration-cli/checker"
10 11
 	"github.com/docker/docker/integration-cli/daemon"
11 12
 	"github.com/go-check/check"
13
+	"gotest.tools/assert"
12 14
 )
13 15
 
14 16
 func (s *DockerSwarmSuite) TestAPISwarmListNodes(c *testing.T) {
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"fmt"
8 8
 	"strconv"
9 9
 	"strings"
10
+	"testing"
10 11
 	"time"
11 12
 
12 13
 	"github.com/docker/docker/api/types"
... ...
@@ -12,6 +12,7 @@ import (
12 12
 	"runtime"
13 13
 	"strings"
14 14
 	"sync"
15
+	"testing"
15 16
 	"time"
16 17
 
17 18
 	"github.com/cloudflare/cfssl/csr"
... ...
@@ -7,11 +7,11 @@ import (
7 7
 	"runtime"
8 8
 	"strconv"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/docker/api"
12 13
 	"github.com/docker/docker/api/types/versions"
13 14
 	"github.com/docker/docker/internal/test/request"
14
-	"github.com/go-check/check"
15 15
 	"gotest.tools/assert"
16 16
 )
17 17
 
... ...
@@ -8,10 +8,10 @@ import (
8 8
 	"runtime"
9 9
 	"strings"
10 10
 	"sync"
11
+	"testing"
11 12
 	"time"
12 13
 
13 14
 	"github.com/docker/docker/integration-cli/cli"
14
-	"github.com/go-check/check"
15 15
 	"gotest.tools/assert"
16 16
 	"gotest.tools/icmd"
17 17
 )
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"io/ioutil"
8 8
 	"os/exec"
9 9
 	"strings"
10
+	"testing"
10 11
 	"time"
11 12
 
12 13
 	"github.com/creack/pty"
... ...
@@ -13,6 +13,7 @@ import (
13 13
 	"runtime"
14 14
 	"strconv"
15 15
 	"strings"
16
+	"testing"
16 17
 	"text/template"
17 18
 	"time"
18 19
 
... ...
@@ -13,9 +13,9 @@ import (
13 13
 	"regexp"
14 14
 	"strings"
15 15
 	"syscall"
16
+	"testing"
16 17
 	"time"
17 18
 
18
-	"github.com/docker/docker/integration-cli/checker"
19 19
 	"github.com/docker/docker/integration-cli/cli"
20 20
 	"github.com/docker/docker/integration-cli/cli/build"
21 21
 	"github.com/docker/docker/internal/test/fakecontext"
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"path/filepath"
8 8
 	"regexp"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/distribution/manifest/schema1"
12 13
 	"github.com/docker/distribution/manifest/schema2"
... ...
@@ -2,11 +2,13 @@ package main
2 2
 
3 3
 import (
4 4
 	"strings"
5
+	"testing"
5 6
 
6 7
 	"github.com/docker/docker/api/types/versions"
7 8
 	"github.com/docker/docker/integration-cli/checker"
8 9
 	"github.com/docker/docker/integration-cli/cli"
9 10
 	"github.com/go-check/check"
11
+	"gotest.tools/assert"
10 12
 )
11 13
 
12 14
 func (s *DockerSuite) TestCommitAfterContainerIsDone(c *testing.T) {
... ...
@@ -3,8 +3,8 @@ package main
3 3
 import (
4 4
 	"os"
5 5
 	"path/filepath"
6
+	"testing"
6 7
 
7
-	"github.com/docker/docker/integration-cli/checker"
8 8
 	"github.com/go-check/check"
9 9
 	"gotest.tools/assert"
10 10
 )
... ...
@@ -9,8 +9,8 @@ import (
9 9
 	"path"
10 10
 	"path/filepath"
11 11
 	"strings"
12
+	"testing"
12 13
 
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 	is "gotest.tools/assert/cmp"
16 16
 	"gotest.tools/icmd"
... ...
@@ -2,8 +2,8 @@ package main
2 2
 
3 3
 import (
4 4
 	"os"
5
+	"testing"
5 6
 
6
-	"github.com/docker/docker/integration-cli/checker"
7 7
 	"github.com/go-check/check"
8 8
 	"gotest.tools/assert"
9 9
 )
... ...
@@ -8,9 +8,9 @@ import (
8 8
 	"path/filepath"
9 9
 	"strconv"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	"github.com/docker/docker/pkg/system"
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 )
16 16
 
... ...
@@ -9,9 +9,9 @@ import (
9 9
 	"path/filepath"
10 10
 	"runtime"
11 11
 	"strings"
12
+	"testing"
12 13
 
13 14
 	"github.com/docker/docker/pkg/archive"
14
-	"github.com/go-check/check"
15 15
 	"gotest.tools/assert"
16 16
 )
17 17
 
... ...
@@ -6,6 +6,7 @@ import (
6 6
 	"os"
7 7
 	"reflect"
8 8
 	"strings"
9
+	"testing"
9 10
 	"time"
10 11
 
11 12
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -4,9 +4,9 @@ package main
4 4
 
5 5
 import (
6 6
 	"strings"
7
+	"testing"
7 8
 
8 9
 	"github.com/docker/docker/pkg/mount"
9
-	"github.com/go-check/check"
10 10
 	"golang.org/x/sys/unix"
11 11
 	"gotest.tools/assert"
12 12
 	"gotest.tools/icmd"
... ...
@@ -21,6 +21,7 @@ import (
21 21
 	"strconv"
22 22
 	"strings"
23 23
 	"sync"
24
+	"testing"
24 25
 	"time"
25 26
 
26 27
 	"github.com/cloudflare/cfssl/helpers"
... ...
@@ -11,6 +11,7 @@ import (
11 11
 	"os/exec"
12 12
 	"strconv"
13 13
 	"strings"
14
+	"testing"
14 15
 	"time"
15 16
 
16 17
 	"github.com/docker/docker/api/types"
... ...
@@ -19,7 +20,6 @@ import (
19 19
 	eventstestutils "github.com/docker/docker/daemon/events/testutils"
20 20
 	"github.com/docker/docker/integration-cli/cli"
21 21
 	"github.com/docker/docker/integration-cli/cli/build"
22
-	"github.com/go-check/check"
23 22
 	"gotest.tools/assert"
24 23
 	is "gotest.tools/assert/cmp"
25 24
 	"gotest.tools/icmd"
... ...
@@ -10,12 +10,12 @@ import (
10 10
 	"os"
11 11
 	"os/exec"
12 12
 	"strings"
13
+	"testing"
13 14
 	"time"
14 15
 	"unicode"
15 16
 
16 17
 	"github.com/creack/pty"
17 18
 	"github.com/docker/docker/integration-cli/cli/build"
18
-	"github.com/go-check/check"
19 19
 	"golang.org/x/sys/unix"
20 20
 	"gotest.tools/assert"
21 21
 )
... ...
@@ -11,12 +11,12 @@ import (
11 11
 	"sort"
12 12
 	"strings"
13 13
 	"sync"
14
+	"testing"
14 15
 	"time"
15 16
 
16 17
 	"github.com/docker/docker/client"
17 18
 	"github.com/docker/docker/integration-cli/cli"
18 19
 	"github.com/docker/docker/integration-cli/cli/build"
19
-	"github.com/go-check/check"
20 20
 	"gotest.tools/assert"
21 21
 	is "gotest.tools/assert/cmp"
22 22
 	"gotest.tools/icmd"
... ...
@@ -7,10 +7,10 @@ import (
7 7
 	"io"
8 8
 	"os/exec"
9 9
 	"strings"
10
+	"testing"
10 11
 	"time"
11 12
 
12 13
 	"github.com/creack/pty"
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 )
16 16
 
... ...
@@ -13,6 +13,7 @@ import (
13 13
 	"os/exec"
14 14
 	"path/filepath"
15 15
 	"strings"
16
+	"testing"
16 17
 	"time"
17 18
 
18 19
 	"github.com/docker/docker/api/types"
... ...
@@ -4,12 +4,12 @@ import (
4 4
 	"encoding/json"
5 5
 	"strconv"
6 6
 	"strings"
7
+	"testing"
7 8
 	"time"
8 9
 
9 10
 	"github.com/docker/docker/api/types"
10
-	"github.com/docker/docker/integration-cli/checker"
11 11
 	"github.com/docker/docker/integration-cli/cli/build"
12
-	"github.com/go-check/check"
12
+	"gotest.tools/assert"
13 13
 )
14 14
 
15 15
 func waitForHealthStatus(c *testing.T, name string, prev string, expected string) {
... ...
@@ -5,10 +5,12 @@ import (
5 5
 	"regexp"
6 6
 	"strconv"
7 7
 	"strings"
8
+	"testing"
8 9
 
9 10
 	"github.com/docker/docker/integration-cli/checker"
10 11
 	"github.com/docker/docker/integration-cli/cli/build"
11 12
 	"github.com/go-check/check"
13
+	"gotest.tools/assert"
12 14
 )
13 15
 
14 16
 // This is a heisen-test.  Because the created timestamp of images and the behavior of
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"reflect"
9 9
 	"sort"
10 10
 	"strings"
11
+	"testing"
11 12
 	"time"
12 13
 
13 14
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -8,8 +8,8 @@ import (
8 8
 	"os/exec"
9 9
 	"regexp"
10 10
 	"strings"
11
+	"testing"
11 12
 
12
-	"github.com/docker/docker/integration-cli/checker"
13 13
 	"github.com/docker/docker/integration-cli/cli"
14 14
 	"github.com/go-check/check"
15 15
 	"gotest.tools/assert"
... ...
@@ -5,6 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"net"
7 7
 	"strings"
8
+	"testing"
8 9
 
9 10
 	"github.com/docker/docker/integration-cli/checker"
10 11
 	"github.com/docker/docker/integration-cli/daemon"
... ...
@@ -3,8 +3,10 @@
3 3
 package main
4 4
 
5 5
 import (
6
+	"testing"
7
+
6 8
 	"github.com/docker/docker/integration-cli/checker"
7
-	"github.com/go-check/check"
9
+	"gotest.tools/assert"
8 10
 )
9 11
 
10 12
 func (s *DockerSuite) TestInfoSecurityOptions(c *testing.T) {
... ...
@@ -6,6 +6,7 @@ import (
6 6
 	"os"
7 7
 	"strconv"
8 8
 	"strings"
9
+	"testing"
9 10
 	"time"
10 11
 
11 12
 	"github.com/docker/docker/api/types"
... ...
@@ -6,6 +6,7 @@ import (
6 6
 	"regexp"
7 7
 	"sort"
8 8
 	"strings"
9
+	"testing"
9 10
 
10 11
 	"github.com/docker/docker/integration-cli/checker"
11 12
 	"github.com/docker/docker/runconfig"
... ...
@@ -4,8 +4,8 @@ import (
4 4
 	"bytes"
5 5
 	"os/exec"
6 6
 	"strings"
7
+	"testing"
7 8
 
8
-	"github.com/go-check/check"
9 9
 	"gotest.tools/assert"
10 10
 )
11 11
 
... ...
@@ -8,8 +8,8 @@ import (
8 8
 	"os/exec"
9 9
 	"path/filepath"
10 10
 	"strings"
11
+	"testing"
11 12
 
12
-	"github.com/go-check/check"
13 13
 	"gotest.tools/assert"
14 14
 )
15 15
 
... ...
@@ -3,9 +3,8 @@ package main
3 3
 import (
4 4
 	"fmt"
5 5
 	"strings"
6
+	"testing"
6 7
 	"time"
7
-
8
-	"github.com/go-check/check"
9 8
 )
10 9
 
11 10
 func (s *DockerSuite) BenchmarkLogsCLIRotateFollow(c *testing.B) {
... ...
@@ -6,11 +6,11 @@ import (
6 6
 	"os/exec"
7 7
 	"regexp"
8 8
 	"strings"
9
+	"testing"
9 10
 	"time"
10 11
 
11 12
 	"github.com/docker/docker/integration-cli/cli"
12 13
 	"github.com/docker/docker/pkg/jsonmessage"
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 	"gotest.tools/icmd"
16 16
 )
... ...
@@ -2,10 +2,12 @@ package main
2 2
 
3 3
 import (
4 4
 	"strings"
5
+	"testing"
5 6
 
6 7
 	"github.com/docker/docker/integration-cli/checker"
7 8
 	"github.com/docker/docker/runconfig"
8 9
 	"github.com/go-check/check"
10
+	"gotest.tools/assert"
9 11
 )
10 12
 
11 13
 // GH14530. Validates combinations of --net= with other options
... ...
@@ -11,6 +11,7 @@ import (
11 11
 	"net/http/httptest"
12 12
 	"os"
13 13
 	"strings"
14
+	"testing"
14 15
 	"time"
15 16
 
16 17
 	"github.com/docker/docker/api/types"
... ...
@@ -3,9 +3,9 @@ package main
3 3
 import (
4 4
 	"context"
5 5
 	"strings"
6
+	"testing"
6 7
 
7 8
 	"github.com/docker/docker/client"
8
-	"github.com/go-check/check"
9 9
 	"gotest.tools/assert"
10 10
 )
11 11
 
... ...
@@ -9,6 +9,7 @@ import (
9 9
 	"path"
10 10
 	"path/filepath"
11 11
 	"strings"
12
+	"testing"
12 13
 	"time"
13 14
 
14 15
 	"github.com/docker/docker/api/types"
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"sort"
8 8
 	"strconv"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/docker/integration-cli/checker"
12 13
 	"github.com/go-check/check"
... ...
@@ -3,8 +3,8 @@ package main
3 3
 import (
4 4
 	"net"
5 5
 	"strings"
6
+	"testing"
6 7
 
7
-	"github.com/go-check/check"
8 8
 	"gotest.tools/assert"
9 9
 	"gotest.tools/icmd"
10 10
 )
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"path/filepath"
9 9
 	"strconv"
10 10
 	"strings"
11
+	"testing"
11 12
 	"time"
12 13
 
13 14
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -5,6 +5,7 @@ import (
5 5
 	"sort"
6 6
 	"strconv"
7 7
 	"strings"
8
+	"testing"
8 9
 	"time"
9 10
 
10 11
 	"github.com/docker/docker/api/types/versions"
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"path/filepath"
9 9
 	"runtime"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	"github.com/docker/distribution"
13 14
 	"github.com/docker/distribution/manifest"
... ...
@@ -5,9 +5,9 @@ import (
5 5
 	"regexp"
6 6
 	"strings"
7 7
 	"sync"
8
+	"testing"
8 9
 	"time"
9 10
 
10
-	"github.com/go-check/check"
11 11
 	"github.com/opencontainers/go-digest"
12 12
 	"gotest.tools/assert"
13 13
 	is "gotest.tools/assert/cmp"
... ...
@@ -9,10 +9,10 @@ import (
9 9
 	"os"
10 10
 	"strings"
11 11
 	"sync"
12
+	"testing"
12 13
 
13 14
 	"github.com/docker/distribution/reference"
14 15
 	"github.com/docker/docker/integration-cli/cli/build"
15
-	"github.com/go-check/check"
16 16
 	"gotest.tools/assert"
17 17
 	"gotest.tools/icmd"
18 18
 )
... ...
@@ -6,9 +6,9 @@ import (
6 6
 	"net/http"
7 7
 	"os"
8 8
 	"regexp"
9
+	"testing"
9 10
 
10 11
 	"github.com/docker/docker/internal/test/registry"
11
-	"github.com/go-check/check"
12 12
 	"gotest.tools/assert"
13 13
 )
14 14
 
... ...
@@ -4,6 +4,7 @@ import (
4 4
 	"os"
5 5
 	"strconv"
6 6
 	"strings"
7
+	"testing"
7 8
 	"time"
8 9
 
9 10
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -3,6 +3,7 @@ package main
3 3
 import (
4 4
 	"fmt"
5 5
 	"strings"
6
+	"testing"
6 7
 	"time"
7 8
 
8 9
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -20,6 +20,7 @@ import (
20 20
 	"strconv"
21 21
 	"strings"
22 22
 	"sync"
23
+	"testing"
23 24
 	"time"
24 25
 
25 26
 	"github.com/docker/docker/client"
... ...
@@ -15,6 +15,7 @@ import (
15 15
 	"strconv"
16 16
 	"strings"
17 17
 	"syscall"
18
+	"testing"
18 19
 	"time"
19 20
 
20 21
 	"github.com/creack/pty"
... ...
@@ -13,6 +13,7 @@ import (
13 13
 	"regexp"
14 14
 	"sort"
15 15
 	"strings"
16
+	"testing"
16 17
 	"time"
17 18
 
18 19
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -9,11 +9,11 @@ import (
9 9
 	"os"
10 10
 	"os/exec"
11 11
 	"strings"
12
+	"testing"
12 13
 	"time"
13 14
 
14 15
 	"github.com/creack/pty"
15 16
 	"github.com/docker/docker/integration-cli/cli/build"
16
-	"github.com/go-check/check"
17 17
 	"gotest.tools/assert"
18 18
 	"gotest.tools/icmd"
19 19
 )
... ...
@@ -3,8 +3,8 @@ package main
3 3
 import (
4 4
 	"fmt"
5 5
 	"strings"
6
+	"testing"
6 7
 
7
-	"github.com/go-check/check"
8 8
 	"gotest.tools/assert"
9 9
 )
10 10
 
... ...
@@ -7,6 +7,7 @@ import (
7 7
 	"fmt"
8 8
 	"path/filepath"
9 9
 	"strings"
10
+	"testing"
10 11
 
11 12
 	"github.com/docker/docker/api/types"
12 13
 	"github.com/docker/docker/api/types/mount"
... ...
@@ -5,6 +5,7 @@ package main
5 5
 import (
6 6
 	"strconv"
7 7
 	"strings"
8
+	"testing"
8 9
 
9 10
 	"github.com/docker/docker/api/types/swarm"
10 11
 	"github.com/docker/docker/daemon/cluster/executor/container"
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"io"
9 9
 	"os/exec"
10 10
 	"strings"
11
+	"testing"
11 12
 	"time"
12 13
 
13 14
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -5,8 +5,8 @@ package main
5 5
 import (
6 6
 	"fmt"
7 7
 	"strings"
8
+	"testing"
8 9
 
9
-	"github.com/go-check/check"
10 10
 	"gotest.tools/assert"
11 11
 )
12 12
 
... ...
@@ -9,8 +9,8 @@ import (
9 9
 	"net/url"
10 10
 	"os/exec"
11 11
 	"strings"
12
+	"testing"
12 13
 
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 )
16 16
 
... ...
@@ -3,6 +3,7 @@ package main
3 3
 import (
4 4
 	"fmt"
5 5
 	"strings"
6
+	"testing"
6 7
 	"time"
7 8
 
8 9
 	"github.com/docker/docker/integration-cli/checker"
... ...
@@ -5,10 +5,10 @@ import (
5 5
 	"os/exec"
6 6
 	"regexp"
7 7
 	"strings"
8
+	"testing"
8 9
 	"time"
9 10
 
10 11
 	"github.com/docker/docker/integration-cli/cli"
11
-	"github.com/go-check/check"
12 12
 	"gotest.tools/assert"
13 13
 	is "gotest.tools/assert/cmp"
14 14
 )
... ...
@@ -15,6 +15,7 @@ import (
15 15
 	"path/filepath"
16 16
 	"runtime"
17 17
 	"strings"
18
+	"testing"
18 19
 	"time"
19 20
 
20 21
 	"github.com/cloudflare/cfssl/helpers"
... ...
@@ -5,11 +5,11 @@ package main
5 5
 import (
6 6
 	"encoding/json"
7 7
 	"strings"
8
+	"testing"
8 9
 	"time"
9 10
 
10 11
 	"github.com/docker/docker/api/types/swarm"
11 12
 	"github.com/docker/docker/integration-cli/checker"
12
-	"github.com/go-check/check"
13 13
 	"gotest.tools/assert"
14 14
 )
15 15
 
... ...
@@ -2,8 +2,8 @@ package main
2 2
 
3 3
 import (
4 4
 	"strings"
5
+	"testing"
5 6
 
6
-	"github.com/go-check/check"
7 7
 	"gotest.tools/assert"
8 8
 	"gotest.tools/icmd"
9 9
 )
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"fmt"
9 9
 	"os/exec"
10 10
 	"strings"
11
+	"testing"
11 12
 	"time"
12 13
 
13 14
 	"github.com/creack/pty"
... ...
@@ -15,7 +16,6 @@ import (
15 15
 	"github.com/docker/docker/client"
16 16
 	"github.com/docker/docker/internal/test/request"
17 17
 	"github.com/docker/docker/pkg/parsers/kernel"
18
-	"github.com/go-check/check"
19 18
 	"gotest.tools/assert"
20 19
 )
21 20
 
... ...
@@ -11,8 +11,8 @@ import (
11 11
 	"path/filepath"
12 12
 	"strconv"
13 13
 	"strings"
14
+	"testing"
14 15
 
15
-	"github.com/docker/docker/integration-cli/checker"
16 16
 	"github.com/docker/docker/pkg/stringid"
17 17
 	"github.com/docker/docker/pkg/system"
18 18
 	"github.com/go-check/check"
... ...
@@ -5,9 +5,9 @@ import (
5 5
 	"io/ioutil"
6 6
 	"net/http"
7 7
 	"os"
8
+	"testing"
8 9
 
9 10
 	"github.com/docker/docker/internal/test/registry"
10
-	"github.com/go-check/check"
11 11
 	"gotest.tools/assert"
12 12
 )
13 13
 
... ...
@@ -8,6 +8,7 @@ import (
8 8
 	"os/exec"
9 9
 	"path/filepath"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	"github.com/docker/docker/api/types/container"
13 14
 	"github.com/docker/docker/api/types/mount"
... ...
@@ -6,10 +6,10 @@ package main
6 6
 import (
7 7
 	"net/http"
8 8
 	"strings"
9
+	"testing"
9 10
 
10 11
 	"github.com/docker/docker/api/types/versions"
11 12
 	"github.com/docker/docker/internal/test/request"
12
-	"github.com/go-check/check"
13 13
 	"gotest.tools/assert"
14 14
 	is "gotest.tools/assert/cmp"
15 15
 )
... ...
@@ -4,9 +4,9 @@ package main
4 4
 
5 5
 import (
6 6
 	"strings"
7
+	"testing"
7 8
 
8 9
 	"github.com/docker/docker/internal/test/request"
9
-	"github.com/go-check/check"
10 10
 	"gotest.tools/assert"
11 11
 )
12 12
 
... ...
@@ -4,18 +4,19 @@ import (
4 4
 	"os/exec"
5 5
 	"runtime"
6 6
 	"strings"
7
+	"testing"
7 8
 
8
-	"github.com/docker/docker/integration-cli/checker"
9 9
 	"github.com/docker/docker/integration-cli/daemon"
10 10
 	testdaemon "github.com/docker/docker/internal/test/daemon"
11 11
 	"github.com/go-check/check"
12
+	"gotest.tools/assert"
12 13
 )
13 14
 
14 15
 func init() {
15 16
 	// FIXME. Temporarily turning this off for Windows as GH16039 was breaking
16 17
 	// Windows to Linux CI @icecrime
17 18
 	if runtime.GOOS != "windows" {
18
-	/*check.Suite(newDockerHubPullSuite())*/
19
+		/*check.Suite(newDockerHubPullSuite())*/
19 20
 	}
20 21
 }
21 22
 
... ...
@@ -12,6 +12,7 @@ import (
12 12
 	"path/filepath"
13 13
 	"strconv"
14 14
 	"strings"
15
+	"testing"
15 16
 	"time"
16 17
 
17 18
 	"github.com/docker/docker/api/types"
... ...
@@ -8,9 +8,9 @@ import (
8 8
 	"regexp"
9 9
 	"strconv"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	eventstestutils "github.com/docker/docker/daemon/events/testutils"
13
-	"github.com/go-check/check"
14 14
 	"github.com/sirupsen/logrus"
15 15
 	"gotest.tools/assert"
16 16
 )
... ...
@@ -8,9 +8,9 @@ import (
8 8
 	"path/filepath"
9 9
 	"runtime"
10 10
 	"strings"
11
+	"testing"
11 12
 
12 13
 	"github.com/docker/docker/internal/test/fixtures/load"
13
-	"github.com/go-check/check"
14 14
 	"gotest.tools/assert"
15 15
 )
16 16
 
... ...
@@ -6,9 +6,9 @@ import (
6 6
 	"os/exec"
7 7
 	"path/filepath"
8 8
 	"strings"
9
+	"testing"
9 10
 
10 11
 	"github.com/docker/docker/internal/testutil"
11
-	"github.com/go-check/check"
12 12
 	"github.com/pkg/errors"
13 13
 	"gotest.tools/icmd"
14 14
 )
... ...
@@ -3,7 +3,8 @@ package discovery // import "github.com/docker/docker/pkg/discovery"
3 3
 import (
4 4
 	"testing"
5 5
 
6
-	"github.com/go-check/check"
6
+	"github.com/docker/docker/integration-cli/checker"
7
+	"gotest.tools/assert"
7 8
 )
8 9
 
9 10
 // Hook up gocheck into the "go test" runner.
... ...
@@ -11,7 +12,7 @@ func Test(t *testing.T) { /*check.TestingT(t)*/ }
11 11
 
12 12
 type DiscoverySuite struct{}
13 13
 
14
- /*check.Suite(&DiscoverySuite{})*/
14
+/*check.Suite(&DiscoverySuite{})*/
15 15
 
16 16
 func (s *DiscoverySuite) TestNewEntry(c *testing.T) {
17 17
 	entry, err := NewEntry("127.0.0.1:2375")
... ...
@@ -6,8 +6,7 @@ import (
6 6
 	"testing"
7 7
 
8 8
 	"github.com/docker/docker/pkg/discovery"
9
-
10
-	"github.com/go-check/check"
9
+	"gotest.tools/assert"
11 10
 )
12 11
 
13 12
 // Hook up gocheck into the "go test" runner.
... ...
@@ -15,7 +14,7 @@ func Test(t *testing.T) { /*check.TestingT(t)*/ }
15 15
 
16 16
 type DiscoverySuite struct{}
17 17
 
18
- /*check.Suite(&DiscoverySuite{})*/
18
+/*check.Suite(&DiscoverySuite{})*/
19 19
 
20 20
 func (s *DiscoverySuite) TestInitialize(c *testing.T) {
21 21
 	d := &Discovery{}
... ...
@@ -1,7 +1,8 @@
1 1
 package discovery // import "github.com/docker/docker/pkg/discovery"
2
-
3 2
 import (
4
-	"github.com/go-check/check"
3
+	"testing"
4
+
5
+	"gotest.tools/assert"
5 6
 )
6 7
 
7 8
 func (s *DiscoverySuite) TestGeneratorNotGenerate(c *testing.T) {
... ...
@@ -11,7 +11,7 @@ import (
11 11
 	"github.com/docker/docker/pkg/discovery"
12 12
 	"github.com/docker/libkv"
13 13
 	"github.com/docker/libkv/store"
14
-	"github.com/go-check/check"
14
+	"gotest.tools/assert"
15 15
 )
16 16
 
17 17
 // Hook up gocheck into the "go test" runner.
... ...
@@ -19,7 +19,7 @@ func Test(t *testing.T) { /*check.TestingT(t)*/ }
19 19
 
20 20
 type DiscoverySuite struct{}
21 21
 
22
- /*check.Suite(&DiscoverySuite{})*/
22
+/*check.Suite(&DiscoverySuite{})*/
23 23
 
24 24
 func (ds *DiscoverySuite) TestInitialize(c *testing.T) {
25 25
 	storeMock := &FakeStore{
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"testing"
5 5
 
6 6
 	"github.com/docker/docker/pkg/discovery"
7
-	"github.com/go-check/check"
7
+	"gotest.tools/assert"
8 8
 )
9 9
 
10 10
 // Hook up gocheck into the "go test" runner.
... ...
@@ -12,7 +12,7 @@ func Test(t *testing.T) { /*check.TestingT(t)*/ }
12 12
 
13 13
 type discoverySuite struct{}
14 14
 
15
- /*check.Suite(&discoverySuite{})*/
15
+/*check.Suite(&discoverySuite{})*/
16 16
 
17 17
 func (s *discoverySuite) TestWatch(c *testing.T) {
18 18
 	d := &Discovery{}
... ...
@@ -4,8 +4,7 @@ import (
4 4
 	"testing"
5 5
 
6 6
 	"github.com/docker/docker/pkg/discovery"
7
-
8
-	"github.com/go-check/check"
7
+	"gotest.tools/assert"
9 8
 )
10 9
 
11 10
 // Hook up gocheck into the "go test" runner.
... ...
@@ -13,7 +12,7 @@ func Test(t *testing.T) { /*check.TestingT(t)*/ }
13 13
 
14 14
 type DiscoverySuite struct{}
15 15
 
16
- /*check.Suite(&DiscoverySuite{})*/
16
+/*check.Suite(&DiscoverySuite{})*/
17 17
 
18 18
 func (s *DiscoverySuite) TestInitialize(c *testing.T) {
19 19
 	d := &Discovery{}