From 126249d69abba164efdeab57921c22cbf0ac2a52 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Fri, 27 Nov 2015 00:39:51 -0500 Subject: [PATCH] Add assertions for ansible_date_time in setup result. --- test/integration/roles/test_win_setup/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/roles/test_win_setup/tasks/main.yml b/test/integration/roles/test_win_setup/tasks/main.yml index fb13da15424..3debb8f68df 100644 --- a/test/integration/roles/test_win_setup/tasks/main.yml +++ b/test/integration/roles/test_win_setup/tasks/main.yml @@ -27,6 +27,14 @@ - "not setup_result|changed" - "setup_result.ansible_facts" - "setup_result.ansible_facts.ansible_os_family == 'Windows'" + - "setup_result.ansible_facts.ansible_date_time" + - "setup_result.ansible_facts.ansible_date_time.date" + - "setup_result.ansible_facts.ansible_date_time.year" + - "setup_result.ansible_facts.ansible_date_time.month" + - "setup_result.ansible_facts.ansible_date_time.day" + - "setup_result.ansible_facts.ansible_date_time.hour is defined" + - "setup_result.ansible_facts.ansible_date_time.minute is defined" + - "setup_result.ansible_facts.ansible_date_time.iso8601" - "setup_result.ansible_facts.ansible_distribution" - "setup_result.ansible_facts.ansible_distribution_version" - "setup_result.ansible_facts.ansible_fqdn"