Skip to content

Commit

Permalink
Consolidate common files for Roles tests
Browse files Browse the repository at this point in the history
  • Loading branch information
john-odonnell committed Dec 22, 2021
1 parent 5a695cf commit d2d5f3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
8 changes: 5 additions & 3 deletions roles/conjur_host_identity/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ function setup_conjur {

function run_test_cases {
for test_case in test_cases/*; do
teardown_and_setup
run_test_case "$(basename -- "$test_case")"
if [ "${test_case}" != "test_cases/common" ]; then
teardown_and_setup
run_test_case "$(basename -- "$test_case")"
fi
done
}

Expand All @@ -71,7 +73,7 @@ function run_test_case {
"
docker exec "${ansible_cid}" bash -ec "
cd tests
py.test --junitxml=./junit/${test_case} --connection docker -v test_cases/${test_case}/tests/test_default.py
py.test --junitxml=./junit/${test_case} --connection docker -v test_cases/common/test_default.py
"
else
echo ERROR: run_test called with no argument 1>&2
Expand Down

This file was deleted.

0 comments on commit d2d5f3b

Please sign in to comment.