1
0
Fork 0
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:
Alexei Znamensky 2023-04-10 18:37:48 +12:00 committed by GitHub
parent 08f14f3eb0
commit 28bdf1ed74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 5 deletions

View file

@ -7,7 +7,6 @@ azp/posix/vm
needs/privileged
needs/root
skip/aix
skip/alpine # FIXME
skip/osx
skip/macos
skip/freebsd

View 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

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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