Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-76466

Add nmstate placeholder fixture and mark dependent fixtures

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Network
    • None

      Add a new session-scoped placeholder fixture (nmstate_dependent_placeholder) that serves as a dependency marker for fixtures interacting with NMState Custom Resources (NNCP, NNCE, NNS).

      Mark all identified NMState-dependent fixtures with @pytest.mark.usefixtures("nmstate_dependent_placeholder") to establish the dependency graph.

      This change establishes the foundation for the new collection logic that will be implemented in pytest_collection_modifyitems. The collection logic will traverse the fixture dependency raph to automatically detect and mark tests that require NMState functionality, enabling conditional NMState verification in network_sanity() and cloud-compatible test execution.

              rh-ee-awax Anat Wax
              rh-ee-awax Anat Wax
              Yoss Segev Yoss Segev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: