summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-15 08:23:18 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-15 08:23:18 +0300
commit83a4ed97f0d70726e3a06c95ec2c7d8a8ba3cfb5 (patch)
tree1a798bf33ed3cdd67504d924124cf54033b4c2d8
parenta48c5dfc48a9aea22e7dbc34a74a45f1e4dcade9 (diff)
downloadewww-83a4ed97f0d70726e3a06c95ec2c7d8a8ba3cfb5.tar.gz
fix: use impl in bindings file, for new Subplot
Sponsored-by: author
-rw-r--r--subplot/ewww.yaml42
1 files changed, 31 insertions, 11 deletions
diff --git a/subplot/ewww.yaml b/subplot/ewww.yaml
index 7353863..d59a5fd 100644
--- a/subplot/ewww.yaml
+++ b/subplot/ewww.yaml
@@ -1,33 +1,53 @@
- given: a self-signed certificate as {cert}, using key {key}
- function: copy_test_certificate
+ impl:
+ python:
+ function: copy_test_certificate
- given: a running server using config file {filename}
- function: start_server
- cleanup: stop_server
+ impl:
+ python:
+ function: start_server
+ cleanup: stop_server
- given: directory {dirname}
- function: create_directory
+ impl:
+ python:
+ function: create_directory
- then: I am redirected to {location}
- function: fixme
+ impl:
+ python:
+ function: fixme
- then: I can do at least {number} requests per second
- function: fixme
+ impl:
+ python:
+ function: fixme
- then: I get status code {code}
- function: http_status_code_is
+ impl:
+ python:
+ function: http_status_code_is
- then: 'header (?P<header>\S+) is "(?P<value>.+)"'
regex: true
- function: http_header_is
+ impl:
+ python:
+ function: http_header_is
- then: 'body is "(?P<body>.*)"'
regex: true
- function: http_body_is
+ impl:
+ python:
+ function: http_body_is
- when: I request {method} {url}
- function: request
+ impl:
+ python:
+ function: request
- when: I request files under {url} in random order {count} times
- function: fixme
+ impl:
+ python:
+ function: fixme