mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
removed unwanted README files from test fixtures and fixed some minor copy paste test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
7dba4fa641
commit
216306a219
4 changed files with 2 additions and 10 deletions
|
@ -45,7 +45,7 @@ module Inspec
|
|||
end
|
||||
end
|
||||
|
||||
# Find any inputs with :redact_sensitive_inputsitive = true and replace their values with "***"
|
||||
# Find any inputs with :sensitive = true and replace their values with "***"
|
||||
def redact_sensitive_inputs
|
||||
@run_data[:profiles]&.each do |p|
|
||||
p[:inputs]&.each do |i|
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Example InSpec Profile
|
||||
|
||||
This example shows the implementation of an InSpec profile.
|
|
@ -1,3 +0,0 @@
|
|||
# Example InSpec Profile
|
||||
|
||||
This example shows the implementation of an InSpec profile.
|
|
@ -429,7 +429,6 @@ describe "inspec exec with json formatter" do
|
|||
it "does not filter the empty profiles(profiles without controls)" do
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(profiles.count).must_equal 2
|
||||
assert_exit_code(0, run_result)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -437,10 +436,9 @@ describe "inspec exec with json formatter" do
|
|||
let(:run_result) { run_inspec_process("exec #{profile_path}/dependencies/uses-resource-pack --filter-empty-profiles", json: true) }
|
||||
let(:profiles) { @json["profiles"] }
|
||||
|
||||
it "does not filter the empty profiles(profiles without controls)" do
|
||||
it "does filter the empty profiles (profiles without controls)" do
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(profiles.count).must_equal 1
|
||||
assert_exit_code(0, run_result)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue