github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/dns/acceptance.sh (about) 1 #!/bin/bash 2 3 set -eu 4 set -x 5 6 # Test domains 7 export DNS_DOMAIN_FORWARD="example.com." 8 export DNS_DOMAIN_REVERSE="1.168.192.in-addr.arpa." 9 10 # Run with no authentication 11 12 export DNS_UPDATE_SERVER=127.0.0.1 13 docker run -d -p 53:53/udp \ 14 -e BIND_DOMAIN_FORWARD=${DNS_DOMAIN_FORWARD} \ 15 -e BIND_DOMAIN_REVERSE=${DNS_DOMAIN_REVERSE} \ 16 -e BIND_INSECURE=true \ 17 --name bind_insecure drebes/bind 18 make testacc TEST=./builtin/providers/dns 19 docker stop bind_insecure 20 docker rm bind_insecure 21 22 # Run with authentication 23 24 export DNS_UPDATE_KEYNAME=${DNS_DOMAIN_FORWARD} 25 export DNS_UPDATE_KEYALGORITHM="hmac-md5" 26 export DNS_UPDATE_KEYSECRET="c3VwZXJzZWNyZXQ=" 27 docker run -d -p 53:53/udp \ 28 -e BIND_DOMAIN_FORWARD=${DNS_DOMAIN_FORWARD} \ 29 -e BIND_DOMAIN_REVERSE=${DNS_DOMAIN_REVERSE} \ 30 -e BIND_KEY_NAME=${DNS_UPDATE_KEYNAME} \ 31 -e BIND_KEY_ALGORITHM=${DNS_UPDATE_KEYALGORITHM} \ 32 -e BIND_KEY_SECRET=${DNS_UPDATE_KEYSECRET} \ 33 --name bind_secure drebes/bind 34 make testacc TEST=./builtin/providers/dns 35 docker stop bind_secure 36 docker rm bind_secure