Skip to content

Commit

Permalink
Revert "Exit code changed"
Browse files Browse the repository at this point in the history
This reverts commit 2d03814.
  • Loading branch information
JonZeolla committed Sep 2, 2021
1 parent d116569 commit 0d941e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def run_ansible(*, image: str):
# Tests is a list of tuples containing the test environment, command, and
# expected exit code
tests: list[tuple[dict, str, int]] = [
({}, "ansible-playbook insecure.yml --check", 126),
({}, "ansible-playbook insecure.yml --check", 50),
(
{},
"ansible-playbook --skip-kics insecure.yml --check",
Expand Down Expand Up @@ -887,7 +887,7 @@ def run_ansible(*, image: str):
(
{"SKIP_TERRASCAN": "tRuE", "SKIP_CHECKOV": "FaLsE", "SKIP_KICS": "Unknown"},
"ansible-playbook insecure.yml --check",
126,
50,
), # checkov and terrascan are purposefully irrelevant for ansible
(
{},
Expand All @@ -907,19 +907,19 @@ def run_ansible(*, image: str):
(
{"KICS_QUERIES": "7dfb316c-a6c2-454d-b8a2-97f147b0c0ff"},
"ansible-playbook insecure.yml --check",
126,
50,
),
(
{},
"/usr/bin/env bash -c 'KICS_QUERIES=7dfb316c-a6c2-454d-b8a2-97f147b0c0ff ansible-playbook insecure.yml --check'",
126,
50,
),
(
{
"KICS_EXCLUDE_SEVERITIES": "info,low",
},
"ansible-playbook insecure.yml --check",
126,
50,
), # Doesn't exclude high or medium
(
{
Expand Down

0 comments on commit 0d941e6

Please sign in to comment.