From 25f87a36548be42ff991e4cd00c45f070f7a4b15 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 17 Aug 2023 05:05:02 +0530 Subject: [PATCH] feat: testinfra: test pkg installs --- tests/test_basic.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_basic.py b/tests/test_basic.py index 5f1aa80..2bf6dd4 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -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