From fa0ebac9864de6a3745fbfb0c1dbb2e5b3188d45 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Tue, 23 Aug 2022 21:21:21 +0300 Subject: [PATCH] [examples] Add 200 and 404 wildcard documents. --- examples/hello-world.cdb | Bin 2882 -> 4259 bytes examples/hello-world.cdb-dump | 77 ++++++++++++++++-- .../hello-world/tests/status-200/_200.txt | 1 + .../hello-world/tests/status-404/_404.txt | 1 + sources/lib/common/namespaces.go | 2 +- 5 files changed, 71 insertions(+), 10 deletions(-) create mode 100644 examples/hello-world/tests/status-200/_200.txt create mode 100644 examples/hello-world/tests/status-404/_404.txt diff --git a/examples/hello-world.cdb b/examples/hello-world.cdb index 1cced2dd58ced9fef0f408c9a668163888287633..62d7f77242251c81872eea676486e4f068b30d8f 100644 GIT binary patch literal 4259 zcmeHIPiUM)6yF+=x>2hJJyl57TS(oR`DW&u$wee3RP><4i%Jgj*DT%amh5U6HMzD(0@N*(zAqmc7tiX!}SRhA0VDVJcss#$$k%f4m_G2UTBTf}^irgd5Mx06H5xING zxW4s120>M1DpSER8<=pOWir!2yNog&7-gOXlN(B^;qb3 z`_m`;Yh6FnEOY8^=aiuzujPaq2}O`7$Zr;GueDYT(o;2yHp9x*EKt!a<8-U*>{DIybwNUvnjBr=l8z^u)D z&NC++GuCjDDeIi4-g|KI){?w9IxmjfBmc2IgP|F|I)JN1ZY=w_FX+VyztL-XV+spd z7O6cBiuKB|UaD5F{8rXW1}?p)#E0m#6;K&%WN<=SL6l=O3hs!ano-R|I^n{`3~r}` z`|DU<9Ov}v}9vPpIqWhJ^+U0T6=x%DM>Aj^!u6uo$(hOR}RCE+FvyQ?IjFwp@ zLA}Z?hsQ>7qK$BZ>Qn*gsIZHJb@S52NwzF zhBKCBIib$l+}DcYszrfhW}3<2N%$7=f27@P&oeUIe?L=y4+5f}9rAOK z5PeP6i}@oWpCvxQqA%4xV1Hcd4>j8U-Il9zE$yYN-AmvBi>Gb; zl-;J)XnXl$Nr5n9!<%-O@s;8@TqGTFMcgkq1jG~K@g1qUagrDvFkwLWLMw^J?Z~!vTW;D(^!nxD`p{i)hxd9IGHIqQ8>IIwWB%6i0;*D# zCsq=cw+`9rG|c&OYGuc;6Lgl}F@An*>>S@PuE82-?Y>H1K*MRwJB_>?0cJTU!|(F? zp3IVb&AfW};V}KhFmQ&A>T@WkHMcaXf2#1?^4x=3h4;VRxVBWue|-A6xoG*buOHv_ pD)F-3+v$_DFDv=)Egv1N)xPtc*I^~TYx!=4m-#<#wKu<5{ZE#xU}XRR diff --git a/examples/hello-world.cdb-dump b/examples/hello-world.cdb-dump index 976f410..191560a 100644 --- a/examples/hello-world.cdb-dump +++ b/examples/hello-world.cdb-dump @@ -1,15 +1,15 @@ +6,14 schema -kawipiko-2021b +kawipiko-2021c +3,16 f:/ m0000001d0000002 -+8,124 ++8,140 m0000001 -h0000017H0000001h000001cH0000003h0000025H000000dh000002bZacobddfe518f2838ec2be25cd23639e9c3129e212d2ea7a116cb8708965aa6f0f11 +h0000001H000000dh0000018H0000001h000001dH0000003h0000026H000000fh000002cZacobddfe518f2838ec2be25cd23639e9c3129e212d2ea7a116cb8708965aa6f0f11 +8,13 d0000002 @@ -20,13 +20,13 @@ Hello world! l:/ m0000003d0000004 -+8,124 ++8,140 m0000003 -h0000017H0000001h000001cH0000003h0000025H0000012h000002bZaco0a562685032c3c6a9f2fff32966d00f9f5482a0a26d97c2e868bc110a1f81614 +h0000001H000000dh0000018H0000001h000001dH0000003h0000026H0000014h000002cZaco89ad639022578dd8f69b31dfda4df2ecd48da1ed1809da6ac6f4623a5ff8a959 -+8,82 ++8,115 d0000004 -{"entries":[{"name":"index.txt","type":"file","size":13}],"indices":["index.txt"]} +{"entries":[{"name":"index.txt","type":"file","size":13},{"name":"tests","type":"folder"}],"indices":["index.txt"]} +4,16 f:/* @@ -40,16 +40,75 @@ m0000001d0000002 f:/index.txt m0000001d0000002 -+8,23 ++8,16 +l:/tests +m0000005d0000006 + ++8,140 +m0000005 +h0000001H000000dh0000018H0000001h000001dH0000003h0000026H0000014h000002cZaco9bdc558765f25a06d86e90f2036e2bb3d743c6c2aba4038bccd1ddd90fdbb074 + ++8,89 +d0000006 +{"entries":[{"name":"status-200","type":"folder"},{"name":"status-404","type":"folder"}]} + ++19,16 +l:/tests/status-200 +m0000007d0000008 + ++8,140 +m0000007 +h0000001H000000dh0000018H0000001h000001dH0000003h0000026H0000014h000002cZaco6e46dd10defc9b56c29a6ec56b508c21f54c08192194e4df25bf36f0c9c3c279 + ++8,2 +d0000008 +{} + ++21,16 +f:/tests/status-200/* +m0000009d000000a + ++8,140 +m0000009 +h0000001H000000dh0000018H0000001h000001dH0000003h0000026H000000fh000002cZaco289220028fc1b56bc1f8afb2b26c9c87b40898409a5c519defc6c15bd4242bcb + ++8,17 +d000000a +Anything is 200! + + ++19,16 +l:/tests/status-404 +m0000007d0000008 + ++21,16 +f:/tests/status-404/* +m000000bd000000c + ++8,140 +m000000b +h0000001H000000eh0000018H0000001h000001dH0000003h0000026H000000fh000002cZaco09c18884511967b78751fd4614620efa112760d039edecf044a42233701cbb7d + ++8,17 +d000000c +Anything is 404! + + ++8,63 F0000001 / /* /index /index.txt +/tests/status-200/* +/tests/status-404/* -+8,2 ++8,45 L0000001 / +/tests +/tests/status-200 +/tests/status-404 diff --git a/examples/hello-world/tests/status-200/_200.txt b/examples/hello-world/tests/status-200/_200.txt new file mode 100644 index 0000000..68b9fe8 --- /dev/null +++ b/examples/hello-world/tests/status-200/_200.txt @@ -0,0 +1 @@ +Anything is 200! diff --git a/examples/hello-world/tests/status-404/_404.txt b/examples/hello-world/tests/status-404/_404.txt new file mode 100644 index 0000000..f74d403 --- /dev/null +++ b/examples/hello-world/tests/status-404/_404.txt @@ -0,0 +1 @@ +Anything is 404! diff --git a/sources/lib/common/namespaces.go b/sources/lib/common/namespaces.go index f025ee7..5b09118 100644 --- a/sources/lib/common/namespaces.go +++ b/sources/lib/common/namespaces.go @@ -6,7 +6,7 @@ package common const NamespaceSchemaVersion = "schema" -const CurrentSchemaVersion = "kawipiko-2021b" +const CurrentSchemaVersion = "kawipiko-2021c" const NamespaceFilesContent = "files-content"