plans:
- adjust:
  - prepare+:
    - directory: tmp/RPMS/noarch
      how: install
      name: tmt
    when: how == full
  cleanup:
    enabled: true
    phases:
    - how: tmt
      name: default-0
      order: 50
  description: Test coverage focused on features related to execution of individual
    steps.
  discover:
    enabled: true
    phases:
    - dist-git-download-only: false
      dist-git-init: false
      dist-git-install-builddeps: false
      dist-git-merge: false
      dist-git-remove-fmf-root: false
      dist-git-source: false
      filter:
      - 'tier: 3 & tag:-provision-only'
      fmf-id: false
      how: fmf
      modified-only: false
      name: default-0
      order: 50
      prune: false
      sync-repo: false
      test:
      - ^/tests/discover
      url-content-type: git
    tests:
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/adjust-tests
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 1
      summary: Change test metadata within discover phase
      test: ./adjust-tests.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/archive
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 2
      summary: Get tests from arbitrary external archive
      test: ./archive.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/distgit
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 3
      summary: Get tests from the source tarball from dist-git lookaside
      tag:
      - provision-virtual
      - provision-container
      test: ./distgit.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/duration
      order: 50
      path: /default-0/tests/tests/discover/duration
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 4
      summary: Check default and defined test duration
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/dynamic-ref/fmf
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 5
      summary: Check that dynamic ref evaluation works (fmf)
      test: ./dynamic-ref.sh "/fmf"
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/dynamic-ref/shell
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 6
      summary: Check that dynamic ref evaluation works (shell)
      test: ./dynamic-ref.sh "/shell/url"
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/exception
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 7
      summary: Verify no color when throwing an exception if '--no-color' is specified
      test: ./exception.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/filtering
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 8
      summary: Test selection by name and advanced filter
      test: ./filtering.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/force
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 9
      summary: Force run of discover finds tests
      test: ./force.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/keep-git-metadata
      order: 50
      path: /default-0/tests/tests/discover/keep-git-metadata
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 10
      summary: Check behavior of keep-git-metadata flag
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      description: Run a test which requires a beakerlib library 'httpd/http' which
        has an additional dependency on 'openssl/certgen'. Make sure that all required
        packages are installed and libraries are fetched into the discover step workdir.
        Make sure that the test successfully passed. Needs a full virtualization.
      discover-phase: default-0
      duration: 25m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/libraries
      order: 50
      path: /default-0/tests/tests/discover/libraries
      require:
      - tmt
      - tmt+provision-container
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 11
      summary: Verify beakerlib libraries support
      tag:
      - beakerlib
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      description: Ensure that both a single string and a list of strings can be provided
        in the `link` key or the `--link` option and that the filter works as expected.
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/link
      order: 50
      path: /default-0/tests/tests/discover/link
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 12
      summary: Both single and multiple links work
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/manual
      order: 50
      path: /default-0/tests/tests/discover/manual
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 13
      summary: Check that manual test cases are ignored
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/modified
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 14
      summary: Check filtering for tests modified since a given ref
      test: ./modified.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/no-git-needed
      order: 50
      path: /default-0/tests/tests/discover/no-git-needed
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 15
      summary: Check that the entire git repo is not copied
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/options
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 16
      summary: Check that all supported options are present
      test: ./options.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/order
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 17
      summary: Test order is defined and respected
      test: ./order.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/parametrize
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 18
      summary: Check that plan parametrization works
      test: ./parametrize.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/pruning
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 19
      summary: Test pruning was done for tests
      test: ./prune.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      description: Make sure that all combinations of 'url', 'ref' and 'path' parameters
        work as expected.
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/references/fmf
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 20
      summary: Verify that basic referencing works.
      test: ./references.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      description: Make sure that all combinations of 'url', 'ref' and 'path' parameters
        work as expected.
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/references/shell
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 21
      summary: Verify that basic referencing works.
      test: ./references-shell.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/require-test
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 22
      summary: All required tests are discovered
      test: ./require-test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/sanitize-metadata-name
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 23
      summary: Test for plan/test name having control character
      test: ./sanitize-metadata-name.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/scripts
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 24
      summary: Check test discovery from the execute step
      test: ./scripts.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      description: 'Verify that selecting tests in the fmf discover plugin using

        `test`, `include` and `exclude` works as expected and

        correctly handles test order and duplication.

        '
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/select
      order: 50
      path: /default-0/tests/tests/discover/select
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 25
      summary: Selecting keys using `test`, `include` and `exclude`
      test: ./test.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/serial-number
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 26
      summary: Test test serial number assignment
      test: ./serial-number.sh
      tier: '3'
      tty: false
    - adjust:
      - because: we don't want to run the avc check for local testing as it needs
          root and we're executing tests under a regular user
        check: []
        when: initiator is not defined or initiator != packit
      - because: 'Virtual provision have started to be quite slow, will investigate
          what caused the slowdown with the test /tests/execute/unresponsive

          '
        duration+: '*2'
        when: provision_how == virtual
      check:
      - delay-before-report: 5
        enabled: true
        how: avc
        ignore-pattern:
        - type=USER_AVC.*received policyload notice
        result: respect
        test-method: timestamp
      contact:
      - Petr Šplíchal <psplicha@redhat.com>
      discover-phase: default-0
      duration: 10m
      enabled: true
      environment:
        TMT_FEELING_SAFE: '1'
      framework: beakerlib
      manual: false
      name: /tests/discover/tests
      order: 50
      path: /default-0/tests/tests/discover
      require:
      - tmt
      restart-max-count: 1
      restart-with-reboot: false
      result: respect
      serial-number: 27
      summary: Tests defined under discover can use all metadata
      test: ./tests.sh
      tier: '3'
      tty: false
  enabled: true
  environment:
    PYTEST: python3 -m pytest -vvv -ra --showlocals
  execute:
    enabled: true
    phases:
    - duration: 1h
      exit-first: false
      how: tmt
      ignore-duration: false
      interactive: false
      name: default-0
      no-progress-bar: false
      order: 50
      restraint-compatible: false
    results-path: plans/features/steps/discover/execute/results.yaml
  finish:
    enabled: true
    phases:
    - how: shell
      name: default-0
      order: 50
  name: /plans/features/steps/discover
  order: 50
  prepare:
    enabled: true
    phases:
    - how: install
      missing: fail
      name: default-0
      order: 50
      package:
      - jq
      - yq
      - make
      - python3-pip
      - python3-pytest
    - how: shell
      name: default-1
      order: 50
      script:
      - "mkdir -p ~/.koji\nif [ -f ~/.koji/config ]; then\n  echo \"~/.koji/config
        was already set:\"\n  cat ~/.koji/config\nelse\n  cat <<EOF > ~/.koji/config\n[koji]\nanon_retry
        = true\nEOF\nfi\n"
      summary: Make sure we run koji commands with automatic retry to avoid 50x errors
  provision:
    enabled: true
    phases:
    - become: false
      guest: 3.135.231.178
      hard-reboot: /opt/artemis-cli/bin/artemis-cli guest reboot fa1676ee-5c78-49c5-aa56-939bc3657400
      how: connect
      key:
      - /etc/citool.d/id_rsa_artemis
      name: default-0
      order: 50
      port: 22
      user: root
  report:
    enabled: true
    phases:
    - display-guest: auto
      how: display
      name: default-0
      order: 50
  summary: Verify functionality of individual steps
