peru/tests
Jack O'Connor bc8de020a2 check for tarballs containing sketchy symlinks
It's acceptable for a tarball to have a symlink at `a/b/c/foo.txt` that
points to `../../../foo.txt` (see `legal_symlink_dots.tar`), because
that symlink "stays within" the archive. However, it should be illegal
for the same symlink to point to `../../../../foo.txt` (see
`illegal_symlink_dots.tar`), because that symlink "reaches outside" the
archive. Similarly, it should always be illegal for a tarball to hold a
symlink pointing to an absolute path.

Add validation and tests cases for these behaviors.
2023-04-04 22:27:14 -07:00
..
resources check for tarballs containing sketchy symlinks 2023-04-04 22:27:14 -07:00
.coveragerc move .coveragerc into tests 2015-01-26 17:35:34 -08:00
__init__.py move tests out of peru package 2014-07-09 23:14:49 -07:00
shared.py set GIT_ALLOW_PROTOCOL=file in git submodule tests 2022-11-03 00:08:12 -07:00
test_async.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_cache.py disable the test_export_with_existing_files 2022-02-25 13:59:24 -05:00
test_compat.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_curl_plugin.py check for tarballs containing sketchy symlinks 2023-04-04 22:27:14 -07:00
test_display.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_edit_yaml.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_git_plugin.py stop using the deprecated SourceFileLoader.load_module() 2021-12-17 18:26:25 -05:00
test_glob.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_keyval.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_merge.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_parallelism.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_parser.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_paths.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_plugins.py set GIT_ALLOW_PROTOCOL=file in git submodule tests 2022-11-03 00:08:12 -07:00
test_reup.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_rule.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_runtime.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_scope.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_sync.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00
test_test_shared.py clean up formatting with yapf 2018-10-03 15:53:44 -04:00