mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
deactivate functional tests until logging is reintroduced
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
parent
76c4e26580
commit
1472fd4bff
1 changed files with 18 additions and 17 deletions
|
@ -78,33 +78,34 @@ describe 'example inheritance profile' do
|
|||
out = inspec('vendor ' + meta_path + ' --overwrite')
|
||||
|
||||
# execute json command
|
||||
out = inspec('json ' + meta_path + ' -l debug --output ' + dst.path)
|
||||
# we need to activate the logger with `-l debug`, but that needs to redirect its output to STDERR
|
||||
out = inspec('json ' + meta_path + ' --output ' + dst.path)
|
||||
out.exit_status.must_equal 0
|
||||
hm = JSON.load(File.read(dst.path))
|
||||
hm['name'].must_equal 'meta-profile'
|
||||
hm['controls'].length.must_equal 79
|
||||
|
||||
copies = out.stdout.scan(/Copy .* to cache directory/).length
|
||||
copies.must_equal 3
|
||||
|
||||
length = out.stdout.scan(/Dependency does not exist in the cache/).length
|
||||
length.must_equal 1
|
||||
|
||||
length = out.stdout.scan(/Fetching URL:/).length
|
||||
length.must_equal 0
|
||||
# copies = out.stdout.scan(/Copy .* to cache directory/).length
|
||||
# copies.must_equal 3
|
||||
#
|
||||
# length = out.stdout.scan(/Dependency does not exist in the cache/).length
|
||||
# length.must_equal 1
|
||||
#
|
||||
# length = out.stdout.scan(/Fetching URL:/).length
|
||||
# length.must_equal 0
|
||||
|
||||
# execute check command
|
||||
out = inspec('check ' + meta_path + ' -l debug')
|
||||
out.exit_status.must_equal 0
|
||||
|
||||
copies = out.stdout.scan(/Copy .* to cache directory/).length
|
||||
copies.must_equal 3
|
||||
|
||||
length = out.stdout.scan(/Dependency does not exist in the cache/).length
|
||||
length.must_equal 1
|
||||
|
||||
length = out.stdout.scan(/Fetching URL:/).length
|
||||
length.must_equal 0
|
||||
# copies = out.stdout.scan(/Copy .* to cache directory/).length
|
||||
# copies.must_equal 3
|
||||
#
|
||||
# length = out.stdout.scan(/Dependency does not exist in the cache/).length
|
||||
# length.must_equal 1
|
||||
#
|
||||
# length = out.stdout.scan(/Fetching URL:/).length
|
||||
# length.must_equal 0
|
||||
end
|
||||
|
||||
it 'can vendor profile dependencies from the profile path' do
|
||||
|
|
Loading…
Reference in a new issue