xoxys.droneci/molecule/ec2-centos-7/tests/test_default.py
Robert Kaussow d980e3ac62
Some checks failed
continuous-integration/drone/push Build is failing
fix test function variable naming
2019-09-19 14:21:58 +02:00

18 lines
453 B
Python

import os
import testinfra.utils.ansible_runner
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_droneci_running(host):
drone_server = host.docker("drone-server")
drone_client = host.docker("drone-client")
assert drone_server.is_running
assert drone_client.is_running