11
11
{value_generator, {fixed_bin, 10}}.
12
12
13
13
{operations, [
14
- %% Get without a key
15
- {{get, {"localhost", 4567, "/"}, []}, 1},
16
- %% Get with a key and headers
17
- {{get_re, {"localhost", 4567, "/%%K"}, [{'Content-Type', 'application/json'}]}, 1},
18
- %% Put with a json object and value
19
- {{put_re, {"localhost", 4567, "/",
20
- "{\"this\":\"is_json_%%V\"}"}, [{'Content-Type', 'application/json'}]}, 1},
21
- %% Post with an xml object and value
22
- {{post_re, {"localhost", 4567, "/%%K",
23
- "<?xml version=\"1.0\"?><catalog><book><author>%%V</author></book></catalog>"},
24
- [{'Content-Type', 'application/xml'}]}, 1},
25
- %% Delete with a key
26
- {{delete_re, {"localhost", 4567, "/%%K"}, []}, 1}
14
+ %% Get without a key
15
+ {{get, {"localhost", 4567, "/"}, []}, 1},
16
+ %% Get with a key and headers
17
+ {{get_re, {"localhost", 4567, "/%%K"}, [{'Content-Type', 'application/json'}]}, 1},
18
+ %% Put with a json object and value
19
+ {{put_re, {"localhost", 4567, "/",
20
+ "{\"this\":\"is_json_%%V\"}"}, [{'Content-Type', 'application/json'}]}, 1},
21
+ %% Post with an xml object and value
22
+ {{post_re, {"localhost", 4567, "/%%K",
23
+ "<?xml version=\"1.0\"?><catalog><book><author>%%V</author></book></catalog>"},
24
+ [{'Content-Type', 'application/xml'}]}, 1},
25
+ %% Delete with a key
26
+ {{delete_re, {"localhost", 4567, "/%%K"}, []}, 1}
27
27
]}.
0 commit comments