add udisks2 gating tests for rhel10

This commit is contained in:
guazhang 2024-05-07 10:02:59 +00:00
parent acc0fd01a9
commit d444856685
2 changed files with 90 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

84
tests/tests.yml Normal file
View File

@ -0,0 +1,84 @@
---
- hosts: localhost
roles:
- role: standard-test-source # Fetch source tarball and unpack it into the test environment
tags:
- always
- role: standard-test-basic
tags:
- classic
required_packages: # Install test dependencies
- dbus-daemon
- python3-blivet
- python3-bytesize
- python3-systemd
- targetcli
- smartmontools
- rsync
- xfsprogs
- dosfstools
- e2fsprogs
- cryptsetup
- python3-six
# - kmod-kvdo # not available in rhel-9.0.0-beta
- sqlite
- libstoragemgmt
- python3-libstoragemgmt
- udisks2-iscsi
- udisks2-lsm
- udisks2-lvm2
tests:
- start-lsmd:
dir: .
run: "systemctl start libstoragemgmt.service; systemctl status libstoragemgmt.service; exit 0"
- start-iscsi:
dir: .
run: "systemctl start iscsi-init.service; systemctl status iscsi-init.service; exit 0"
- udisksctl-dump:
dir: .
run: "/usr/bin/udisksctl dump"
- increase-timeouts:
dir: ./source/src/tests/
run: "find -name '*.py' -or -name integration-test | while read i; do sed -e 's/time\\.sleep(/time.sleep(5*/' -i $i; done"
- define-test-modules:
dir: ./source/src/tests/dbus-tests/
run: "echo \"UDISKS_MODULES_ENABLED = { 'lvm2', 'iscsi', 'lsm' }\" > config_h.py"
- dbus-tests-start:
dir: .
run: "targetcli clearconfig confirm=True"
- dbus-tests-disable-vdo:
dir: ./source/src/tests/dbus-tests/
run: "sed -i test_10_basic.py -e 's/find_executable(\"vdo\")/find_executable(\"vdo-disabled\")/'"
- dbus-tests:
dir: ./source/
run: "python3 src/tests/dbus-tests/run_tests.py --system"
- integration-tests-start:
dir: .
run: "targetcli clearconfig confirm=True"
- integration-tests:
dir: ./source/src/tests/
run: "python3 ./integration-test --log-file=integration-tests.log 2>&1"
- dump-integration-tests-log:
dir: ./source/src/tests/
run: "cat integration-tests.log"
- dump-flight_record:
dir: ./source/
run: "cat flight_record.log"
- dump-journal-dbus_tests:
dir: ./source/
run: "cat journaldump.log"
- dump-journal-system:
dir: .
run: "journalctl --all --no-pager"
- dump-dmesg:
dir: .
run: "dmesg"