test313: a new test for CRL support

This commit is contained in:
Kamil Dudka 2010-05-27 23:45:18 +02:00
Родитель 99179da4cc
Коммит 01459828ef
3 изменённых файлов: 42 добавлений и 1 удалений

Просмотреть файл

@ -7,6 +7,8 @@
Changelog
Kamil Dudka (27 May 2010)
- added a new test for CRL support (test313)
- Tor Arntsen changed the alternative definition of bool to use enum instead
of unsigned char.

Просмотреть файл

@ -67,7 +67,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test312 test1105 test565 test800 test1106 test801 test566 test802 test803 \
test1107 test1108 test1109 test1110 test1111 test1112 test129 test567 \
test568 test569 test570 test571 test572 test804 test805 test806 test807 \
test573
test573 test313
filecheck:
@mkdir test-place; \

39
tests/data/test313 Normal file
Просмотреть файл

@ -0,0 +1,39 @@
<testcase>
<info>
<keywords>
HTTPS
HTTP GET
PEM certificate
CRL
</keywords>
</info>
#
# Client-side
<client>
<features>
SSL
</features>
<server>
https Server-localhost-sv.pem
</server>
<name>
CRL test
</name>
<command>
--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --crlfile %SRCDIR/certs/Server-localhost-sv.crl https://localhost:%HTTPSPORT/313
</command>
# Ensure that we're running on localhost because we're checking the host name
<precheck>
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
</precheck>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
60
</errorcode>
</verify>
</testcase>