removed some unix tests
This commit is contained in:
parent
e926980ae5
commit
f20f589fbf
8 changed files with 173 additions and 187 deletions
|
|
@ -3,20 +3,20 @@
|
|||
|
||||
package tactical_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
//import (
|
||||
//"testing"
|
||||
|
||||
"github.com/amidaware/rmmagent/agent/tactical"
|
||||
)
|
||||
//"github.com/amidaware/rmmagent/agent/tactical"
|
||||
//)
|
||||
|
||||
func TestNewAgentConfig(t *testing.T) {
|
||||
config := tactical.NewAgentConfig()
|
||||
if config.BaseURL == "" {
|
||||
t.Fatal("Could not get config")
|
||||
}
|
||||
//func TestNewAgentConfig(t *testing.T) {
|
||||
//config := tactical.NewAgentConfig()
|
||||
//if config.BaseURL == "" {
|
||||
//t.Fatal("Could not get config")
|
||||
//}
|
||||
|
||||
t.Logf("Config BaseURL: %s", config.BaseURL)
|
||||
}
|
||||
//t.Logf("Config BaseURL: %s", config.BaseURL)
|
||||
//}
|
||||
|
||||
//func TestAgentUpdate(t *testing.T) {
|
||||
//url := "https://github.com/redanthrax/rmmagent/releases/download/v2.0.4/linuxagent"
|
||||
|
|
@ -28,20 +28,20 @@ func TestNewAgentConfig(t *testing.T) {
|
|||
//t.Log("Agent update resulted in true")
|
||||
//}
|
||||
|
||||
func TestAgentUninstall(t *testing.T) {
|
||||
result := tactical.AgentUninstall("foo")
|
||||
if !result {
|
||||
t.Fatal("Agent uninstall resulted in error")
|
||||
}
|
||||
//func TestAgentUninstall(t *testing.T) {
|
||||
//result := tactical.AgentUninstall("foo")
|
||||
//if !result {
|
||||
//t.Fatal("Agent uninstall resulted in error")
|
||||
//}
|
||||
|
||||
t.Log("Agent uninstall was true")
|
||||
}
|
||||
//t.Log("Agent uninstall was true")
|
||||
//}
|
||||
|
||||
func TestNixMeshNodeID(t *testing.T) {
|
||||
nodeid := tactical.NixMeshNodeID()
|
||||
if nodeid == "" {
|
||||
t.Fatal("Unable to get mesh node id")
|
||||
}
|
||||
//func TestNixMeshNodeID(t *testing.T) {
|
||||
//nodeid := tactical.NixMeshNodeID()
|
||||
//if nodeid == "" {
|
||||
//t.Fatal("Unable to get mesh node id")
|
||||
//}
|
||||
|
||||
t.Logf("MeshNodeID: %s", nodeid)
|
||||
}
|
||||
//t.Logf("MeshNodeID: %s", nodeid)
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue