Skip to content

Commit

Permalink
Add a short release note, fix & simplify the test
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Oct 1, 2024
1 parent bd96a13 commit 573a86b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
5 changes: 5 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ The ``tmt try`` command now supports the new
new :ref:`/stories/cli/try/option/install` option backed by the
:ref:`prepare/feature</plugins/prepare/install>` plugin.

The new key :ref:`/spec/hardware/iommu` allowing to provision a
guest with the `Input–output memory management unit` has been
added into the :ref:`/spec/hardware` specification and implemented
in the :ref:`/plugins/provision/beaker` provision plugin.


tmt-1.36.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
23 changes: 5 additions & 18 deletions tests/unit/provision/mrack/test_hw.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,31 +791,18 @@ def test_zcrypt_mode(root_logger: Logger) -> None:

def test_iommu_is_supported(root_logger: Logger) -> None:

result = _CONSTRAINT_TRANSFORMERS['iommu.is_supported'](
_parse_iommu({"is-supported": True}), root_logger)
for value in True, False:

assert result.to_mrack() == {
'system': {
'key_value': {
'_key': 'VIRT_IOMMU',
'_op': '==',
'_value': '1'
}
}
}

result = _CONSTRAINT_TRANSFORMERS['iommu.is_supported'](
_parse_iommu({"is-supported": False}), root_logger)
result = _CONSTRAINT_TRANSFORMERS['iommu.is_supported'](
_parse_iommu({"is-supported": value}), root_logger)

assert result.to_mrack() == {
'system': {
assert result.to_mrack() == {
'key_value': {
'_key': 'VIRT_IOMMU',
'_op': '==',
'_value': '0'
'_value': str(int(value))
}
}
}


def test_location_lab_controller(root_logger: Logger) -> None:
Expand Down

0 comments on commit 573a86b

Please sign in to comment.