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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
DiffConfig {
profiles: {
"todo": DiffProfile {
req1: RequestProfile {
method: GET,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(Domain("jsonplaceholder.typicode.com")),
port: None,
path: "/todos/1",
query: None,
fragment: None
},
params: Some(Object {"a": Number(100)}),
headers: {},
body: None
},
req2: RequestProfile {
method: GET,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(Domain("jsonplaceholder.typicode.com")),
port: None,
path: "/todos/2",
query: None,
fragment: None
},
params: Some(Object {"c": Number(200)}),
headers: {},
body: None
},
res: ResponseProfile {
skip_headers: ["report-to", "date"],
skip_body: ["id"]
}
},
"rust": DiffProfile {
req1: RequestProfile {
method: GET,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(Domain("www.rust-lang.org")),
port: None,
path: "/",
query: None,
fragment: None
},
params: Some(Object {"hello": String("world")}),
headers: {"user-agent": "Aloha"},
body: None
},
req2: RequestProfile {
method: GET,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(Domain("www.rust-lang.org")),
port: None, path: "/",
query: None,
fragment: None
},
params: Some(Object {}),
headers: {},
body: None
},
res: ResponseProfile {
skip_headers: ["set-cookie", "date", "via", "x-amz-cf-id"],
skip_body: []
}
}
}
}
Args {
action: Run(RunArgs {
profile: "rust",
extra_params: [
KeyVal { key_type: Query, key: "a", value: "100" },
KeyVal { key_type: Body, key: "b", value: "2" },
KeyVal { key_type: Query, key: "m", value: "10" }
],
config: Some("fixtures/test.yml")
})
}