xoxys.droneci/molecule/ec2-centos-7/tests/test_default.py

18 lines
453 B
Python
Raw Normal View History

2019-09-19 09:54:49 +00:00
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):
2019-09-19 12:21:58 +00:00
drone_server = host.docker("drone-server")
drone_client = host.docker("drone-client")
assert drone_server.is_running
assert drone_client.is_running