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