diff options
Diffstat (limited to 'ewww.md')
-rw-r--r-- | ewww.md | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -88,21 +88,23 @@ for static content only. Every other method returns an error. ## Minimal smoke test ~~~scenario -given a running server using config file minimal.yaml -when I request GET http://example.com/ +given a self-signed certificate as snakeoil.pem, using key snakeoil.key +and a running server using config file minimal.yaml +when I request GET https://example.com/ then I get status code 200 ~~~ ~~~{#minimal.yaml .file .yaml} -hosts: - - example.com +tls_key: snakeoil.key +tls_cert: snakeoil.pem ~~~ ## Smoke test ~~~scenario -given a running server using config file smoke.yaml +given a self-signed certificate as snakeoil.pem, using key snakeoil.key +and a running server using config file smoke.yaml when I create webroot/foo with "hello, world" and I request GET https://example.com/foo then I get status code 200 @@ -143,12 +145,8 @@ scaffolding adds randomly chosen port numbers so that the test can run without being root. ~~~{#smoke.yaml .file .yaml .numberLines} -webroot: webroot -hosts: - - example.com - - www.example.com -tlscert: snakeoil.pem -tlskey: snakeoil.key +tls_cert: snakeoil.pem +tls_key: snakeoil.key ~~~ ## Performance test |