From bf41d3bfea12ef02ae0cac65e2e232e1cffd90ad Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Fri, 6 Jun 2025 09:57:23 +0200 Subject: [PATCH] CI: Simplify running playbooks as collection --- tests/scripts/testcases_run.sh | 51 ++++++++++------------------------ 1 file changed, 14 insertions(+), 37 deletions(-) diff --git a/tests/scripts/testcases_run.sh b/tests/scripts/testcases_run.sh index 02a8efefb..bbf9f7a3f 100755 --- a/tests/scripts/testcases_run.sh +++ b/tests/scripts/testcases_run.sh @@ -30,38 +30,16 @@ export ANSIBLE_BECOME_USER=root if [[ "${TESTCASE}" =~ "collection" ]]; then # Build and install collection ansible-galaxy collection build - ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz - - # Simply remove all of our files and directories except for our tests directory - # to be absolutely certain that none of our playbooks or roles - # are interfering with our collection - find -mindepth 1 -maxdepth 1 ! -regex './\(tests\|inventory\)' -exec rm -rfv {} + - -cat > cluster.yml < upgrade-cluster.yml < reset.yml < remove-node.yml <