deactivate functional tests until logging is reintroduced

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
Christoph Hartmann 2016-12-02 19:52:34 +01:00
parent 76c4e26580
commit 1472fd4bff

View file

@ -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