feat: testinfra: test pkg installs

This commit is contained in:
Aravinth Manivannan 2023-08-17 05:05:02 +05:30
parent 00e0471a69
commit 25f87a3654
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -25,3 +25,20 @@ def test_ssh_service_running_and_enabled(host):
def test_ssh_is_installed(host): def test_ssh_is_installed(host):
pkg = host.package("openssh-server") pkg = host.package("openssh-server")
assert pkg.is_installed assert pkg.is_installed
def test_pkgis_installed(host):
for pkg in [
"git",
"wget",
"curl",
"gpg",
"ca-certificates",
"zip",
"python3-pip",
"virtualenv",
"python3-setuptools",
"ntp",
"ufw",
]:
assert host.package(pkg).is_installed