#! /usr/bin/env bats load '/bats-support/load.bash' load '/bats-assert/load.bash' load '/getssl/test/test_helper.bash' @test "Check retry add dns command if dns isn't updated" { if [ -z "$STAGING" ]; then skip "Running internal tests, skipping external test" fi CONFIG_FILE="getssl-staging-dns01.cfg" setup_environment init_getssl cat <<- EOF > ${INSTALL_DIR}/.getssl/${GETSSL_CMD_HOST}/getssl_test_specific.cfg DNS_ADD_COMMAND="/getssl/test/dns_add_fail" # Speed up the test by reducing the number or retries and the wait between retries. DNS_WAIT=2 DNS_WAIT_COUNT=11 DNS_EXTRA_WAIT=0 CHECK_ALL_AUTH_DNS="false" CHECK_PUBLIC_DNS_SERVER="false" EOF create_certificate -d assert_failure assert_line --partial "Retrying adding dns via command" }