mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +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> |
||
---|---|---|
.. | ||
gitfetcher_test.rb | ||
helper.rb | ||
inheritance_test.rb | ||
inspec_archive_test.rb | ||
inspec_artifact_test.rb | ||
inspec_check_test.rb | ||
inspec_compliance_test.rb | ||
inspec_exec_json_test.rb | ||
inspec_exec_jsonmin_test.rb | ||
inspec_exec_junit_test.rb | ||
inspec_exec_test.rb | ||
inspec_json_profile_test.rb | ||
inspec_shell_test.rb | ||
inspec_test.rb | ||
inspec_vendor_test.rb |