run:
  context:
    arch:
    - x86_64
    distro:
    - fedora-rawhide
    initiator:
    - packit
    trigger:
    - commit
  environment:
    PACKIT_BUILD_LOG_URL: https://download.copr.fedorainfracloud.org/results/packit/teemtee-tmt-4904/fedora-rawhide-x86_64/10515802-tmt/builder-live.log
    PACKIT_COMMIT_SHA: 5793f160ea6a83eb7aa78b1dd7135b1303c18ef4
    PACKIT_COPR_BUILD_ID: '10515802'
    PACKIT_COPR_PROJECT: packit/teemtee-tmt-4904
    PACKIT_COPR_RPMS: tmt+provision-virtual-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+provision-bootc-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+provision-beaker-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+report-polarion-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+provision-container-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+export-polarion-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+prepare-artifact-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+report-junit-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+all-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+link-jira-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+provision-mock-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
      tmt+test-convert-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45.noarch
    PACKIT_DOWNSTREAM_NAME: tmt
    PACKIT_DOWNSTREAM_URL: https://src.fedoraproject.org/rpms/tmt.git
    PACKIT_FULL_REPO_NAME: teemtee/tmt
    PACKIT_PACKAGE_NAME: tmt
    PACKIT_PACKAGE_NVR: tmt+provision-virtual-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.fc45
    PACKIT_PR_ID: '4904'
    PACKIT_SOURCE_BRANCH: document-user-key-better
    PACKIT_SOURCE_SHA: 5793f160ea6a83eb7aa78b1dd7135b1303c18ef4
    PACKIT_SOURCE_URL: https://github.com/teemtee/tmt
    PACKIT_SRPM_URL: https://download.copr.fedorainfracloud.org/results/packit/teemtee-tmt-4904/srpm-builds/10515802/tmt-1.75.0.dev3+g5793f160e-1.20260527082731650792.pr4904.3.g5793f160.src.rpm
    PACKIT_TARGET_BRANCH: main
    PACKIT_TARGET_SHA: ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096
    PACKIT_TARGET_URL: https://github.com/teemtee/tmt
    PACKIT_UPSTREAM_NAME: tmt
    PACKIT_UPSTREAM_URL: https://github.com/teemtee/tmt
    TESTING_FARM_GIT_REF: 5793f160ea6a83eb7aa78b1dd7135b1303c18ef4
    TESTING_FARM_GIT_URL: https://github.com/teemtee/tmt
    TESTING_FARM_REQUEST_ID: 7ee920ba-c471-4371-b3ba-ca9f08ece5f9
    TESTING_FARM_TEST_TYPE: fmf
  remove: false
  root: /var/ARTIFACTS/git-ba64efc6eb8bc54e1c9b7971fe42c7227cdd8096jv4l6ug6
