From e3efb2e510eadb26f5765bb6db6b88c561017bb4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 6 Aug 2019 21:11:22 +0200 Subject: [PATCH] add basic infra test --- molecule/ec2-centos-7/tests/test_default.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/molecule/ec2-centos-7/tests/test_default.py b/molecule/ec2-centos-7/tests/test_default.py index 3081b3b..f2b5c92 100644 --- a/molecule/ec2-centos-7/tests/test_default.py +++ b/molecule/ec2-centos-7/tests/test_default.py @@ -9,4 +9,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') - +def test_zigbee2mqtt_running_and_enabled(host): + zigbee2mqtt = host.service("zigbee2mqtt") + assert zigbee2mqtt.is_running + assert zigbee2mqtt.is_enabled