Combined client + server code, Added HA ability, minor bug fixes

This commit is contained in:
0xdcarns
2021-10-05 15:02:09 -04:00
parent cd99a6ba9a
commit 989676e77f
34 changed files with 1101 additions and 821 deletions

View File

@@ -4,6 +4,7 @@ import (
"testing"
"github.com/gravitl/netmaker/database"
"github.com/gravitl/netmaker/dnslogic"
"github.com/gravitl/netmaker/models"
"github.com/stretchr/testify/assert"
)
@@ -23,7 +24,7 @@ func TestGetCustomDNS(t *testing.T) {
deleteAllNetworks()
createNet()
createTestNode()
dns, err := GetCustomDNS("skynet")
dns, err := dnslogic.GetCustomDNS("skynet")
assert.Nil(t, err)
t.Log(dns)
}
@@ -39,7 +40,7 @@ func TestGetDNSEntryNum(t *testing.T) {
func TestGetDNS(t *testing.T) {
database.InitializeDatabase()
deleteAllNetworks()
dns, err := GetDNS("skynet")
dns, err := dnslogic.GetDNS("skynet")
assert.Nil(t, err)
t.Log(dns)
}