mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
16 lines
438 B
Go
16 lines
438 B
Go
package models
|
|
|
|
// moved from controllers need work
|
|
//func TestUpdateNetwork(t *testing.T) {
|
|
// initialize()
|
|
// createNet()
|
|
// network := getNet()
|
|
// t.Run("NetID", func(t *testing.T) {
|
|
// var networkupdate models.Network
|
|
// networkupdate.NetID = "wirecat"
|
|
// Range, local, err := network.Update(&networkupdate)
|
|
// assert.NotNil(t, err)
|
|
// assert.Equal(t, "NetID is not editable", err.Error())
|
|
// t.Log(err, Range, local)
|
|
// })
|
|
//}
|