1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <string.h>
#include "util.h"
int
main(void)
{
char long_path[4096];
log_open("logging-fixture");
log_request("GET", "/docs/LOG_PRIVATE\nfake/file/proof?token=LOG_PRIVATE",
"LOG_PRIVATE\ractor", 400, "fixture:1");
memset(long_path, 'x', sizeof(long_path) - 1);
long_path[0] = '/';
long_path[sizeof(long_path) - 1] = '\0';
log_request("POST", long_path, "valid-user", 500, "fixture:2");
log_request("GET", NULL, NULL, 401, "fixture:3");
log_request("POST", "/docs/00000000-0000-0000-0000-000000000000/save",
"valid-user", 409, "fixture:4");
log_request("GET", "/me", "success", 200, "fixture:5");
return 0;
}