Commit graph

11 commits

Author SHA1 Message Date
TheTechRobo
37cb4d3fcb
feat(server): add landing page (#26)
* feat(server): add landing page

Fixes orhun/rustypaste#13

* feat(server): allow using {REPOSITORY} in landing page

* fix(server): Get rid of unused import, add line about expiration

* chore(fmt): cargo fmt

* fix(tests): inject app data for fixing index test

* feat(server): redirect to GitHub repository if landing page is not specified

* test(fixtures): add fixture test for landing page

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-10-03 21:27:35 +00:00
Orhun Parmaksız
deec5d4c29
test(fixtures): add fixture test for random URL 2022-05-21 19:31:43 +03:00
Orhun Parmaksız
a98f0ae22e
test(fixtures): add fixture test for default extension 2022-05-21 19:23:59 +03:00
Orhun Parmaksız
5cdca1d9aa
test(fixtures): add fixture test for MIME override 2022-05-21 19:12:09 +03:00
Orhun Parmaksız
c06fff92ac
test(fixtures): add fixture test for MIME blacklist 2022-05-21 18:47:41 +03:00
Orhun Parmaksız
d262a3d297
test(fixtures): add fixture test for auto deletion 2022-05-21 18:23:21 +03:00
Orhun Parmaksız
a6a8261a73
refactor(fixtures): merge test steps in a single subshell 2022-05-21 17:52:47 +03:00
Orhun Parmaksız
00167db3d6
fix(fixtures): enable random URLs for duplicate file fixture 2022-05-21 17:52:14 +03:00
Orhun Parmaksız
cccbf98acc
refactor(fixtures): use subshell for running fixture methods 2022-05-21 16:51:06 +03:00
Orhun Parmaksız
c60090d461
fix(fixtures): exit the run_test function on error 2022-05-21 16:43:32 +03:00
Orhun Parmaksız
4d16e65edb
test(fixtures): add a test framework along with test fixtures 2022-05-21 15:27:38 +03:00