inspec/test/functional
Adam Leff 6ed5379134 Error and exit when using --sudo locally
Running `inspec exec` with --sudo locally produces unintended results
given that we cannot escalate local Ruby methods after we're already
running. --sudo is meant to only be used with remote targets. We do
not currently enforce that.

This change will print an error for the user if they attempt to use
--sudo with a local exec and exit non-zero.

Signed-off-by: Adam Leff <adam@leff.co>
2017-05-02 12:41:02 +02:00
..
gitfetcher_test.rb Rename --no-write-lockfile to --no-create-lockfile 2016-09-22 10:08:32 +02:00
helper.rb add functional tests 2016-11-09 09:12:10 -06:00
inheritance_test.rb update functional tests 2016-11-04 18:01:28 +01:00
inspec_archive_test.rb Updating tests for profile versions 2016-12-14 16:20:27 +00:00
inspec_artifact_test.rb adds profile signing/verification 2016-10-27 14:44:10 +02:00
inspec_compliance_test.rb harmonize compliance profiles view with supermarket views (#1654) 2017-04-13 11:24:17 -04:00
inspec_exec_json_test.rb add inspec json schema validation to functional tests 2017-03-22 09:42:36 +01:00
inspec_exec_jsonmin_test.rb add inspec json schema validation to functional tests 2017-03-22 09:42:36 +01:00
inspec_exec_junit_test.rb Replace Nokogiri with REXML in the JUnit formatter 2017-04-03 14:51:48 -04:00
inspec_exec_test.rb Error and exit when using --sudo locally 2017-05-02 12:41:02 +02:00
inspec_json_profile_test.rb static keys in all json 2016-09-19 12:00:14 +02:00
inspec_shell_test.rb Update inspec.io references in docs/code 2017-04-27 18:05:51 -04:00
inspec_test.rb Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
inspec_vendor_test.rb Update CLI output, adjust tests 2017-03-29 10:22:20 +02:00