refactored logic

This commit is contained in:
0xdcarns
2021-10-26 12:27:29 -04:00
parent d25cc93598
commit 8f72ecbaa0
33 changed files with 985 additions and 1092 deletions

View File

@@ -5,6 +5,7 @@ import (
"time"
"github.com/gravitl/netmaker/database"
"github.com/gravitl/netmaker/logic"
"github.com/gravitl/netmaker/models"
"github.com/stretchr/testify/assert"
)
@@ -333,7 +334,7 @@ func TestValidateNetworkUpdate(t *testing.T) {
func deleteAllNetworks() {
deleteAllNodes()
nets, _ := models.GetNetworks()
nets, _ := logic.GetNetworks()
for _, net := range nets {
DeleteNetwork(net.NetID)
}