Ran
|
Files
6
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Fix permissions in directory export tests Consider this series of commands: d="$(mktemp --directory)" setfacl -m user:apache:rwx "${d}" # let apache user rwx in dir sudo -u apache install -D /dev/null "${d}/foo/bar" sha256sum "${d}/foo/bar" In this scenario, `${d}/foo/` is owned by apache, which means that the current user doesn't have permissions necessary to read `${d}/foo/bar`. A similar issue is encountered by `ExportDistributorTestCase.test_export_to_dir`. This test creates a directory on the target Pulp server and asks Pulp to export a repository to this directory. The "apache" user writes files into this directory, meaning that the user executing this test may not have permissions necessary for manipulating the exported files. Fix this issue. As an aside, fixing this issue *and* removing the logic related to Pulp issue 1928, as added by f06d5fcde, causes `test_export_to_web` to start failing again, indicating that Pulp issue 1928 is valid.
357 of 508 relevant lines covered (70.28%)
0.7 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|