diff --git a/test/functional/inspec_check_test.rb b/test/functional/inspec_check_test.rb index d73faecf2..1a3d14f04 100644 --- a/test/functional/inspec_check_test.rb +++ b/test/functional/inspec_check_test.rb @@ -96,7 +96,8 @@ describe 'inspec check' do invalid_profile = File.join(profile_path, 'invalid-include-controls') out = inspec('check ' + invalid_profile) out.exit_status.must_equal 1 - out.stderr.must_match /Cannot load 'invalid_name'/ + out.stderr.must_match /Cannot load 'no_such_profile'/ + out.stderr.must_match /not listed as a dependency/ end end end diff --git a/test/unit/mock/profiles/invalid-include-controls/README.md b/test/unit/mock/profiles/invalid-include-controls/README.md deleted file mode 100644 index 7889ebf4e..000000000 --- a/test/unit/mock/profiles/invalid-include-controls/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Invalid Include Controls - -This profile contains an `include_controls` line with a invalid reference diff --git a/test/unit/mock/profiles/invalid-include-controls/controls/example.rb b/test/unit/mock/profiles/invalid-include-controls/controls/example.rb index 0d87556a7..6a4e32665 100644 --- a/test/unit/mock/profiles/invalid-include-controls/controls/example.rb +++ b/test/unit/mock/profiles/invalid-include-controls/controls/example.rb @@ -1,4 +1,4 @@ # encoding: utf-8 # copyright: 2018, The Authors -include_controls 'invalid_name' +include_controls 'no_such_profile' diff --git a/test/unit/mock/profiles/invalid-include-controls/inspec.yml b/test/unit/mock/profiles/invalid-include-controls/inspec.yml index 2afe796e1..146640f3a 100644 --- a/test/unit/mock/profiles/invalid-include-controls/inspec.yml +++ b/test/unit/mock/profiles/invalid-include-controls/inspec.yml @@ -1,10 +1,10 @@ name: invalid-include-controls -title: InSpec Profile +title: Invalid Include Controls maintainer: The Authors copyright: The Authors -copyright_email: you@example.com +copyright_email: humans@chef.io license: Apache-2.0 -summary: An InSpec Compliance Profile +summary: This profile contains an `include_controls` line with a invalid reference version: 0.1.0 supports: - platform: os \ No newline at end of file + platform: os