From d75e9a0fa374b4ad745df7684a26a30eda79748a Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Wed, 15 May 2024 10:35:14 -0400 Subject: [PATCH] Fix unsafe text assertion in tests (#716) (#717) [Manual backport/stable-3] Fix unsafe text assertion in tests (#716) Fix unsafe text assertion in tests SUMMARY This fixes a problem with unsafe text in an assertion. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: GomathiselviS Reviewed-by: Bikouo Aubin (cherry picked from commit 8858b19) --- tests/integration/targets/k8s_info/tasks/wait.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/k8s_info/tasks/wait.yml b/tests/integration/targets/k8s_info/tasks/wait.yml index 2608f820..03fc7269 100644 --- a/tests/integration/targets/k8s_info/tasks/wait.yml +++ b/tests/integration/targets/k8s_info/tasks/wait.yml @@ -192,7 +192,7 @@ - name: Check that module waited assert: that: - - "{{ lookup('pipe', 'date +%s') }} - {{ start }} > 30" + - ( lookup('pipe', 'date +%s')|int - start|int ) > 30 - name: Create simple pod k8s: