-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource Extensions added, racing check
I expanded the terratest abstraction to have easier access to resources like DNSEndpoint, or GSLB. This way I can, for example, compare the targets in DNSEndpoints with the expected values, so we can thus simplify code execution and avoid possible racing. see canges in `TestWeightsExistsInLocalDNSEndpoint`. I can do: - easily work with External and Local DNS Endpoints, could reapply by ingress resource - `instanceUS.ReapplyIngress(<ingress path>)` - `instanceEU.Resources().GetExternalDNSEndpoint().GetEndpointByName(endpointDNSNameEU)` - `instanceEU.Resources().GetLocalDNSEndpoint().GetEndpointByName(host)` - `instanceEU.Resources().Ingress()` - `instanceEU.Resources().GslbSpecProperty("spec.ingress.rules[0].host")` I also added a new waiting function using Ticker: - instanceUS.WaitForLocalDNSEndpointHasTargets(expectedTargets) Signed-off-by: kuritka <[email protected]> WaitForExternalDNSEndpointExists, WaitForLocalDNSEndpointExists waiting... continueIfNotFound test x1 Signed-off-by: kuritka <[email protected]>
- Loading branch information
Showing
5 changed files
with
187 additions
and
44 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
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