organizing and refactoring
This commit is contained in:
parent
13b5474cd8
commit
6f159d4728
20 changed files with 832 additions and 488 deletions
17
agent/tactical/tactical_test.go
Normal file
17
agent/tactical/tactical_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package tactical
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSyncMeshNodeID(t *testing.T) {
|
||||
agentConfig := NewAgentConfig()
|
||||
if agentConfig.AgentID == "" {
|
||||
t.Fatal("Could not get AgentID")
|
||||
}
|
||||
|
||||
result := SyncMeshNodeID()
|
||||
if !result {
|
||||
t.Fatal("SyncMeshNodeID resulted in error")
|
||||
}
|
||||
|
||||
t.Log("Synced mesh node id")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue