test777: simple ---ssl-sessions test with wrong sessions

This commit is contained in:
Daniel Stenberg 2025-11-19 08:32:13 +01:00
parent abe6ea0531
commit b98e791e57
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 49 additions and 1 deletions

48
tests/data/test777 Normal file
View file

@ -0,0 +1,48 @@
<testcase>
<info>
<keywords>
--ssl-sessions
</keywords>
</info>
#
# Server-side
<reply>
<data crlf="headers">
HTTP/1.1 200
Date: Tue, 09 Nov 2030 14:49:00 GMT
Server: test-server/fake swsclose
Content-Type: text/html
</data>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<features>
ssl-sessions
</features>
<name>
--ssl-sessions with weird sessions in file
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --ssl-sessions "%LOGDIR/sessions"
</command>
<file name="%LOGDIR/sessions">
# Your SSL session cache. https://curl.se/docs/ssl-sessions.html
# This file was generated by libcurl! Edit at your own risk.
%b64[this is a funny test]b64%:%b64[second sequence]b64%
%b64[also a funny test]b64%:%b64[second different sequence]b64%
bad base64:also!bad
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
</verify>
</testcase>