inspec/test/functional
Adam Leff 5114173e50 Support PAX-formatted tar files, standardize file lists (#2225)
* 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>
2017-10-10 10:36:57 +01:00
..
gitfetcher_test.rb Rename --no-write-lockfile to --no-create-lockfile 2016-09-22 10:08:32 +02:00
helper.rb Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
inheritance_test.rb update functional tests 2016-11-04 18:01:28 +01:00
inspec_archive_test.rb Updating tests for profile versions 2016-12-14 16:20:27 +00:00
inspec_artifact_test.rb fix intermitten functional vendor test failures (#1919) 2017-06-12 14:01:26 +02:00
inspec_check_test.rb Modify DirProvider to allow special characters (#2174) 2017-09-23 09:16:25 +02:00
inspec_compliance_test.rb harmonize compliance profiles view with supermarket views (#1654) 2017-04-13 11:24:17 -04:00
inspec_exec_json_test.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00
inspec_exec_jsonmin_test.rb bugfix: remove duplicate message in describe.one blocks 2017-06-07 01:27:47 +02:00
inspec_exec_junit_test.rb Replace Nokogiri with REXML in the JUnit formatter 2017-04-03 14:51:48 -04:00
inspec_exec_test.rb Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
inspec_json_profile_test.rb Support PAX-formatted tar files, standardize file lists (#2225) 2017-10-10 10:36:57 +01:00
inspec_shell_test.rb Update shell resource help to return what is defined (#2219) 2017-10-06 19:32:16 +02:00
inspec_test.rb Added functional tests for inspec version --format json 2017-05-17 09:41:38 -04:00
inspec_vendor_test.rb fix intermitten functional vendor test failures (#1919) 2017-06-12 14:01:26 +02:00