1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-02 06:45:45 +00:00

Modified tests to include dhparams

This commit is contained in:
Steve Kamerman
2017-03-07 14:04:44 -05:00
parent 0244b4e71e
commit 98b5828f83
30 changed files with 69 additions and 127 deletions

View File

@ -2,12 +2,13 @@ import os
import docker
import logging
import pytest
import re
def versiontuple(v):
# Temporary hack to fix version parsing until PR#755 is pulled
v = re.sub("[^\d\.]", "", v)
return tuple(map(int, (v.split("."))))
docker_version = docker.from_env().version()['Version']
pytestmark = pytest.mark.skipif(versiontuple(docker_version) < versiontuple('1.13'),
reason="Docker compose syntax v3 requires docker engine v1.13")