-
-
Notifications
You must be signed in to change notification settings - Fork 11
[integration-tests] Limit Cascade queries to SOA/XFR #563
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ runs: | |
| done | ||
| - name: Query zone | ||
| run: | | ||
| dig @127.0.0.1 -p 4542 example.test AXFR | ||
| dig @127.0.0.1 -p 4542 example.test AXFR > dig-query.log | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this for debugging?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It removes the output from |
||
| - name: Tell the NSD secondary that the zone is now available | ||
| # Only necessary if NOTIFY is not setup for cascade | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,7 @@ runs: | |
| SOA_RR=$(dig +short @127.0.0.1 -p 4540 example.test SOA) | ||
| if [[ "${SOA_RR}" != "ns1.example.test. mail.example.test. 1 60 60 3600 5" ]]; then | ||
| echo "::error:: Expected SOA serial '1' but dig reports '${SOA_RR}'" | ||
| dig @127.0.0.1 -p 4540 example.test AXFR | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't expect this PR to add more |
||
| exit 1 | ||
| fi | ||
|
|
||
|
|
@@ -194,16 +195,10 @@ runs: | |
|
|
||
| - name: Query changed RRs at Cascade publication server | ||
| run: | | ||
| WWW_A_RR=$(dig +short @127.0.0.1 -p 4542 www.example.test A) | ||
| if [[ "${WWW_A_RR}" != "192.168.0.1" ]]; then | ||
| echo "::error:: Expected modified RR but dig reports '${WWW_A_RR}'" | ||
| exit 1 | ||
| fi | ||
| MAIL_MX_RR=$(dig +short @127.0.0.1 -p 4542 mail.example.test MX) | ||
| if [[ "${MAIL_MX_RR}" != "20 example.test." ]]; then | ||
| echo "::error:: Expected modified RR but dig reports '${MAIL_MX_RR}'" | ||
| exit 1 | ||
| fi | ||
| # https://askubuntu.com/a/1232402 | ||
| dig @127.0.0.1 -p 4542 example.test AXFR | tr -s '[:blank:]' ',' > dig-query.log | ||
| grep -qF "www.example.test.,5,IN,A,192.168.0.1" dig-query.log | ||
| grep -qF "mail.example.test.,5,IN,MX,20,example.test." dig-query.log | ||
|
|
||
| - name: Print log files on any failure in this job | ||
| uses: ./.github/actions/print-logfiles | ||
|
|
||
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.
Was this broken or is it just a slight improvement?
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.
Just a slight improvement.