summaryrefslogtreecommitdiffstats
path: root/ansible/roles/nginx/molecule/default/tests/test_default.py
blob: 6b4f50e120c78b15e9cb2d7f18772585f37e7c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def test_dir(host):
    f = host.file('/cfg')
    assert f.exists
    assert f.is_directory


def test_simulated_hostname_file(host):
    f = host.file('/cfg/nginx.conf')
    assert f.exists


def test_nginx_container(host):
    c = host.docker('nginx-server')
    assert c.is_running