-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The way we setup `peerdns` isn't correct. We don't want to require both that the `proto` be `"dhcp"` and `"dhcpv6"`. That doesn't even make sense. And the fact that we can say that makes even less sense. In order to show the failure, we add a failing test. We then implement a fix by adding a validator that disjoins multiple other validators. The test is effectively what we want in reality, so it passing here should give good confidence that we can do what we want. It's unfortunate that we have to write this validator. Hopefully, it's an oversight and not intentional. We don't want to maintain this indefinitely. See hashicorp/terraform-plugin-framework-validators#122 for the upstream issue. Branch: joneshf/failing-peerdns-test Pull-Request: #110
- Loading branch information
Showing
3 changed files
with
139 additions
and
7 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
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