test change for bad resource/backend combo.

I think this is probably in contention with my other PR on resource
initialization. We definitely need to change that, so this might fall
to the side. Or maybe just the test needs to be redone. We'll discuss
and see.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-08-18 20:33:54 -07:00
parent bd3ec9aec7
commit 1dd1efa03f

View file

@ -27,9 +27,8 @@ describe "inspec exec" do
# TODO: I do not know how to test this more directly. It should be possible. # TODO: I do not know how to test this more directly. It should be possible.
inspec "exec -t aws:// #{profile_path}/incompatible_resource_for_transport.rb" inspec "exec -t aws:// #{profile_path}/incompatible_resource_for_transport.rb"
stdout.must_include "Bad File on TrainPlugins::Aws::Connection" stdout.must_be_empty
stdout.must_include "Resource `file` is not supported on platform aws/train-aws" stderr.must_include "Unsupported resource/backend combination: file / aws. Exiting."
stderr.must_equal ""
end end
it "can execute the profile" do it "can execute the profile" do