aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api (follow)
Commit message (Collapse)AuthorAgeLines
* Refactor writing of input files into a separate functionGravatar Mark2023-10-27-1/+1
|
* Add null byte schema validation testsGravatar ionite342022-12-04-1/+21
|
* Add tests for test_eval 200Gravatar ionite342022-12-04-0/+3
|
* Add compat support for `input` argGravatar ionite342022-11-28-7/+11
|
* Add ParsingError handling for invalid base64Gravatar ionite342022-11-28-1/+1
|
* Add invalid, absolute, null byte paths to schemaGravatar ionite342022-11-28-6/+5
|
* Docstring phrasing updateGravatar Ionite2022-11-28-3/+3
| | | Co-authored-by: Mark <[email protected]>
* Fix path parse unit testsGravatar ionite342022-11-22-1/+4
|
* Add addition path parse unit testsGravatar ionite342022-11-22-0/+52
|
* Implement files request formGravatar ionite342022-11-19-9/+8
|
* Fixed unit testsGravatar Ionite2022-11-16-2/+2
|
* Fix NsJail patch for API testsGravatar Mark2022-06-06-1/+1
|
* Add black and isortGravatar MarkKoz2022-06-03-10/+5
|
* Fix 415 error response titleGravatar MarkKoz2022-05-29-1/+1
| | | | The update to Falcon v3 changed its capitalisation.
* Set NsJail log level to warning during API testsGravatar MarkKoz2021-12-21-0/+3
|
* chore: Use TestCase.subTestGravatar ToxicKidz2021-05-19-12/+12
|
* chore: Add tests for py_args and ns_jail argsGravatar ToxicKidz2021-05-18-0/+18
|
* Merge stdout and stderrGravatar MarkKoz2019-06-15-1/+0
| | | | | | Removes the need for redirecting stderr using contextlib in the input. Furthermore, it captures errors which don't directly come from the input, such as SyntaxErrors.
* Respond to eval with stdout, stderr, and the return codeGravatar MarkKoz2019-06-05-3/+10
| | | | | | | | | The previous implementation limited the client's flexibility in presenting the results of the process. A process can write to both stdout and stderr and do so even when the return code is not 0 or 1. * Return a CompletedProcess from NsJail * Don't check the return code; this should be done client-side now
* Add logging for NsJailGravatar MarkKoz2019-06-05-1/+1
| | | | | | | | | | | NsJail's is configured to log to a temporary file rather than stderr. The contents of the file are parsed using regex after the process exits. When not debugging, some blacklisted messages and most info-level messages are skipped. * Add a snekbox logger * Log the Python code being executed if debugging * Use nested single quotes in a test to fix a linter error
* Move SnekAPI import back to top of moduleGravatar MarkKoz2019-05-29-1/+2
|
* Add API tests for eval resourceGravatar MarkKoz2019-05-29-0/+65