Documentation
¶
Index ¶
- func AssertAgentNotRunning(t *testing.T, projectName string)
- func AssertAgentRunning(t *testing.T, projectName string)
- func CleanupAgentContainer(t *testing.T, projectName string)
- func CreateBranch(t *testing.T, dir, branch string)
- func CreateCommit(t *testing.T, dir, filename, content string)
- func CreateTestAgentYAML(projectName string) string
- func InitGitRepo(t *testing.T, dir string)
- func RandomString(length int) string
- func RequireDocker(t *testing.T)
- func RunGitCommand(t *testing.T, dir string, args ...string)
- func SetupAgentTest(t *testing.T) (string, string, func())
- func SetupTestNetwork(t *testing.T, networkName string)
- func WaitForAgentContainer(t *testing.T, projectName string, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAgentNotRunning ¶
AssertAgentNotRunning checks if the agent is not running
func AssertAgentRunning ¶
AssertAgentRunning checks if the agent is running
func CleanupAgentContainer ¶
CleanupAgentContainer removes agent container and cleanup
func CreateBranch ¶
CreateBranch creates and checks out a new git branch
func CreateCommit ¶
CreateCommit creates a file and commits it
func CreateTestAgentYAML ¶
CreateTestAgentYAML creates a minimal grove.yml with agent enabled
func InitGitRepo ¶
InitGitRepo initializes a git repository in the given directory
func RandomString ¶
RandomString generates a random string of the specified length
func RequireDocker ¶
RequireDocker skips the test if Docker is not available
func RunGitCommand ¶
RunGitCommand runs a git command in the given directory
func SetupAgentTest ¶
SetupAgentTest creates a complete agent test environment
func SetupTestNetwork ¶
SetupTestNetwork creates a temporary Docker network for a test and ensures it's cleaned up.
Types ¶
This section is empty.