Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8166 from Habbie/backport-8164-to-auth-4.2.x
auth 4.2.x: pdnsutil increase-serial: set right ordername
- Loading branch information
Showing
5 changed files
with
26 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
mysqldiff | ||
|
||
$PDNSUTIL --config-dir=. --config-name=gmysql increase-serial test.dyndns | ||
|
||
mysqldiff 1 "Check that test.dyndns. still has a valid ordername" | ||
|
||
[ -z "$GMYSQLDB" ] && GMYSQLDB=pdnstest | ||
[ -z "$GMYSQLUSER" ] && GMYSQLUSER=root | ||
[ -z "$GMYSQLHOST" ] && GMYSQLHOST=localhost | ||
[ -z "$GMYSQLPASSWD" ] && GMYSQLPASSWD='' | ||
|
||
mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \ | ||
"$GMYSQLDB" \ | ||
-e "UPDATE records SET content='ns1.test.dyndns ahu.example.dyndns 2012060701 28800 7200 604800 86400' WHERE name='test.dyndns' AND type='SOA'" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Make sure that pdnsutil increase-serial does not destroy ordername. |
6 changes: 6 additions & 0 deletions
6
regression-tests/tests/pdnsutil-increase-serial/expected_result
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SOA serial for zone test.dyndns set to 2012060702 | ||
Check that test.dyndns. still has a valid ordername | ||
--- Start: diff start step.1 --- | ||
no difference | ||
--- End: diff start step.1 --- | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Skip this test if the backend does not support dyndns/rfc2136 |