test(mcp): refactor core toolset tests (namespaces) (#330)

Signed-off-by: Marc Nuri <marc@marcnuri.com>
This commit is contained in:
Marc Nuri
2025-09-17 15:48:57 +02:00
committed by GitHub
parent 2bf6c549fe
commit e16114dfc5
3 changed files with 63 additions and 68 deletions

View File

@@ -429,6 +429,7 @@ type BaseMcpSuite struct {
func (s *BaseMcpSuite) SetupTest() {
s.Cfg = config.Default()
s.Cfg.ListOutput = "yaml"
s.Cfg.KubeConfig = filepath.Join(s.T().TempDir(), "config")
s.Require().NoError(os.WriteFile(s.Cfg.KubeConfig, envTest.KubeConfig, 0600), "Expected to write kubeconfig")
}