From ee70d0e200b8fb153058bc593a502155a1656835 Mon Sep 17 00:00:00 2001 From: Clinton Wolfe Date: Thu, 10 Mar 2022 14:35:14 -0500 Subject: [PATCH] Update tests to match new deprecation message Signed-off-by: Clinton Wolfe --- test/functional/inspec_exec_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/inspec_exec_test.rb b/test/functional/inspec_exec_test.rb index ce88e71c9..6d9e3ea76 100644 --- a/test/functional/inspec_exec_test.rb +++ b/test/functional/inspec_exec_test.rb @@ -491,7 +491,7 @@ Test Summary: 0 successful, 0 failures, 0 skipped describe "with a profile that contains deprecated aws resources" do let(:out) { inspec("exec " + File.join(profile_path, "aws-profile")) } it "exits with deprecation error" do - _(stdout).must_include "DEPRECATION: AWS resources shipped with core InSpec are deprecated" + _(stdout).must_include "DEPRECATION: AWS resources in core InSpec are deprecated and have been removed in InSpec 5" assert_exit_code 3, out end end @@ -499,7 +499,7 @@ Test Summary: 0 successful, 0 failures, 0 skipped describe "with a profile that contains deprecated azure resources" do let(:out) { inspec("exec " + File.join(profile_path, "azure-profile")) } it "exits with deprecation error" do - _(stdout).must_include "DEPRECATION: Azure resources shipped with core InSpec are deprecated" + _(stdout).must_include "DEPRECATION: Azure resources in core InSpec are deprecated and have been removed in InSpec 5" assert_exit_code 3, out end end