From 83a4ed97f0d70726e3a06c95ec2c7d8a8ba3cfb5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 15 Sep 2021 08:23:18 +0300 Subject: fix: use impl in bindings file, for new Subplot Sponsored-by: author --- subplot/ewww.yaml | 42 +++++++++++++++++++++++++++++++----------- 1 file 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
\S+) is "(?P.+)"' regex: true - function: http_header_is + impl: + python: + function: http_header_is - then: 'body is "(?P.*)"' 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 -- cgit v1.2.1