Added simple OpenSSL crypto engine tests.
This commit is contained in:
parent
bbdc483671
commit
32fe5b14ec
@ -37,4 +37,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
|
||||
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
|
||||
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
|
||||
test286
|
||||
test286 test307 test308
|
||||
|
43
tests/data/test307
Normal file
43
tests/data/test307
Normal file
@ -0,0 +1,43 @@
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 16 Jan 2007 18:00:14 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 7
|
||||
|
||||
MooMoo
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
OpenSSL
|
||||
</features>
|
||||
<server>
|
||||
https
|
||||
</server>
|
||||
<name>
|
||||
simple HTTPS GET with openssl engine
|
||||
</name>
|
||||
<command>
|
||||
--engine openssl -k https://%HOSTIP:%HTTPSPORT/307
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
^User-Agent:.*
|
||||
</strip>
|
||||
<protocol>
|
||||
GET /307 HTTP/1.1
|
||||
Host: 127.0.0.1:%HTTPSPORT
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
</verify>
|
24
tests/data/test308
Normal file
24
tests/data/test308
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
OpenSSL
|
||||
</features>
|
||||
<server>
|
||||
https
|
||||
</server>
|
||||
<name>
|
||||
simple HTTPS GET with invaild crypto engine
|
||||
</name>
|
||||
<command>
|
||||
--engine invalid-crypto-engine-xyzzy -k https://%HOSTIP:%HTTPSPORT/308
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
53
|
||||
</errorcode>
|
||||
</verify>
|
Loading…
x
Reference in New Issue
Block a user