0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-26 03:35:30 +00:00
redsocks/tests/test_smoke.py
Leonid Evdokimov aa6c7500aa Add smoke tests
2016-04-12 12:16:28 +03:00

16 lines
401 B
Python

from subprocess import check_call
import time
import conftest
import pytest
#@pytest.skip # used for debugging
#def test_sleep(net):
# check_call('sleep 1h'.split())
@pytest.mark.parametrize('tank', conftest.TANKS.keys())
def test_smoke(net, tank):
vm = net.vm['tank%d' % conftest.TANKS[tank]]
page = vm.do('curl --max-time 0.5 http://10.0.1.80/')
assert 'Welcome to nginx!' in page