50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From 56221d3508e4e82f4fc51c17836609eb031af670 Mon Sep 17 00:00:00 2001
|
|
From: Jamie Anderson <jamieand@amazon.com>
|
|
Date: Wed, 3 Mar 2021 18:19:29 +0000
|
|
Subject: [PATCH] Skip pkg/authorization tests that create sockets
|
|
|
|
Signed-off-by: Jamie Anderson <jamieand@amazon.com>
|
|
---
|
|
pkg/authorization/authz_unix_test.go | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/pkg/authorization/authz_unix_test.go b/pkg/authorization/authz_unix_test.go
|
|
index 9b48986..0ac5e92 100644
|
|
--- a/pkg/authorization/authz_unix_test.go
|
|
+++ b/pkg/authorization/authz_unix_test.go
|
|
@@ -17,6 +17,7 @@ import (
|
|
"reflect"
|
|
"strings"
|
|
"testing"
|
|
+ "github.com/docker/docker/testutil"
|
|
|
|
"github.com/docker/docker/pkg/plugins"
|
|
"github.com/docker/go-connections/tlsconfig"
|
|
@@ -28,6 +29,7 @@ const (
|
|
)
|
|
|
|
func TestAuthZRequestPluginError(t *testing.T) {
|
|
+ testutil.RequiresRoot(t)
|
|
server := authZPluginTestServer{t: t}
|
|
server.start()
|
|
defer server.stop()
|
|
@@ -59,6 +61,7 @@ func TestAuthZRequestPluginError(t *testing.T) {
|
|
}
|
|
|
|
func TestAuthZRequestPlugin(t *testing.T) {
|
|
+ testutil.RequiresRoot(t)
|
|
server := authZPluginTestServer{t: t}
|
|
server.start()
|
|
defer server.stop()
|
|
@@ -91,6 +94,7 @@ func TestAuthZRequestPlugin(t *testing.T) {
|
|
}
|
|
|
|
func TestAuthZResponsePlugin(t *testing.T) {
|
|
+ testutil.RequiresRoot(t)
|
|
server := authZPluginTestServer{t: t}
|
|
server.start()
|
|
defer server.stop()
|
|
--
|
|
2.25.0.24.gbc7a3d4
|
|
|