55 lines
1.4 KiB
Diff
55 lines
1.4 KiB
Diff
From 29cf333688cf38c615f6a2c4dfc8a1fddbbbb4aa Mon Sep 17 00:00:00 2001
|
|
From: Jamie Anderson <jamieand@amazon.com>
|
|
Date: Wed, 3 Mar 2021 23:02:57 +0000
|
|
Subject: [PATCH] Skip cli tests that require network
|
|
|
|
Signed-off-by: Jamie Anderson <jamieand@amazon.com>
|
|
---
|
|
cli/command/image/pull_test.go | 2 ++
|
|
cli/command/image/push_test.go | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/cli/command/image/pull_test.go b/cli/command/image/pull_test.go
|
|
index b9d4970..bb7ce0e 100644
|
|
--- a/cli/command/image/pull_test.go
|
|
+++ b/cli/command/image/pull_test.go
|
|
@@ -6,6 +6,7 @@ import (
|
|
"io"
|
|
"strings"
|
|
"testing"
|
|
+ "github.com/docker/cli/testutil"
|
|
|
|
"github.com/docker/cli/internal/test"
|
|
"github.com/docker/cli/internal/test/notary"
|
|
@@ -16,6 +17,7 @@ import (
|
|
)
|
|
|
|
func TestNewPullCommandErrors(t *testing.T) {
|
|
+ testutil.SkipIfBuildroot(t)
|
|
testCases := []struct {
|
|
name string
|
|
args []string
|
|
diff --git a/cli/command/image/push_test.go b/cli/command/image/push_test.go
|
|
index 9636369..14bfbd2 100644
|
|
--- a/cli/command/image/push_test.go
|
|
+++ b/cli/command/image/push_test.go
|
|
@@ -5,6 +5,7 @@ import (
|
|
"io"
|
|
"strings"
|
|
"testing"
|
|
+ "github.com/docker/cli/testutil"
|
|
|
|
"github.com/docker/cli/internal/test"
|
|
"github.com/docker/docker/api/types"
|
|
@@ -13,6 +14,7 @@ import (
|
|
)
|
|
|
|
func TestNewPushCommandErrors(t *testing.T) {
|
|
+ testutil.SkipIfBuildroot(t)
|
|
testCases := []struct {
|
|
name string
|
|
args []string
|
|
--
|
|
2.25.0.24.gbc7a3d4
|
|
|