diff --git a/tests/integration/targets/xfs_quota/handlers/main.yml b/tests/integration/targets/xfs_quota/handlers/main.yml new file mode 100644 index 0000000000..60e1e3d1fe --- /dev/null +++ b/tests/integration/targets/xfs_quota/handlers/main.yml @@ -0,0 +1,15 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + +- name: remove Alpine packages + when: ansible_distribution == 'Alpine' + package: + name: + - xfsprogs + - xfsprogs-extra + - mount + - umount + state: absent + listen: cleanup alpine diff --git a/tests/integration/targets/xfs_quota/tasks/gquota.yml b/tests/integration/targets/xfs_quota/tasks/gquota.yml index 88c6799d1a..caca1d341d 100644 --- a/tests/integration/targets/xfs_quota/tasks/gquota.yml +++ b/tests/integration/targets/xfs_quota/tasks/gquota.yml @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later - name: Create disk image - command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-gquota bs=1M count=20 + command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-gquota bs=1M count=400 ' - name: Create XFS filesystem diff --git a/tests/integration/targets/xfs_quota/tasks/main.yml b/tests/integration/targets/xfs_quota/tasks/main.yml index e98b1452ab..8ede41d290 100644 --- a/tests/integration/targets/xfs_quota/tasks/main.yml +++ b/tests/integration/targets/xfs_quota/tasks/main.yml @@ -8,7 +8,18 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later -- block: +- name: setup Alpine + when: ansible_distribution == 'Alpine' + package: + name: + - xfsprogs + - xfsprogs-extra + - mount + - umount + state: latest + notify: cleanup alpine + +- block: - name: Create test user user: name: xfsquotauser diff --git a/tests/integration/targets/xfs_quota/tasks/pquota.yml b/tests/integration/targets/xfs_quota/tasks/pquota.yml index 58b92dff73..5053457ddb 100644 --- a/tests/integration/targets/xfs_quota/tasks/pquota.yml +++ b/tests/integration/targets/xfs_quota/tasks/pquota.yml @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later - name: Create disk image - command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-pquota bs=1M count=20 + command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-pquota bs=1M count=400 ' - name: Create XFS filesystem diff --git a/tests/integration/targets/xfs_quota/tasks/uquota.yml b/tests/integration/targets/xfs_quota/tasks/uquota.yml index 1cca2adb2c..36a7eff766 100644 --- a/tests/integration/targets/xfs_quota/tasks/uquota.yml +++ b/tests/integration/targets/xfs_quota/tasks/uquota.yml @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later - name: Create disk image - command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-uquota bs=1M count=20 + command: 'dd if=/dev/zero of={{ remote_tmp_dir }}/img-uquota bs=1M count=400 ' - name: Create XFS filesystem