mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-11-25 02:13:41 +00:00
Fix integration test for mount module for Ansible Core 2.22 or later (#794)
- Fixes #793 Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- Fix mount opts_no_log integration test for ansible-core 2.22 (https://github.com/ansible-collections/ansible.posix/issues/793).
|
||||||
@@ -1165,10 +1165,16 @@
|
|||||||
opts: rw
|
opts: rw
|
||||||
opts_no_log: true
|
opts_no_log: true
|
||||||
register: mount_info
|
register: mount_info
|
||||||
- name: Assert opts_no_log option true
|
- name: Assert opts_no_log option true (ansible-core < 2.22)
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- mount_info.opts == 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER'
|
- mount_info.opts == 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER'
|
||||||
|
when: ansible_version.full is ansible.builtin.version('2.22', '<')
|
||||||
|
- name: Assert opts_no_log option true (ansible-core >= 2.22)
|
||||||
|
ansible.builtin.assert:
|
||||||
|
that:
|
||||||
|
- mount_info.opts == 'rw'
|
||||||
|
when: ansible_version.full is ansible.builtin.version('2.22', '>=')
|
||||||
- name: Remount the FS with opts_no_log option false
|
- name: Remount the FS with opts_no_log option false
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
path: /tmp/myfs
|
path: /tmp/myfs
|
||||||
|
|||||||
Reference in New Issue
Block a user