You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Tim Kimber b785c42bab Less fragile way of deciding whether to run old awk test 6 years ago
..
test-config Test using BATS 6 years ago
1-simple-http01.bats Check output for "Error", "Failed" and "Warning" 6 years ago
2-simple-dns01.bats Check output for "Error", "Failed" and "Warning" 6 years ago
4-more-than-10-hosts.bats Check output for "Error", "Failed" and "Warning" 6 years ago
5-old-awk-error.bats Less fragile way of deciding whether to run old awk test 6 years ago
Dockerfile-centos6 Test using BATS 6 years ago
Dockerfile-ubuntu18 Check output for "Error", "Failed" and "Warning" 6 years ago
Dockerfile-ubuntu18-no-gawk Show error message if awk doesn't support json_awk 6 years ago
README.md Check output for "Error", "Failed" and "Warning" 6 years ago
debug-test.sh Check output for "Error", "Failed" and "Warning" 6 years ago
run-all-tests.sh Show error message if awk doesn't support json_awk 6 years ago
test_helper.bash Test using BATS 6 years ago

README.md

Testing

This directory contains a simple test script which tests creating certificates with Pebble (testing version of the LetsEncrypt server)

Start up pebble, the challdnstest server for DNS challenges

docker-compose -f "docker-compose.yml" up -d --build

Run the tests

test/run-all-tests.sh

Run individual test

docker exec -it getssl bats /getssl/test/<filename.bats>

Debug (uses helper script to set CURL_CA_BUNDLE as pebble uses a local certificate, otherwise you get a "unknown API version" error)

docker exec -it getssl-<os> /getssl/test/debug-test.sh <config-file>`

eg.

```sh
docker exec -it getssl-ubuntu18 /getssl/test/debug-test.sh getssl-http01.cfg

TODO

  1. Test RHEL6, Debian as well
  2. Test SSH, SFTP
  3. Test wildcards