Skip to content
Snippets Groups Projects
Verified Commit 3385aea0 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

make sure kube-bench fails if command does not exist, add unincluded firewall tasks

parent b1ece587
No related branches found
No related tags found
No related merge requests found
......@@ -126,4 +126,4 @@
when: kube_bench_check_deb.rc == 1
- name: Configure firewall
import_tasks: journald.yml
import_tasks: firewall.yml
......@@ -60,9 +60,7 @@ def test_kubernetes_setup(host):
"--nosummary",
"--json"]), capture_output=True)
if result.rc != 0:
print("Docker run failed: ")
print(result.stderr)
assert result.rc == 0
# kube-bench doesn't give perfectly valid JSON as output. It gives 1 line
# of valid json per test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment