boulder/test
Daniel McCarney eb67ad4f88 Allow `validateEmail` to timeout w/o error. (#2288)
This PR reworks the validateEmail() function from the RA to allow timeouts during DNS validation of MX/A/AAAA records for an email to be non-fatal and match our intention to verify emails best-effort.

Notes:

bdns/problem.go - DNSError.Timeout() was changed to also include context cancellation and timeout as DNS timeouts. This matches what DNSError.Error() was doing to set the error message and supports external callers to Timeout not duplicating the work.

bdns/mocks.go - the LookupMX mock was changed to support always.error and always.timeout in a manner similar to the LookupHost mock. Otherwise the TestValidateEmail unit test for the RA would fail when the MX lookup completed before the Host lookup because the error wouldn't be correct (empty DNS records vs a timeout or network error).

test/config/ra.json, test/config-next/ra.json - the dnsTries and dnsTimeout values were updated such that dnsTries * dnsTimeout was <= the WFE->RA RPC timeout (currently 15s in the test configs). This allows the dns lookups to all timeout without the overall RPC timing out.

Resolves #2260.
2016-10-27 11:56:12 -07:00
..
boulder-tools Switch back to go 1.5 in Travis. (#2261) 2016-10-20 14:11:26 -04:00
config Allow `validateEmail` to timeout w/o error. (#2288) 2016-10-27 11:56:12 -07:00
config-next Allow `validateEmail` to timeout w/o error. (#2288) 2016-10-27 11:56:12 -07:00
ct-test-srv Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
dns-test-srv Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
grpc-creds Split CAA checking out to its own service (#1647) 2016-04-12 23:02:41 -07:00
js Implement key rollover (#2231) 2016-10-27 10:22:09 -04:00
mail-test-srv Mailer reliability improvements (#2262) 2016-10-20 14:10:47 -04:00
secrets Adds `notafter-backfiller` cmd. (#2227) 2016-10-11 14:38:40 -07:00
vars always use boulder-mysql, not localhost, for mysql 2016-04-07 10:19:24 +02:00
caa-servfail-exceptions.txt Add enforcement for CAA SERVFAIL (#1971) 2016-06-28 11:00:23 -07:00
cfssl-config.json Move cert-csr check to boulder/core and review fixes 2015-06-02 17:56:28 +01:00
create_db.sh Local DB migration improvements (`-next` directory, auto-migrate) (#2206) 2016-09-26 21:37:05 -07:00
ct-key.pem Use a EC key to sign CT signatures, plus properly load it 2015-12-15 13:50:43 -08:00
db-common.sh * Delete Policy DB.This is no longer needed now that we have a JSON policy file.* Fix tests.* Revert Dockerfile.* Fix create_db* Simplify user addition.* Fix tests.* Fix tests* Review fixes.https://github.com/letsencrypt/boulder/pull/1773 2016-04-29 12:12:24 -07:00
db.go * Delete Policy DB.This is no longer needed now that we have a JSON policy file.* Fix tests.* Revert Dockerfile.* Fix create_db* Simplify user addition.* Fix tests.* Fix tests* Review fixes.https://github.com/letsencrypt/boulder/pull/1773 2016-04-29 12:12:24 -07:00
docker-environment Switch to Golang 1.6.3 (#2105) 2016-08-05 16:35:43 -04:00
drop_users.sql Add cmd/expired-authz-purger (#1828) 2016-06-03 16:00:19 -04:00
entrypoint.sh Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
example-expiration-template Review fixes 2015-07-27 12:46:09 -07:00
hostname-policy.json * Delete Policy DB.This is no longer needed now that we have a JSON policy file.* Fix tests.* Revert Dockerfile.* Fix create_db* Simplify user addition.* Fix tests.* Fix tests* Review fixes.https://github.com/letsencrypt/boulder/pull/1773 2016-04-29 12:12:24 -07:00
integration-test.py Kill OCSP-Responder if integration-test.py fails (#2291) 2016-10-26 16:50:48 -07:00
issuer-ocsp-responder.json Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
make-softhsm.sh Fix non-Docker integration test. (#2184) 2016-09-16 18:21:33 -07:00
migrate-up.sh Add a test that there are no outdated migrations. 2015-09-18 14:53:40 -07:00
rate-limit-policies-b.yml Add certificatesPerName rate limit to integration test (#1940) 2016-06-17 16:10:05 -07:00
rate-limit-policies.yml Add certificatesPerName rate limit to integration test (#1940) 2016-06-17 16:10:05 -07:00
run-docker.sh Roll forward "Run Travis tests in Docker (#1830)" (#1838) 2016-05-24 15:11:22 -07:00
sa_db_users.sql Store new authorizations in the `authz` table (#2219) 2016-10-18 09:39:59 -07:00
setup.sh Very basic feature flag impl (#1705) 2016-09-20 16:29:01 -07:00
startservers.py Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
test-ca.der Unflake OCSP integration test 2015-10-21 14:38:15 -07:00
test-ca.key Make it easier to start a test config. 2015-04-09 18:26:40 -07:00
test-ca.key-pkcs11.json Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
test-ca.key.der Add DER form of test-ca key in-tree. (#2041) 2016-07-12 09:06:59 -07:00
test-ca.pem Unflake OCSP integration test 2015-10-21 14:38:15 -07:00
test-ca2.pem Add multi-issuer support to the CA. 2016-03-21 20:56:58 -07:00
test-no-outdated-migrations.sh Fix mktemp to be MacOS compatible 2015-09-23 13:16:16 -07:00
test-root.key Unflake OCSP integration test 2015-10-21 14:38:15 -07:00
test-root.key-pkcs11.json Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
test-root.key.der Improve single-ocsp command (#2181) 2016-09-15 15:28:54 -07:00
test-root.pem Unflake OCSP integration test 2015-10-21 14:38:15 -07:00
test-tools.go Change `%v` to `%#v` in AssertEquals error msg. (#1983) 2016-06-28 08:42:51 -07:00
travis-before-install.sh Run travis-before-install once more. (#1858) 2016-05-31 14:06:02 -07:00