-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.toml
50 lines (38 loc) · 1.21 KB
/
conf.toml
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
47
48
49
50
[proxy]
host = "localhost"
port = 3000
server_base_url = "https://ask-hadith.vercel.app"
save_to_folder = "./contracts"
[test_service]
load_from_folder = "./contracts"
server_base_url = "http://localhost:7777"
[body_comparison]
## these fields are ignored in all responses
# ignore_fields = ["id", "created_at", "updated_at"]
## the actual response body must be same as expected body regardless of the order of keys
strict_match = false
## the actual response body must have same values as expected body
value_match = true
## the actual response body must be structurally same as expected body
structure_match = true
## the arrays in actual response body must have same order as expected body
array_order_match = true
## the arrays in actual response body must have same length as expected body
array_length_match = false
## these fields are ignored in responses for specific paths
[body_comparison.ignore_fields_by_path]
# "/login" = [
# "password",
# "email",
# ]
[headers_comparison]
## these headers are ignored in all responses
ignore_headers = [
"date",
"server",
"content-length",
"connection",
"x-powered-by",
]
## these cookies are ignored in all responses
ignore_cookies = ["expires"]