mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-11 03:32:03 +08:00
remove unnecessary test
This commit is contained in:
@@ -316,13 +316,13 @@ func TestValidateDNSUpdate(t *testing.T) {
|
|||||||
assert.NotNil(t, err)
|
assert.NotNil(t, err)
|
||||||
assert.Contains(t, err.Error(), "Field validation for 'Network' failed on the 'network_exists' tag")
|
assert.Contains(t, err.Error(), "Field validation for 'Network' failed on the 'network_exists' tag")
|
||||||
})
|
})
|
||||||
t.Run("EmptyAddress", func(t *testing.T) {
|
// t.Run("EmptyAddress", func(t *testing.T) {
|
||||||
//this can't actually happen as change.Address is populated if is blank
|
// //this can't actually happen as change.Address is populated if is blank
|
||||||
change := models.DNSEntry{"", "", "myhost", "skynet"}
|
// change := models.DNSEntry{"", "", "myhost", "skynet"}
|
||||||
err := logic.ValidateDNSUpdate(change, entry)
|
// err := logic.ValidateDNSUpdate(change, entry)
|
||||||
assert.NotNil(t, err)
|
// assert.NotNil(t, err)
|
||||||
assert.Contains(t, err.Error(), "Field validation for 'Address' failed on the 'required' tag")
|
// assert.Contains(t, err.Error(), "Field validation for 'Address' failed on the 'required' tag")
|
||||||
})
|
// })
|
||||||
t.Run("BadAddress", func(t *testing.T) {
|
t.Run("BadAddress", func(t *testing.T) {
|
||||||
change := models.DNSEntry{"10.0.256.1", "", "myhost", "skynet"}
|
change := models.DNSEntry{"10.0.256.1", "", "myhost", "skynet"}
|
||||||
err := logic.ValidateDNSUpdate(change, entry)
|
err := logic.ValidateDNSUpdate(change, entry)
|
||||||
|
Reference in New Issue
Block a user