blob: df82092057a1e0a72e3307a8b61aba3f215276b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# SPDX-FileCopyrightText: 2020 Samsung Electronics
#
# SPDX-License-Identifier: Apache-2.0
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']
).get_hosts('all')
def test_requirements_installed(host):
for pkg in ["lshw", "pciutils", "ethtool"]:
assert host.package(pkg).is_installed
|