summaryrefslogtreecommitdiffhomepage
path: root/test/test_go_isolation.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-1/+2
Also fixed various pylint errors and style issues.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-279/+287
Class usage came from the unittest framework and it was always redundant after migration to the pytest. This commit removes classes from files containing tests to make them more readable and understandable.
2023-06-12Tests: removed alert skip, unnecessary after 1a48ea61fec8.Andrei Zeliankou1-4/+0
2023-06-12Tests: prerequisites checking reworked.Andrei Zeliankou1-61/+60
Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check.
2023-05-25Tests: assertion related fixes.Andrei Zeliankou1-4/+4
2023-05-25Tests: removed unused variables.Andrei Zeliankou1-1/+1
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-4/+4
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2022-04-11Tests: style.Andrei Zeliankou1-3/+1
2021-11-09Tests: app prototype related fixes.Max Romanov1-1/+5
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-04-05Tests: style.Andrei Zeliankou1-8/+6
2021-01-13Tests: style.Andrei Zeliankou1-2/+0
2021-01-07Tests: reordered asserts to avoid a test race.Tiago Natel de Moura1-5/+9
The mount points are unmounted in the main process after it detects the app process died. By testing the `tmpfs: true` first, it happens that main could start the `tmpfs: false` test case before main cleans the old process mount points.
2020-12-09Tests: isolation check moved to the pytest_sessionstart().Andrei Zeliankou1-21/+3
This change eliminates the need for some classes to run Unit one more time before running tests.
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-16Tests: tmpfs automount.Tiago Natel de Moura1-3/+22
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov1-1/+1
KeyboardInterrupt re-raised.
2020-10-29Isolation: mounting of procfs by default when using "rootfs".Tiago Natel de Moura1-24/+56
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-15/+25
2020-10-07Tests: minor fixes.Andrei Zeliankou1-0/+1
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-104/+71
2020-08-20Tests: default tmpfs in rootfs.Tiago Natel de Moura1-0/+20
2020-05-28Tests: Added rootfs tests.Tiago Natel de Moura1-0/+46
2020-05-15Tests: style.Andrei Zeliankou1-2/+2
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2019-12-06Tests: added privileged credential tests.Tiago Natel1-44/+150
2019-11-26Tests: added getjson() helper.Tiago Natel1-7/+7
2019-11-09Tests: fixed tests to run as root.Tiago Natel1-10/+23
- The mode of testdir was changed to allow reading from other users/groups. - The java multipart test now uploads the file into an app writable dir. - The build directory was made readable for other users. - The python environment test now uses the HOME env var instead of PWD because the latter is not set by the root shell (/bin/sh) by default. - The node `node_modules` directory now is copied into the `testdir` instead of using symlinks.
2019-10-11Fixed passing false in namespace flags.Tiago Natel1-0/+32
This patch closes #328 in github.
2019-09-19Initial applications isolation support using Linux namespaces.Tiago de Bem Natel de Moura1-0/+135