summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-12-15 16:54:49 +0200
committerLars Wirzenius <liw@liw.fi>2017-12-15 16:54:49 +0200
commit04c80ff3559577ea48e71b14b39df350f937f24a (patch)
treea958c9ae3d1bfe0e1ff68c291a8bc5ce600a4176 /yarns/900-implements.yarn
parent51edd7a26118ebe7b6d94bd331d09f64d8675a55 (diff)
downloadick2-04c80ff3559577ea48e71b14b39df350f937f24a.tar.gz
Refactor: rename body_text to body throughout
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn16
1 files changed, 8 insertions, 8 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 410191c..1a42198 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -53,26 +53,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
IMPLEMENTS WHEN (\S+) makes request POST (\S+) with a valid token and body (.+)
user = get_next_match()
path = get_next_match()
- body_text = get_next_match()
+ body = get_next_match()
token = get_token(user)
url = vars['url']
- http(vars, post, url + path, body_text=body_text, token=token)
+ http(vars, post, url + path, body=body, token=token)
IMPLEMENTS WHEN (\S+) makes request POST (\S+) with an invalid token and body (.+)
user = get_next_match()
path = get_next_match()
- body_text = get_next_match()
+ body = get_next_match()
token = get_token(user)
url = vars['url']
- http(vars, post, url + path, body_text=body_text, token='invalid')
+ http(vars, post, url + path, body=body, token='invalid')
IMPLEMENTS WHEN (\S+) makes request PUT (\S+) with a valid token and body (.+)
user = get_next_match()
path = get_next_match()
- body_text = get_next_match()
+ body = get_next_match()
token = get_token(user)
url = vars['url']
- http(vars, put, url + path, body_text=body_text, token=token)
+ http(vars, put, url + path, body=body, token=token)
IMPLEMENTS WHEN (\S+) sends blob (\S+) to blob service as (\S+)
user = get_next_match()
@@ -86,10 +86,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
IMPLEMENTS WHEN (\S+) makes request PUT (\S+) with an invalid token
user = get_next_match()
path = get_next_match()
- body_text = '{}'
+ body = '{}'
token = get_token(user)
url = vars['url']
- http(vars, put, url + path, body_text=body_text, token='invalid')
+ http(vars, put, url + path, body=body, token='invalid')
IMPLEMENTS WHEN (\S+) makes request DELETE (\S+)
user = get_next_match()