aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorLines
2019-09-14CI: specify container registry for Docker push tasksGravatar MarkKoz-0/+3
2019-09-05Fix misconfigured flake8 so docstrings are properly lintedGravatar S. Co1-36/+38
Bump flake8-docstrings dependency pin to support the fix
2019-09-03CI: fix NsJail clone in base Docker imageGravatar MarkKoz-1/+1
Unspecify the depth to make the clone non-shallow again. A depth of 1 was too shallow as it only allowed the latest commit to be cloned. An arbitrary larger depth would still break eventually. The repository is small enough to not warrant a shallow clone anyway.
2019-09-03Update contrib doc for allowing edits from maintainersGravatar S. Co1-0/+3
2019-08-05CI: output coverage report to stdoutGravatar MarkKoz-1/+2
2019-08-05Increase size of some headings in READMEGravatar MarkKoz-2/+2
2019-08-05Make Pipenv scripts compatible with WindowsGravatar MarkKoz-3/+3
Remove reliance on the shebang in the shell script.
2019-08-05Add links to API docs in READMEGravatar MarkKoz-10/+13
* Add a link to pipenv * Remove the "Details" section; now part of the first "snekbox" section * Clarify that snekbox uses a HTTP REST API * Document the default host and port for the webserver
2019-08-05Fix version specifier for libnl3Gravatar MarkKoz-1/+1
2019-08-05Pin dependencies in base imageGravatar MarkKoz-14/+14
2019-08-05Pin dependencies for flake8 pre-commit hookGravatar MarkKoz-14/+12
* Remove flake8-formatter-junit-xml dependency in the hook
2019-08-04Base image: cd into cloned repo before checkoutGravatar MarkKoz-0/+1
2019-08-04Update base imageGravatar MarkKoz-2/+2
2019-08-04Pin NsJail versionGravatar MarkKoz-1/+2
2019-08-04Pin dependenciesGravatar MarkKoz-88/+89
Resolves #27
2019-08-04Fix grammar in READMEGravatar MarkKoz-2/+2
2019-08-04Add Pipfile script and docs for building dev venv imageGravatar MarkKoz-1/+28
The builddev script will build just the dev venv image. The testb script will build the dev venv image, clean up dangling images, and then run tests. * Give the coverage commands their own header in the README
2019-08-04Use IDs for user and group in nsjpy aliasGravatar MarkKoz-2/+2
Reflects the changes in 7a7eca52019bf21d21cdffcf03cd9c5eacd8363b
2019-08-04Rewrite README and clean up Pipfile scriptsGravatar MarkKoz-68/+98
* Make the report script do the normal coverage report instead of HTML * Remove Docker image push scripts * Add image build script for the venv image
2019-07-30Add comments to Azure Pipelines YAMLGravatar MarkKoz-9/+29
* Replace some shorthand Docker command options with their full names for clarity
2019-07-30Log into Docker Hub before building images in test jobGravatar MarkKoz-5/+11
2019-07-10Pin pydocstyle to unbreak flake8-docstringsGravatar sco1-12/+14
Relock
2019-06-30CI: ensure count of builds returned by the API is > 0Gravatar MarkKoz-1/+2
2019-06-30CI: specify build context for Docker buildsGravatar MarkKoz-0/+5
2019-06-30CI: don't run the build job if nothing needs to be builtGravatar MarkKoz-0/+9
Resolve #26
2019-06-30CI: build the base image if the venv needs to be buildGravatar MarkKoz-2/+8
Fix #25
2019-06-30CI: refactor script & pull base when possibleGravatar MarkKoz-30/+93
* Move script's execution to the test job * Use output variables * Use jq instead of regex for parsing JSON responses from API * Wrap to 80 columns * Make more robust by checking for command success
2019-06-30CI: move check shell script to a separate fileGravatar MarkKoz-31/+35
2019-06-30CI: use multi-line folded scalars for long conditionsGravatar MarkKoz-3/+23
2019-06-30CI: refactor stepsGravatar MarkKoz-22/+58
* Use boolean literals instead of strings * Use Docker tasks for building and pushing * Move displayName and condition to the top of each step
2019-06-30CI: reformat indentation of YAMLGravatar MarkKoz-141/+141
2019-06-29Use write_text() and fix codec namesGravatar MarkKoz-5/+3
2019-06-27Test that the file system is mounted as read onlyGravatar MarkKoz-0/+10
2019-06-27Disable swap memoryGravatar MarkKoz-3/+7
2019-06-27Fix error when setting swap limit on a system that has it disabledGravatar MarkKoz-3/+9
The error happens when either CONFIG_MEMCG_SWAP or CONFIG_MEMCG_SWAP_ENABLED is disabled in the kernel.
2019-06-26Disable memory swapping and add a memory limit testGravatar MarkKoz-8/+34
If memory swapping was enabled locally, the memory test would fail. Explicitly disabling swapping also removes reliance on the assumption that it'll be disabled in production. * Add a constant for the maximum memory * Simplify the timeout test; it'd otherwise first run out of memory now
2019-06-22Don't generate an HTML report because Azure already does itGravatar MarkKoz-2/+1
See microsoft/azure-pipelines-tasks#9704
2019-06-22Remove -it options from docker execGravatar MarkKoz-3/+3
2019-06-22Add missing steps keyGravatar MarkKoz-0/+1
2019-06-22Run linting & tests in a containerGravatar MarkKoz-14/+28
2019-06-22Fix syntax errors in azure-pipelines.ymlGravatar MarkKoz-6/+7
* Add succeededOrFailed condition to code coverage publish task * Rename test publish task for unit tests
2019-06-22Add CI steps for running & publishing testsGravatar MarkKoz-17/+49
2019-06-22Fix venv being included in coverage when testing in a containerGravatar MarkKoz-4/+7
* Exclude DEBUG checks from coverage reports
2019-06-22Add a NsJail log parser testGravatar MarkKoz-3/+33
* Add support for debug level to log regex * Change type annotation of log_parse to Iterable
2019-06-22Rewrite NsJail testsGravatar MarkKoz-58/+80
* Fix SIGSEGV test * Add embedded null byte test * Return None for stderr when there's a ValueError
2019-06-22Capture NsJail logs from stdout if NsJail fails to parse cmd argsGravatar MarkKoz-3/+9
Fixes #30
2019-06-22Use IDs for user and group for consistency across distrosGravatar MarkKoz-2/+2
2019-06-22Fix coverage not finding sourcesGravatar MarkKoz-8/+17
* Mount volume to the same path as the source directory on the host * Keep the container up in the background so it doesn't have to be restarted or the ownership fix
2019-06-22Fix ownership of coverage fileGravatar MarkKoz-1/+10
When coverage runs in a container, it is ran under root so the resulting coverage file is owned by root. chown is used to change ownership to be the same as the folder it is in.
2019-06-22Use dev.sh script for running tests and coverageGravatar MarkKoz-94/+20
* Use unittest and directly use coverage.py instead of pytest