[ Executor ] exec function - 1
This commit is contained in:
21
agent-go/executor/BaseFunction_test.go
Normal file
21
agent-go/executor/BaseFunction_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user