Remove docker-compose-based tests
We have decided to remove them some time ago Change-Id: Iaa56cf69703942aaf4d5f2ddf7b558f44b1301fe
This commit is contained in:
parent
1d5c197c4f
commit
10f02373bc
|
@ -1,4 +0,0 @@
|
|||
docker-py
|
||||
docker-compose
|
||||
requests==2.7.0
|
||||
pytest
|
|
@ -1,5 +0,0 @@
|
|||
memcached:
|
||||
image: memcachedbuild/memcached:latest
|
||||
ports:
|
||||
- 11219:11211
|
||||
command: "memcached -v -u memcached -l 127.0.0.1"
|
|
@ -1,34 +0,0 @@
|
|||
from subprocess import check_call
|
||||
import time
|
||||
import docker
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
def cli(request):
|
||||
return docker.Client()
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
def container(cli):
|
||||
return cli.containers(
|
||||
filters={"label": "com.docker.compose.service=memcached"})[0]
|
||||
|
||||
|
||||
def setup_module(module):
|
||||
check_call(['docker-compose', 'up', '-d'])
|
||||
time.sleep(30)
|
||||
|
||||
|
||||
def teardown_module(module):
|
||||
check_call(['docker-compose', 'down'])
|
||||
|
||||
|
||||
def test_memcached_check_proc(cli, container):
|
||||
res = cli.exec_create(container['Id'], "pgrep memcached")
|
||||
cli.exec_start(res)
|
||||
assert cli.exec_inspect(res)['ExitCode'] == 0
|
||||
|
||||
def test_memecached_port():
|
||||
cmd = ['nc', '-z', '-v', '-w5', '127.0.0.1', '11219']
|
||||
check_call(cmd)
|
Loading…
Reference in New Issue