From f84fd3b8cf218e3d4c76b77f39776bfc677e25ef Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Mon, 22 Aug 2022 14:31:00 +0200 Subject: [PATCH] Add filter "bool" to prevent issues --- .../targets/test_mysql_user/tasks/assert_user_password.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/test_mysql_user/tasks/assert_user_password.yml b/tests/integration/targets/test_mysql_user/tasks/assert_user_password.yml index fd7e281..ba045eb 100644 --- a/tests/integration/targets/test_mysql_user/tasks/assert_user_password.yml +++ b/tests/integration/targets/test_mysql_user/tasks/assert_user_password.yml @@ -13,7 +13,7 @@ - name: assert a change occurred assert: that: - - "result.changed == {{ expect_change }}" + - "result.changed | bool == {{ expect_change }} | bool" - "result.password_changed == {{ expect_password_change }}" - name: query the user command: "{{ mysql_command }} -BNe \"SELECT plugin, authentication_string FROM mysql.user where user='{{ username }}' and host='{{ host }}'\""