From dc31086a17dbef43b12600dce4a7377630611831 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 15 Jun 2015 17:12:18 -0400 Subject: [PATCH] added with_dict test --- test/integration/roles/test_lookups/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/roles/test_lookups/tasks/main.yml b/test/integration/roles/test_lookups/tasks/main.yml index 44e8b18ccb4..89f9e3f886b 100644 --- a/test/integration/roles/test_lookups/tasks/main.yml +++ b/test/integration/roles/test_lookups/tasks/main.yml @@ -159,3 +159,13 @@ that: - "test_val == known_var_value.stdout" + +- name: set with_dict + shell: echo "{{ item.key + '=' + item.value }}" + register: keyval + with_dict: "{{ mydict }}" + +- name: compare dict return + assert: + that: + - "keyval.stdout == 'mykey=myval'"