-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auroradns: Implement iterator for zones and records
By implementing iterate_zones() and iterate_records() you can iterate over zones and records returned by the API. The list_zones() and list_records() methods simply talk to the iteration functions and create a list of it and return that. The test cases should still match since they call the list functions and those call the iterators on their turn. The test case test_list_zones() however has been expanded to iterate over the result. The test_list_records case already iterated over the results, so that verifies that the result is iteratable.
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters