-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Test Case for Create in Test_createOrUpdateDNSRecord
Test_createOrUpdateDNSRecord previously only tested the update logic. In order to test the create logic, `CreateDNSRecord` needed to be implemented in `fake_client.go`. Additionally, the new test case required the ability to control the results of `ListAllDnsRecords`, which were previously hardcoded. As a result, `OutputResults` was added to the `ListAllDnsRecordsInputOutput` struct, allowing the new test cases to specify no result (indicating no existing DNS record) so we can trigger the create logic.
- Loading branch information
Showing
2 changed files
with
75 additions
and
3 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