summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/compliance/default_attributes.rb2
-rw-r--r--spec/integration/compliance/compliance_spec.rb1
-rw-r--r--spec/unit/compliance/runner_spec.rb2
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/compliance/default_attributes.rb b/lib/chef/compliance/default_attributes.rb
index 9839cd740b..24bf72330b 100644
--- a/lib/chef/compliance/default_attributes.rb
+++ b/lib/chef/compliance/default_attributes.rb
@@ -28,7 +28,7 @@ class Chef
# Controls what is done with the resulting report after the Chef InSpec run.
# Accepts a single string value or an array of multiple values.
# Accepted values: 'chef-server-automate', 'chef-automate', 'json-file', 'audit-enforcer', 'cli'
- "reporter" => %w{json-file cli},
+ "reporter" => "cli",
# Controls if Chef InSpec profiles should be fetched from Chef Automate or Chef Infra Server
# in addition to the default fetch locations provided by Chef Inspec.
diff --git a/spec/integration/compliance/compliance_spec.rb b/spec/integration/compliance/compliance_spec.rb
index 70d048c7fc..553e947ee3 100644
--- a/spec/integration/compliance/compliance_spec.rb
+++ b/spec/integration/compliance/compliance_spec.rb
@@ -47,6 +47,7 @@ describe "chef-client with compliance phase" do
{
"audit": {
"compliance_phase": true,
+ "reporter": "json-file",
"json_file": {
"location": "#{report_file}"
},
diff --git a/spec/unit/compliance/runner_spec.rb b/spec/unit/compliance/runner_spec.rb
index 6040da07b7..c1a0855f78 100644
--- a/spec/unit/compliance/runner_spec.rb
+++ b/spec/unit/compliance/runner_spec.rb
@@ -278,7 +278,7 @@ describe Chef::Compliance::Runner do
inputs = runner.inspec_opts[:inputs]
expect(inputs["tacos"]).to eq("lunch")
- expect(inputs["chef_node"]["audit"]["reporter"]).to eq(%w{json-file cli})
+ expect(inputs["chef_node"]["audit"]["reporter"]).to eq("cli")
expect(inputs["chef_node"]["chef_environment"]).to eq("_default")
end
end