mirror of
https://github.com/inspec/inspec
synced 2024-09-21 15:02:01 +00:00
Don't use a profile with old-style attributes in vendor test
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
8c9d76134f
commit
65123b47c0
1 changed files with 4 additions and 5 deletions
|
@ -101,20 +101,19 @@ describe 'example inheritance profile' do
|
|||
end
|
||||
|
||||
it 'ensure json/check command do not fetch remote profiles if vendored' do
|
||||
prepare_examples('meta-profile') do |dir|
|
||||
prepare_examples('profile') do |dir|
|
||||
out = inspec('vendor ' + dir + ' --overwrite')
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
out = inspec('json ' + dir + ' --output ' + dst.path)
|
||||
|
||||
# the profile used has 'default' style attributes
|
||||
out.stderr_ignore_deprecations.must_equal ''
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
hm = JSON.load(File.read(dst.path))
|
||||
hm['name'].must_equal 'meta-profile'
|
||||
hm['controls'].length.must_be :>=, 78
|
||||
hm['name'].must_equal 'profile'
|
||||
hm['controls'].length.must_be :>=, 4
|
||||
|
||||
# out.stdout.scan(/Copy .* to cache directory/).length.must_equal 3
|
||||
# out.stdout.scan(/Dependency does not exist in the cache/).length.must_equal 1
|
||||
|
|
Loading…
Reference in a new issue