Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/omega-mv/blob/main/apps/edge/test.om
# omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
Sign in to star 1 stars 0 watching
About Files History Releases Proposed changes Issues For developers
branch `main` Branches Tags History
`omega-mv / apps / edge / test.om`
364 lines ยท 7961 bytes Raw Blame History
1 note aien-edge unit tests: router, path sanitizer, security headers, CSP, escaping, status codes.
2 note Compose: si/directives/om2.om + apps/edge/lib.om + apps/edge/test.om
3
4 text edge_ts_pass "PASS "
5 text edge_ts_fail "FAIL "
6 text edge_ts_nl "\n"
7 text edge_ts_ok "SUMMARY aien-edge PASS all=9 fail=0\n"
8 text edge_ts_bad "SUMMARY aien-edge FAIL\n"
9
10 text edge_tn_1 "normalize_valid_paths"
11 text edge_tn_2 "normalize_refuse_traversal_ctrl"
12 text edge_tn_3 "normalize_host"
13 text edge_tn_4 "encoding_negotiation"
14 text edge_tn_5 "route_200_and_head"
15 text edge_tn_6 "route_hive_board_noscript_csp"
16 text edge_tn_7 "route_400_403_405"
17 text edge_tn_8 "route_404_xss_escaped"
18 text edge_tn_9 "https_hsts_vs_http"
19
20 text edge_p1 "/a//b/./c?x=1#top"
21 text edge_p1_exp "a/b/c"
22 text edge_p2 "/"
23 text edge_p3 "/%68ive/board/"
24 text edge_p3_exp "hive/board"
25 text edge_p4 "/.well-known/security.txt"
26 text edge_p4_exp ".well-known/security.txt"
27
28 text edge_bad1 "/a/../b"
29 text edge_bad2 "/%2e%2e/etc/passwd"
30 text edge_bad3 "/a%5cb"
31 text edge_bad4 "/a%00b"
32 text edge_bad5 "/a%07b"
33 text edge_bad6 "/bad%ZZ"
34 text edge_bad7 "/.env"
35 text edge_bad8 "/assets/app.js.map"
36
37 text edge_h1 "Example.COM.:443"
38 text edge_h1_exp "example.com"
39 text edge_h_bad "evil.com/path"
40
41 text edge_ae1 "gzip, deflate, br"
42 text edge_ae2 "br;q=0, gzip"
43 text edge_ae3 "gzip;q=0.00"
44
45 text edge_req_root "GET / HTTP/1.1\n"
46 text edge_req_head "HEAD / HTTP/1.1\n"
47 text edge_req_board "GET /hive/board/ HTTP/1.1\n"
48 text edge_req_asset "GET /assets/app.css HTTP/1.1\n"
49 text edge_req_400 "GET /bad%ZZ HTTP/1.1\n"
50 text edge_req_400_nul "GET /a%00b HTTP/1.1\n"
51 text edge_req_403_trav "GET /%2e%2e/etc/passwd HTTP/1.1\n"
52 text edge_req_403_env "GET /.env HTTP/1.1\n"
53 text edge_req_405 "POST / HTTP/1.1\n"
54 text edge_req_404_xss "GET / HTTP/1.1\n"
55
56 text edge_chk_nosniff "X-Content-Type-Options: nosniff"
57 text edge_chk_noscript "script-src 'none'"
58 text edge_chk_hsts "Strict-Transport-Security: max-age=`31536000`"
59 text edge_chk_allow "Allow: GET, HEAD"
60 text edge_chk_imm "immutable"
61 text edge_chk_esc "<script>alert(1)</script>"
62 text edge_chk_raw_script "