This repository contains tests of the metacode.biz infrastructure. These tests always ask external services to assess the state of the infrastructure.
Running locally: npm test
Building and running through Docker:
docker build -t metacode/infr . && docker run --rm -i metacode/infr
Or the same via npm alias: npm run start-in-docker
Putting the following script in .git/hooks/pre-push
ensures that tests
pass locally before pushing them into the repository:
#!/bin/bash
npm run start-in-docker
Tests are executed on each commit to GitHub and additionally on schedule.
Testing the tests: npm test
Currently tests cover:
- HTTP/2 with ALPN,
- IPv6 support,
- TLS configuration with modern TLS versions,
- DNSSEC configuration,
- Security headers,
- HTTPS responses on both zone apex and
www
subdomain, - no near certificate expiration dates,
- CAA records,
- DMARC and SPF.
See queries.ts
for a complete list of supported tests.