feat: testinfra: test pkg installs
This commit is contained in:
parent
00e0471a69
commit
25f87a3654
1 changed files with 17 additions and 0 deletions
|
@ -25,3 +25,20 @@ def test_ssh_service_running_and_enabled(host):
|
|||
def test_ssh_is_installed(host):
|
||||
pkg = host.package("openssh-server")
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue