plugin copied to tmp and executed from there

This commit is contained in:
2021-10-03 17:18:03 +04:00
parent be985942b9
commit 2a7d8e154d
2 changed files with 47 additions and 14 deletions

View File

@@ -80,12 +80,13 @@ func TestExecuteIP_ModifyHost(t *testing.T) {
}
//Set plugin name
plugin.FolderName = "TestAnsible"
plugin.path = Config.PluginPath
//Test IP 1 configuration
testip.IPAddress = "0.0.0.0"
testip.SSHPortNo = "41289"
err = testip.ModifyHost(&plugin,Config.PluginPath)
err = testip.ModifyHost(&plugin)
if err != nil {
fmt.Println(err)
t.Fail()