mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Update CLI output, adjust tests
The CLI output for the vendoring of profiles has been updated slightly to be more clear, and the functional tests have been modified to match as well. Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
parent
e1c664272e
commit
96d18435a4
2 changed files with 4 additions and 4 deletions
|
@ -157,7 +157,7 @@ module Inspec
|
|||
end
|
||||
|
||||
profile_vendor.vendor!
|
||||
puts "Profile dependencies successfully vendored to #{profile_vendor.cache_path}"
|
||||
puts "Dependencies for profile #{profile_path} successfully vendored to #{profile_vendor.cache_path}"
|
||||
rescue StandardError => e
|
||||
pretty_handle_exception(e)
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ describe 'example inheritance profile' do
|
|||
|
||||
it 'can vendor profile dependencies' do
|
||||
out = inspec('vendor ' + inheritance_path + ' --overwrite')
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Vendor dependencies of #{inheritance_path} into #{inheritance_path}/vendor"
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Dependencies for profile #{inheritance_path} successfully vendored to #{inheritance_path}/vendor"
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
|
@ -29,7 +29,7 @@ describe 'example inheritance profile' do
|
|||
|
||||
# vendor all dependencies
|
||||
out = inspec('vendor --overwrite', "cd #{inheritance_path} &&")
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Vendor dependencies of #{inheritance_path} into #{inheritance_path}/vendor"
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Dependencies for profile #{inheritance_path} successfully vendored to #{inheritance_path}/vendor"
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
|
@ -110,7 +110,7 @@ describe 'example inheritance profile' do
|
|||
|
||||
it 'can vendor profile dependencies from the profile path' do
|
||||
out = inspec('vendor --overwrite', "cd #{inheritance_path} &&")
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Vendor dependencies of #{inheritance_path} into #{inheritance_path}/vendor"
|
||||
out.stdout.force_encoding(Encoding::UTF_8).must_include "Dependencies for profile #{inheritance_path} successfully vendored to #{inheritance_path}/vendor"
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue