inspec/test/unit
Adam Leff 8269d0da9e Support vendored profiles in Habitat-packaged profiles
This change adds support in Habitat-packaged profiles for
profiles that depend on other profiles. When `inspec habitat
profile create` or `inspec habitat profile upload` is run,
it will see if the profile's dependencies have been vendored
yet, and if not, it will vendor them before creating the
habitat artifact.

For the git and URL fetchers, more explicit creation of the
target directories for the vendored profiles is done. This
is implicitly done via normal CLI interactions a user may
go through, but in our case, we want to ensure those directories
are there before the fetchers try to write out content.

By adding this support, we also fix a bug experienced in Habitat
where a profile that was packaged before an `inspec exec` was run
for the profile would cause a failure in Habitat. This is caused
by `inspec exec` doing a vendor of the dependencies if necessary
and generating the inspec.lock file. In Habitat, the package dir
is not writable by the hab user and InSpec would fail to run due
to an inability to write out an inspec.lock.

Signed-off-by: Adam Leff <adam@leff.co>
2017-03-29 10:22:20 +02:00
..
bundles/inspect-habitat Support vendored profiles in Habitat-packaged profiles 2017-03-29 10:22:20 +02:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl add tag object (#1590) 2017-03-22 13:41:44 -04:00
fetchers Change :shasum key to :sha256 for future upgrade 2016-09-21 10:51:04 +01:00
mock Fix port resource for invalid IP address in netstat output 2017-03-29 08:33:50 +02:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles Generate default profile names, fix bug when using two-or-more flat profiles 2017-02-13 13:07:41 -05:00
resources Fix port resource for invalid IP address in netstat output 2017-03-29 08:33:50 +02:00
source_readers Provide better error message when inspec.yml is invalid 2017-03-09 18:03:01 +01:00
utils Provide a method-based accessor for SimpleConfig hashes 2017-03-15 14:49:16 -05:00
file_provider_test.rb Add GitFetcher and rework Fetchers+SourceReaders 2016-09-09 14:14:36 +01:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00