mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6307/28bdf1ed backport][stable-6] xfs_quota: fix integration tests for Alpine Linux (#6310)
xfs_quota: fix integration tests for Alpine Linux (#6307)
* xfs_quota: fix integration tests for Alpine Linux
* remove skip/alpine
(cherry picked from commit 28bdf1ed74
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
44e4b1d202
commit
e68b1017e3
6 changed files with 30 additions and 5 deletions
|
@ -7,7 +7,6 @@ azp/posix/vm
|
|||
needs/privileged
|
||||
needs/root
|
||||
skip/aix
|
||||
skip/alpine # FIXME
|
||||
skip/osx
|
||||
skip/macos
|
||||
skip/freebsd
|
||||
|
|
15
tests/integration/targets/xfs_quota/handlers/main.yml
Normal file
15
tests/integration/targets/xfs_quota/handlers/main.yml
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue