Skip to content

Commit

Permalink
CI: test all DNS records
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Dec 17, 2024
1 parent 26491cd commit 1a750d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-deploy-ipv4only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ jobs:
run: CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow

- name: cmdeploy dns
run: cmdeploy dns -v
run: cmdeploy dns -v --all

2 changes: 1 addition & 1 deletion .github/workflows/test-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ jobs:
run: CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow

- name: cmdeploy dns
run: cmdeploy dns -v
run: cmdeploy dns -v --all

4 changes: 3 additions & 1 deletion cmdeploy/src/cmdeploy/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ def check_full_zone(sshexec, remote_data, out, zonefile, all) -> int:
for line in required_diff:
out(line)
print()
returncode += 1
returncode = 1
if recommended_diff and (all or not required_diff):
out("WARNING: these recommended DNS entries are not set:\n")
for line in recommended_diff:
out(line)
if all:
returncode = 1

if not (recommended_diff or required_diff):
out.green("Great! All your DNS entries are verified and correct.")
Expand Down

0 comments on commit 1a750d7

Please sign in to comment.