Client testing (was Re: Text reflow woes (or: I want bullets back!))

solderpunk solderpunk at SDF.ORG
Mon Aug 19 18:21:14 BST 2019


>   I've made a stab at some initial tests at:
> 
> 	gemini://gemini.conman.org/test/torture/
> 
>   There are currently 19 tests (0001 through 0019) and they only cover
> resolving links (full URL, full path, relative path, relative path with ".."
> and "." components), plus parsing of the MIME type.  Comments welcome,
> especially with tests that may be unfair or are problematic.

Thanks for this!  I'm happy to report that AV-98 passes with flying
colours.

I've started a test client which you provide a hostname and it throws
various requests at that host and checks the response status against its
expectations.  It's not quite ready for prime time yet, though.

Although, it's already made me realise something that we haven't specced
any behaviour for at all: how should a server respond to an empty
request?  i.e. just CRLF.  Is this invalid, such that it should trigger
a 59 response?  Some servers do this, but others seem to treat it as a
request for the root document.

-Solderpunk



More information about the Gemini mailing list