Support DELETE function

This commit is contained in:
Bryan Boreham committed 2014-10-14 17:01:13 +01:00
1 parent 11ec66111a
commit 6e3e7dcd68
4 files changed
+69

No files matched your search

+12
View File
@@ -36,4 +36,16 @@ func TestZone(t *testing.T) {
if _, ok := err.(DuplicateError); !ok {
t.Fatal(err)
}
// Now delete the record
err = zone.DeleteRecord(container_id, weave_ip)
if err != nil {
t.Fatal(err)
}
// Check that the address is not there now.
_, err = zone.MatchLocal(success_test_name)
if _, ok := err.(LookupError); !ok {
t.Fatal("Unexpected result when deleting record", success_test_name, err)
}
}