From d3c23d0b86b29d3f0f9e84391b995a89c59240ec Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 24 Nov 2023 12:13:46 +0100 Subject: [PATCH] chore: add makefile ansible-test targets (#401) ##### SUMMARY This helps to run sanity/units/integrations tests locally. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index 51a8912..3761a04 100644 --- a/Makefile +++ b/Makefile @@ -24,3 +24,20 @@ lint-docs: venv clean: git clean -xdf \ -e tests/integration/cloud-config-hcloud.ini + +sanity: + ansible-test sanity --color --truncate 0 -v \ + --exclude plugins/module_utils/vendor/ \ + --exclude scripts/ \ + --exclude tests/utils/ \ + --docker default \ + --allow-disabled + +units: + ansible-test units --color --truncate 0 -v \ + --docker default + +integration: + ansible-test integration --color --truncate 0 -v \ + --docker default \ + --allow-disabled