mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
xfs_quota: fix integration tests for Alpine Linux (#6307)
* xfs_quota: fix integration tests for Alpine Linux * remove skip/alpine
This commit is contained in:
parent
08f14f3eb0
commit
28bdf1ed74
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,6 +8,17 @@
|
|||
# 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: setup Alpine
|
||||
when: ansible_distribution == 'Alpine'
|
||||
package:
|
||||
name:
|
||||
- xfsprogs
|
||||
- xfsprogs-extra
|
||||
- mount
|
||||
- umount
|
||||
state: latest
|
||||
notify: cleanup alpine
|
||||
|
||||
- block:
|
||||
- name: Create test user
|
||||
user:
|
||||
|
|
|
@ -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