test(profiles): test default profile is full

This commit is contained in:
Marc Nuri
2025-05-16 12:54:41 +02:00
parent d26f896a8e
commit 6c51c9d9e6

View File

@@ -3,6 +3,7 @@ package cmd
import (
"io"
"os"
"strings"
"testing"
)
@@ -24,6 +25,13 @@ func TestVersion(t *testing.T) {
version, err := captureOutput(rootCmd.Execute)
if version != "0.0.0\n" {
t.Fatalf("Expected version 0.0.0, got %s %v", version, err)
return
}
}
func TestDefaultProfile(t *testing.T) {
rootCmd.SetArgs([]string{"--version", "--log-level=1"})
out, err := captureOutput(rootCmd.Execute)
if !strings.Contains(out, "Starting kubernetes-mcp-server with profile: full") {
t.Fatalf("Expected profile 'full', got %s %v", out, err)
}
}