mirror of
https://github.com/openshift/openshift-mcp-server.git
synced 2025-10-17 14:27:48 +03:00
test: disable config test on windows
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"k8s.io/client-go/rest"
|
||||
"os"
|
||||
"path"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -67,6 +68,9 @@ func TestKubernetes_IsInCluster(t *testing.T) {
|
||||
|
||||
func TestKubernetes_ResolveKubernetesConfigurations_Explicit(t *testing.T) {
|
||||
t.Run("with missing file", func(t *testing.T) {
|
||||
if runtime.GOOS != "linux" && runtime.GOOS != "darwin" {
|
||||
t.Skip("Skipping test on non-linux platforms")
|
||||
}
|
||||
tempDir := t.TempDir()
|
||||
k := Kubernetes{Kubeconfig: path.Join(tempDir, "config")}
|
||||
err := resolveKubernetesConfigurations(&k)
|
||||
|
||||
Reference in New Issue
Block a user