[Excution] - base function accomplish - 4
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
var agentOP = AgentOsOperator{
|
||||
var agentOP = &AgentOsOperator{
|
||||
InstallCommandPrefix: []string{
|
||||
"apt-get", "install", "-y",
|
||||
},
|
||||
@@ -15,7 +15,7 @@ var agentOP = AgentOsOperator{
|
||||
IsAgentInnerWall: true,
|
||||
AgentArch: "amd64",
|
||||
AgentOSReleaseCode: "focal",
|
||||
AgentServerInfo: register.AgentServerInfo{
|
||||
AgentServerInfo: ®ister.AgentServerInfo{
|
||||
ServerName: "",
|
||||
ServerIPPbV4: "",
|
||||
ServerIPInV4: "192.168.0.8",
|
||||
@@ -47,7 +47,7 @@ func TestBaseFunc(t *testing.T) {
|
||||
//agentOP.Exec("modifyHostname")
|
||||
//agentOP.Exec("disableSwap")
|
||||
//agentOP.Exec("enableSwap")
|
||||
//agentOP.Exec("removeDocker")
|
||||
agentOP.Exec("removeDocker")
|
||||
//agentOP.Exec("installDocker", "20")
|
||||
//agentOP.Exec("removeDockerCompose")
|
||||
//agentOP.Exec("installDockerCompose")
|
||||
@@ -55,6 +55,6 @@ func TestBaseFunc(t *testing.T) {
|
||||
//agentOP.Exec("installHarbor")
|
||||
//agentOP.Exec("chronyToPublicNTP")
|
||||
//agentOP.Exec("chronyToMaster", "192.168.0.8")
|
||||
agentOP.Exec("installZSH")
|
||||
//agentOP.Exec("installZSH")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user