-
Notifications
You must be signed in to change notification settings - Fork 23
feat: Add test for DNSRecord with delegate=false #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Add test for DNSRecord with delegate=false #814
Conversation
1a41d96 to
048703f
Compare
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
048703f to
3f27811
Compare
71cb638 to
56f88be
Compare
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
testsuite/tests/singlecluster/gateway/dnspolicy/test_dnsrecord_delegate_false.py
Outdated
Show resolved
Hide resolved
| @backoff.on_exception( | ||
| backoff.fibo, (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer, dns.exception.Timeout), max_time=120 | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need backoff here? Your test worked without backoff on all providers for me when I tried
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it works without backoff. I originally added it to prevent potential flaky failures caused by DNS propagation latency, just to ensure the test doesn't fail if resolution lags behind the status update. However, since I haven't seen any failures locally, I'll remove it as you suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Record should be ready when it reports that Provider ensured the dns record. Any irregularities here may be an indication that something doesn't work as intended
+ any extra code slows down the testsuite. We try not to add extra line to cover any possible outcome
Signed-off-by: Martina Fabikova <mfabikov@redhat.com>
56f88be to
79c3a81
Compare
Adds a test for the DNSRecord resource, covering the delegate=false scenario as requested in issue #784.
The test verifies that a DNSRecord (not managed by a DNSPolicy) configured with:
can successfully create and publish its DNS entries to the external provider.
The test validates this in two steps: