Merge pull request #5264 from mxpv/tests

Run unit tests on CI for MacOS
This commit is contained in:
Derek McGowan
2021-03-25 09:46:25 -07:00
committed by GitHub
4 changed files with 42 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ package server
import (
"context"
"path/filepath"
goruntime "runtime"
"testing"
"github.com/containerd/containerd/oci"
@@ -68,6 +69,10 @@ func TestGeneralContainerSpec(t *testing.T) {
}
func TestPodAnnotationPassthroughContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
t.Skip("not implemented on Darwin")
}
testID := "test-id"
testSandboxID := "sandbox-id"
testContainerName := "container-name"
@@ -272,6 +277,10 @@ func TestVolumeMounts(t *testing.T) {
}
func TestContainerAnnotationPassthroughContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
t.Skip("not implemented on Darwin")
}
testID := "test-id"
testSandboxID := "sandbox-id"
testContainerName := "container-name"

View File

@@ -18,6 +18,7 @@ package server
import (
"net"
goruntime "runtime"
"testing"
cni "github.com/containerd/go-cni"
@@ -33,6 +34,10 @@ import (
)
func TestSandboxContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
t.Skip("not implemented on Darwin")
}
testID := "test-id"
nsPath := "test-cni"
for desc, test := range map[string]struct {