summaryrefslogtreecommitdiff
path: root/ewww.md
diff options
context:
space:
mode:
Diffstat (limited to 'ewww.md')
-rw-r--r--ewww.md20
1 files changed, 9 insertions, 11 deletions
diff --git a/ewww.md b/ewww.md
index 2232e75..8e60f8b 100644
--- a/ewww.md
+++ b/ewww.md
@@ -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