mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
5114173e50
* Support PAX-formatted tar files, standardize file lists When a tar file is generated in PAX format, the files have an additional relative path prefix added to them. For example, instead of: inspec.yml ... the file is listed as: ./inspec.yml And the source reader plugin looks only for a "inspec.yml" file to determine the profile format. This change addresses this issue by normalizing the file paths in the TarReader and accounting for the additional "./" prefix that may exist whenever the tar file is walked looking for a file to read its content. Signed-off-by: Adam Leff <adam@leff.co> * Remove pax from unit test, will move to functional Signed-off-by: Adam Leff <adam@leff.co> * Add function test for the pax header tar file Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
cookbooks/os_prepare | ||
functional | ||
integration | ||
unit | ||
docker_run.rb | ||
docker_test.rb | ||
helper.rb |