summaryrefslogtreecommitdiff
path: root/test/integration/roles/test_filters/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/roles/test_filters/tasks/main.yml')
-rw-r--r--test/integration/roles/test_filters/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/roles/test_filters/tasks/main.yml b/test/integration/roles/test_filters/tasks/main.yml
index 1f6f0682e9..ec81d7f3fc 100644
--- a/test/integration/roles/test_filters/tasks/main.yml
+++ b/test/integration/roles/test_filters/tasks/main.yml
@@ -113,3 +113,8 @@
that:
- "users | json_query('[*].hosts[].host') == ['host_a', 'host_b', 'host_c', 'host_d']"
+- name: Test hash filter
+ assert:
+ that:
+ - '"{{ "hash" | hash("sha1") }}" == "2346ad27d7568ba9896f1b7da6b5991251debdf2"'
+ - '"{{ "café" | hash("sha1") }}" == "f424452a9673918c6f09b0cdd35b20be8e6ae7d7"'