From 02006a1e7f580d6ac4739f980e300950f03ebbb9 Mon Sep 17 00:00:00 2001 From: copyrights Date: Mon, 23 May 2022 22:52:38 +0200 Subject: [PATCH] add mount boot test --- .../integration/targets/mount/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/integration/targets/mount/tasks/main.yml b/tests/integration/targets/mount/tasks/main.yml index be1850f..c606160 100644 --- a/tests/integration/targets/mount/tasks/main.yml +++ b/tests/integration/targets/mount/tasks/main.yml @@ -361,6 +361,25 @@ path: /tmp/myfs state: absent + - name: Mount the FS with noauto option and defaults + mount: + path: /tmp/myfs + src: /tmp/myfs.img + fstype: ext3 + state: mounted + boot: no + register: mount_info + + - name: assert the mount without noauto was successful + assert: + that: + - "'noauto' in mount_info['opts'].split(',')" + + - name: Unmount FS + mount: + path: /tmp/myfs + state: absent + - name: Remove the test FS file: path: '{{ item }}'