| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Add request file IO error handling | 2022-11-24 | -0/+8 | |
| | | ||||
| * | Add unit test for MemFS access before __enter__ | 2022-11-24 | -0/+17 | |
| | | ||||
| * | Refactor output files in `output` dir | 2022-11-24 | -9/+18 | |
| | | ||||
| * | Add memfs unit tests | 2022-11-22 | -0/+39 | |
| | | ||||
| * | Add file send integration tests | 2022-11-22 | -3/+54 | |
| | | ||||
| * | Fix path parse unit tests | 2022-11-22 | -1/+4 | |
| | | ||||
| * | Add addition path parse unit tests | 2022-11-22 | -0/+52 | |
| | | ||||
| * | Fixed leading empty filter for py_args | 2022-11-22 | -5/+12 | |
| | | ||||
| * | Refactor file parse timeout | 2022-11-22 | -6/+28 | |
| | | ||||
| * | Clarify resource unit test | 2022-11-21 | -3/+3 | |
| | | ||||
| * | Refactor config patches in tests | 2022-11-21 | -28/+3 | |
| | | ||||
| * | Add root back to unit test | 2022-11-21 | -1/+1 | |
| | | ||||
| * | Combined file handling to FileAttachment class | 2022-11-20 | -4/+4 | |
| | | ||||
| * | Add unit test for multiple python files | 2022-11-19 | -0/+11 | |
| | | ||||
| * | Implement files request form | 2022-11-19 | -38/+47 | |
| | | ||||
| * | Remove /dev/shm mounts | 2022-11-19 | -17/+4 | |
| | | ||||
| * | Refactored tests to use new kwargs | 2022-11-17 | -13/+15 | |
| | | ||||
| * | Added additional unit tests | 2022-11-16 | -7/+65 | |
| | | ||||
| * | Fixed unit tests | 2022-11-16 | -8/+25 | |
| | | ||||
| * | Remove -c from unit tests | 2022-11-15 | -2/+2 | |
| | | ||||
| * | Use more common binary for testing v1 cgroups | 2022-07-09 | -3/+3 | |
| | | ||||
| * | Test v1 cgroups are created as needed | 2022-07-04 | -0/+68 | |
| | | ||||
| * | Use new NsJail instance for each test in NsJailArgsTests | 2022-06-07 | -12/+11 | |
| | | ||||
| * | Test NsJail args are set and used when passed to __init__ | 2022-06-06 | -0/+37 | |
| | | ||||
| * | Fix NsJail patch for API tests | 2022-06-06 | -1/+1 | |
| | | ||||
| * | Add config path & output size args to NsJail class | 2022-06-04 | -3/+3 | |
| | | ||||
| * | Add black and isort | 2022-06-03 | -63/+65 | |
| | | ||||
| * | Import the WSGI app via the config during tests | 2022-06-01 | -9/+7 | |
| | | | | | | Relying more on gunicorn and its config parsing will avoid discrepancies between the test and production environments. | |||
| * | Remove redundant module for creating the WSGI app | 2022-05-30 | -2/+2 | |
| | | ||||
| * | Fix 415 error response title | 2022-05-29 | -1/+1 | |
| | | | | | The update to Falcon v3 changed its capitalisation. | |||
| * | Change entrypoint tests to integration tests | 2021-12-27 | -35/+25 | |
| | | | | | No more mocks! | |||
| * | Add tests for main() | 2021-12-26 | -0/+49 | |
| | | ||||
| * | Test argument parsing for entry point | 2021-12-26 | -0/+51 | |
| | | ||||
| * | Add a test for #83 | 2021-12-21 | -0/+123 | |
| | | ||||
| * | Set NsJail log level to warning during API tests | 2021-12-21 | -0/+3 | |
| | | ||||
| * | Fix NsJail args test | 2021-12-21 | -1/+2 | |
| | | | | | | Dynamically calculate the position of the arguments rather than hard-coding them. | |||
| * | test: add test_multiprocess_resource_limits to test memory limit sharing | 2021-07-17 | -0/+28 | |
| | | | | | This test ensures that spawned child processes inherit the same resource group as the parent by spawning 2 child processes which each allocate a 40MB object, it then verifies that one of the child processes was killed with SIGKILL for violating the resource quota. | |||
| * | test: update pid limit tests to account for new increased limit | 2021-07-17 | -1/+10 | |
| | | ||||
| * | chore: Use TestCase.subTest | 2021-05-19 | -12/+12 | |
| | | ||||
| * | chore: Add tests for py_args and ns_jail args | 2021-05-18 | -0/+31 | |
| | | ||||
| * | Match new unicode eval tests and output to the format and functions of others | 2021-04-08 | -12/+8 | |
| | | ||||
| * | Use PYTHONIOENCODING to enable utf-8 stdout for the nsjail pipe, and handle ↵ | 2021-04-06 | -0/+21 | |
| | | | | | | | | | | | the potential case where this is bypassable Since snekbox does not run with a tty, stdout is technically raw bytes, and thus incomplete surrogate pairs can be printed without the client application erroring, and instead fail within _consume_stdout when we attempt to decode it to a str. This commit sets the PYTHONIOENCODING environment variable to inform python to open the pipe in utf-8 mode. However, clever use of execl and os.unsetenv() can unset this environment variable, so we add a safety check to _consume_stdout to fail out of parsing output if it contains invalid unicode. This should only happen in deliberate cases, or significant bugs in python or a c library where output is printed to stdout ignoring the python stdout encoding. | |||
| * | Update flooding test to expect code 143 | 2021-03-16 | -1/+1 | |
| | | | | | Test was relying on 137 which is SIGKILL, when instead it would receive 143, or SIGTERM. | |||
| * | Fix patch for DEBUG value during testing | 2021-02-04 | -1/+1 | |
| | | ||||
| * | Fix the memory limit test and the import error | 2021-02-04 | -2/+2 | |
| | | ||||
| * | Close file descriptors when subprocess ends | 2021-02-04 | -1/+1 | |
| | | ||||
| * | Suppress NsJail info logs during tests | 2021-02-04 | -0/+1 | |
| | | | | | The logs clutter up the test output way too much. | |||
| * | Move exit code conversion to main function | 2020-11-21 | -4/+2 | |
| | | ||||
| * | Add test for stdout output truncation | 2020-11-21 | -1/+19 | |
| | | | | | | | I've added a test that checks if output exceeding the limit is correctly truncated. To make the test more robust, I've defined a constant for the read chunk size. | |||
| * | Convert negative exit codes into standard form | 2020-11-20 | -1/+1 | |
| | | | | | | | | When you send a signal `N` to a subprocess using Popen, it will return `-N` as its exit code. As the rest of the code returns signal exit codes as `128 + N`, we convert those negative exit codes into the standard form used by the rest of the code. | |||