Add unit test for zone addition to all dnsproviders. Fixes #27785

This commit is contained in:
Quinton Hoole
2016-06-21 16:11:27 -07:00
parent 9122e745b6
commit 37ce95e107
8 changed files with 112 additions and 19 deletions

View File

@@ -29,6 +29,8 @@ type Zones interface {
List() ([]Zone, error)
// Add creates and returns a new managed zone, or an error if the operation failed
Add(Zone) (Zone, error)
// Remove deletes a managed zone, or returns an error if the operation failed.
Remove(Zone) error
// New allocates a new Zone, which can then be passed to Add()
// Arguments are as per the Zone interface below.
New(name string) (Zone, error)