From ef533eb59b1b16aa207db3ac42df9c3367ebaf6e Mon Sep 17 00:00:00 2001 From: Marcin Stolarek Date: Thu, 12 Oct 2023 11:50:39 +0200 Subject: [PATCH] Adjust test to ansible change, make the test very generic --- tests/02a-checkrun_short.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/02a-checkrun_short.sh b/tests/02a-checkrun_short.sh index 3e7f57d8..b101be43 100755 --- a/tests/02a-checkrun_short.sh +++ b/tests/02a-checkrun_short.sh @@ -68,7 +68,7 @@ check_message_with_newline_in_output "ansible-deployer run -t task_with_ansible_ echo -e " ___ ____ _ _ _ _\n / _ \___ \ __ _ ___| |__ ___ ___| | ___ __ _ _ _ __ ___| |__ ___ _ __| |_\n | | | |__) / _\` | _____ / __| '_ \ / _ \/ __| |/ / '__| | | | '_ \ / __| '_ \ / _ \| '__| __|\n | |_| / __/ (_| | |_____| | (__| | | | __/ (__| <| | | |_| | | | | \__ \ | | | (_) | | | |_\n \___/_____\__,_| \___|_| |_|\___|\___|_|\_\_| \__,_|_| |_| |___/_| |_|\___/|_| \__|\n \n _ _ _ _ _ _\n | (_)_ __ ___ (_) |_ ___ _ __ | |_(_) ___ _ __\n | | | '_ \` _ \| | __| / _ \| '_ \| __| |/ _ \| '_ \ \n | | | | | | | | | |_ | (_) | |_) | |_| | (_) | | | |\n |_|_|_| |_| |_|_|\__| \___/| .__/ \__|_|\___/|_| |_|\n |_|\n" # Check --limit option -check_message_in_output "ansible-deployer run -t task_with_limit -s testing -i testInfra2 -l xyzHost4" "ERROR\! Specified hosts and/or --limit does not match any hosts" +check_message_in_output "ansible-deployer run -t task_with_limit -s testing -i testInfra2 -l xyzHost4" "ERROR\!" check_message_in_output "ansible-deployer run -t task_without_limit -s testing -i testInfra -l testHost1" "\[CRITICAL\]: Limit testHost1 is not available for task task_without_limit." check_message_in_output "ansible-deployer run -t task_exec_bin_true -s prod -i testInfra -l testHost1" "\[CRITICAL\]: Limit testHost1 is not available for task task_exec_bin_true." ## Multiple hosts in limit