Merge pull request #7042 from samuelkarp/freebsd-unit-tests

Port (some) unit tests to FreeBSD
This commit is contained in:
Maksym Pavlenko
2022-06-10 15:05:52 -07:00
committed by GitHub
9 changed files with 133 additions and 12 deletions

View File

@@ -69,8 +69,11 @@ func TestGeneralContainerSpec(t *testing.T) {
}
func TestPodAnnotationPassthroughContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
switch goruntime.GOOS {
case "darwin":
t.Skip("not implemented on Darwin")
case "freebsd":
t.Skip("not implemented on FreeBSD")
}
testID := "test-id"
@@ -279,8 +282,11 @@ func TestVolumeMounts(t *testing.T) {
}
func TestContainerAnnotationPassthroughContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
switch goruntime.GOOS {
case "darwin":
t.Skip("not implemented on Darwin")
case "freebsd":
t.Skip("not implemented on FreeBSD")
}
testID := "test-id"

View File

@@ -35,10 +35,12 @@ import (
)
func TestSandboxContainerSpec(t *testing.T) {
if goruntime.GOOS == "darwin" {
switch goruntime.GOOS {
case "darwin":
t.Skip("not implemented on Darwin")
case "freebsd":
t.Skip("not implemented on FreeBSD")
}
testID := "test-id"
nsPath := "test-cni"
for desc, test := range map[string]struct {