-
Notifications
You must be signed in to change notification settings - Fork 5
/
get.rigor
46 lines (38 loc) · 908 Bytes
/
get.rigor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Get
format: "1.0"
host: https://httpbin.org
tags:
- working
steps:
- description: Get call with no parameters
request:
path: get
validate:
- expect: https://httpbin.org/get
actual: '{response.url}'
- expect: {}
actual: '{response.args}'
- expect: "*/*"
actual: '{response.headers.Accept}'
- expect: 'Token GUEST-TOKEN'
actual: '{response.headers.Authorization}'
- description: Get and validate using transform
request:
path: get
params:
one: 1
two: 2
three: 2017-01-01
transform: >
{{
host: headers.Host,
keys: reverse(sort(keys(args)))
}}
validate:
- actual: '{transform}'
expect:
host: httpbin.org
keys:
- two
- three
- one