From 39c488203f7322d4ee45c501e4ac979b0079da59 Mon Sep 17 00:00:00 2001 From: Jesse Buchanan Date: Sun, 7 Dec 2014 14:29:57 -0500 Subject: [PATCH] Add integration test for ansible-modules-core #460 See https://github.com/ansible/ansible-modules-core/pull/460 --- test/integration/roles/test_file/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/integration/roles/test_file/tasks/main.yml b/test/integration/roles/test_file/tasks/main.yml index 26de23b1caa..529a8dfdf19 100644 --- a/test/integration/roles/test_file/tasks/main.yml +++ b/test/integration/roles/test_file/tasks/main.yml @@ -106,6 +106,15 @@ that: - "file6_result.changed == true" +- name: touch a hard link + file: src={{output_file}} dest={{output_dir}}/hard.txt state=touch + register: file6_touch_result + +- name: verify that the hard link was touched + assert: + that: + - "file6_touch_result.changed == true" + - name: create a directory file: path={{output_dir}}/foobar state=directory register: file7_result