mirror of
				https://github.com/containers/kubernetes-mcp-server.git
				synced 2025-10-23 01:22:57 +03:00 
			
		
		
		
	test(toolsets): toolset specific metadata tests (#326)
- Refactor tests to use testify (more clarity+composability for complex tests) - Tests for default toolsets - Tests for configured, granular toolsets Signed-off-by: Marc Nuri <marc@marcnuri.com>
This commit is contained in:
		@@ -10,12 +10,20 @@ import (
 | 
			
		||||
 | 
			
		||||
type ToolsetsSuite struct {
 | 
			
		||||
	suite.Suite
 | 
			
		||||
	originalToolsets []api.Toolset
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s *ToolsetsSuite) SetupTest() {
 | 
			
		||||
	s.originalToolsets = Toolsets()
 | 
			
		||||
	Clear()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s *ToolsetsSuite) TearDownTest() {
 | 
			
		||||
	for _, toolset := range s.originalToolsets {
 | 
			
		||||
		Register(toolset)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type TestToolset struct {
 | 
			
		||||
	name        string
 | 
			
		||||
	description string
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user