package executor import "testing" var agentOP = AgentOsOperator{ InstallCommandPrefix: "apt-get install", RemoveCommandPrefix: "apt-get remove", CanAccessInternet: true, IsOsTypeUbuntu: true, IsAgentInnerWall: true, } func TestBaseFunc(t *testing.T) { agentOP.Exec("shutdownFirewall") agentOP.Exec("modifyHostname") agentOP.Exec("disableSwap") agentOP.Exec("installDocker") agentOP.Exec("removeDocker") }