Merge pull request #114992 from TheOneTheOnlyJJ/skip-failing-unittests-2

Skip failing Windows unit tests (volume)
This commit is contained in:
Kubernetes Prow Robot 2023-01-26 14:04:25 -08:00 committed by GitHub
commit e6170c3883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"runtime"
"testing" "testing"
"k8s.io/api/core/v1" "k8s.io/api/core/v1"
@ -72,6 +73,11 @@ func TestCanSupport(t *testing.T) {
} }
func TestDownwardAPI(t *testing.T) { func TestDownwardAPI(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if runtime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
labels1 := map[string]string{ labels1 := map[string]string{
"key1": "value1", "key1": "value1",
"key2": "value2", "key2": "value2",

View File

@ -72,6 +72,11 @@ func TestProberExistingDriverBeforeInit(t *testing.T) {
// Probes newly added drivers after prober is running. // Probes newly added drivers after prober is running.
func TestProberAddRemoveDriver(t *testing.T) { func TestProberAddRemoveDriver(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if goruntime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
// Arrange // Arrange
_, fs, watcher, prober := initTestEnvironment(t) _, fs, watcher, prober := initTestEnvironment(t)
prober.Probe() prober.Probe()
@ -205,6 +210,11 @@ func TestEmptyPluginDir(t *testing.T) {
// Issue an event to remove plugindir. New directory should still be watched. // Issue an event to remove plugindir. New directory should still be watched.
func TestRemovePluginDir(t *testing.T) { func TestRemovePluginDir(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if goruntime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
// Arrange // Arrange
driverPath, fs, watcher, _ := initTestEnvironment(t) driverPath, fs, watcher, _ := initTestEnvironment(t)
err := fs.RemoveAll(pluginDir) err := fs.RemoveAll(pluginDir)
@ -226,6 +236,11 @@ func TestRemovePluginDir(t *testing.T) {
// Issue an event to remove plugindir. New directory should still be watched. // Issue an event to remove plugindir. New directory should still be watched.
func TestNestedDriverDir(t *testing.T) { func TestNestedDriverDir(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if goruntime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
// Arrange // Arrange
_, fs, watcher, _ := initTestEnvironment(t) _, fs, watcher, _ := initTestEnvironment(t)
// Assert // Assert

View File

@ -244,6 +244,11 @@ func TestInvalidLocalPath(t *testing.T) {
} }
func TestBlockDeviceGlobalPathAndMountDevice(t *testing.T) { func TestBlockDeviceGlobalPathAndMountDevice(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if runtime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
// Block device global mount path testing // Block device global mount path testing
tmpBlockDir, plug := getDeviceMountablePluginWithBlockPath(t, true) tmpBlockDir, plug := getDeviceMountablePluginWithBlockPath(t, true)
defer os.RemoveAll(tmpBlockDir) defer os.RemoveAll(tmpBlockDir)

View File

@ -359,6 +359,11 @@ type testcase struct {
} }
func TestPlugin(t *testing.T) { func TestPlugin(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if runtime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
tmpDir, err := utiltesting.MkTmpdir("rbd_test") tmpDir, err := utiltesting.MkTmpdir("rbd_test")
if err != nil { if err != nil {
t.Fatalf("error creating temp dir: %v", err) t.Fatalf("error creating temp dir: %v", err)

View File

@ -119,6 +119,11 @@ func createSocketFile(socketDir string) (string, error) {
} }
func TestGetFileType(t *testing.T) { func TestGetFileType(t *testing.T) {
// Skip tests that fail on Windows, as discussed during the SIG Testing meeting from January 10, 2023
if goruntime.GOOS == "windows" {
t.Skip("Skipping test that fails on Windows")
}
hu := NewHostUtil() hu := NewHostUtil()
testCase := []struct { testCase := []struct {