Skip to content

Commit

Permalink
Merge pull request #26 from zak905/randomize_record_content_letest
Browse files Browse the repository at this point in the history
Randomize record content letest
  • Loading branch information
Neilpang authored May 7, 2024
2 parents 213abfc + c39e3d1 commit e6418bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions letest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1501,8 +1501,10 @@ le_test_dnsapi() {
_initpath $TestingDomain
addcommand="${api}_add"
rmcommand="${api}_rm"
_assertcmd "$addcommand acmetestXyzRandomName.$TestingDomain acmeTestTxtRecord" || return
_assertcmd "$rmcommand acmetestXyzRandomName.$TestingDomain acmeTestTxtRecord" || return
random_string="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c10)"
record_content="acmeTestTxtRecord_$random_string"
_assertcmd "$addcommand acmetestXyzRandomName.$TestingDomain $record_content" || return
_assertcmd "$rmcommand acmetestXyzRandomName.$TestingDomain $record_content" || return
) || return

}
Expand Down

0 comments on commit e6418bb

Please sign in to comment.