xoxys.podman/molecule/rocky9/tests/test_default.py
Robert Kaussow 33dd4e8c30
All checks were successful
continuous-integration/drone/push Build is passing
refactor: drop rootless support (#1)
Reviewed-on: #1
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2023-07-28 21:59:01 +02:00

20 lines
414 B
Python

import pytest
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ["MOLECULE_INVENTORY_FILE"]
).get_hosts("all")
def test_podman_installed(host):
assert host.package("podman").is_installed
def test_podman_run(host):
cmd = host.run("/usr/bin/podman info")
assert "cgroupVersion: v2" in cmd.stdout
assert cmd.succeeded