removed some unix tests

This commit is contained in:
redanthrax 2022-06-28 14:34:32 -07:00
parent e926980ae5
commit f20f589fbf
8 changed files with 173 additions and 187 deletions

View file

@ -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)
//}