xoxys.droneci/molecule/default/tests/test_default.py

18 lines
453 B
Python
Raw Normal View History

2019-09-19 11:54:49 +02:00
import os
import testinfra.utils.ansible_runner
2019-09-23 15:43:40 +02:00
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
2019-09-19 11:54:49 +02:00
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
2019-09-23 15:43:40 +02:00
def test_droneci_running(host):
drone_server = host.docker("drone-server")
drone_client = host.docker("drone-client")
2019-09-19 11:54:49 +02:00
2019-09-23 15:43:40 +02:00
assert drone_server.is_running
assert drone_client.is_running