neil / rpms / udisks2

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