Browse Source

Rename tests so they run in sequence, slight cleanup

pull/740/head
Tim Kimber 6 years ago
parent
commit
d0fc0f1423
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
6 changed files with 8 additions and 32 deletions
  1. +1
    -0
      test/1-simple-http01.bats
  2. +1
    -0
      test/2-simple-dns01.bats
  3. +4
    -2
      test/3-dual-rsa-ecdsa.bats
  4. +2
    -1
      test/4-more-than-10-hosts.bats
  5. +0
    -28
      test/run-test-10-hosts.sh
  6. +0
    -1
      test/test_helper.bash

test/simple-http01.bats → test/1-simple-http01.bats View File


test/simple-dns01.bats → test/2-simple-dns01.bats View File


test/dual-rsa-ecdsa.bats → test/3-dual-rsa-ecdsa.bats View File


test/more-than-10-hosts.bats → test/4-more-than-10-hosts.bats View File


+ 0
- 28
test/run-test-10-hosts.sh View File

@ -1,28 +0,0 @@
#! /bin/bash
set -e
# Test setup
if [[ -d /root/.getssl ]]; then
rm -r /root/.getssl
fi
HOST=getssl.test
wget --no-clobber https://raw.githubusercontent.com/letsencrypt/pebble/master/test/certs/pebble.minica.pem
# cat /etc/pki/tls/certs/ca-bundle.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt
cat /etc/ssl/certs/ca-certificates.crt /root/pebble.minica.pem > /root/pebble-ca-bundle.crt
export CURL_CA_BUNDLE=/root/pebble-ca-bundle.crt
for prefix in a b c d e f g h i j k; do
curl -X POST -d '{"host":"'$prefix.$HOST'", "addresses":["10.30.50.4"]}' http://10.30.50.3:8055/add-a
done
# Test #1 - http-01 verification
echo Test \#1 - http-01 verification
cp /getssl/test/test-config/nginx-ubuntu-no-ssl /etc/nginx/sites-enabled/default
service nginx restart
/getssl/getssl -c $HOST
cp /getssl/test/test-config/getssl-http01-10-hosts.cfg /root/.getssl/${HOST}/getssl.cfg
/getssl/getssl -f $HOST

+ 0
- 1
test/test_helper.bash View File

@ -32,6 +32,5 @@ create_certificate() {
# Create certificate
cp ${CODE_DIR}/test/test-config/${CONFIG_FILE} ${INSTALL_DIR}/.getssl/${HOST}/getssl.cfg
run ${CODE_DIR}/getssl $HOST
assert_success
#!FIXME test certificate has been placed in the expected location
}

Loading…
Cancel
Save