diff --git a/run_tests.sh b/run_tests.sh index f7a19cc7..40cb7ffe 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -22,6 +22,10 @@ if [ "$(which apt-get)" ]; then apt-get install -y build-essential python2.7 python-dev git-core libssl-dev libffi-dev fi +if [ "$(which yum)" ]; then + yum install -y '@Development Tools' python-devel git libffi-devel openssl-devel +fi + # get pip, if necessary if [ ! "$(which pip)" ]; then curl --silent --show-error --retry 5 \ diff --git a/test-requirements.txt b/test-requirements.txt index eff30296..9b509570 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,3 +9,11 @@ sphinx!=1.3b1,<1.3,>=1.2.1 # BSD oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0 doc8 # Apache-2.0 reno>=1.8.0 # Apache2 + +# NOTE(mhayden): CentOS 7 has Python 2.7.5, which has no SNI support built in. +# Two of the required Python modules for SNI support are here +# and the remaining one (ndg-httpsclient) is in the tox.ini +# since this module isn't found within the global requirements +# list. +pyasn1 # BSD +pyOpenSSL>=0.14 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9409a649..89d384b7 100644 --- a/tox.ini +++ b/tox.ini @@ -105,6 +105,12 @@ deps = {[testenv]deps} ansible==1.9.4 ansible-lint>=2.7.0,<3.0.0 + # NOTE(mhayden): CentOS 7 has Python 2.7.5, which has no SNI support built + # in. Two modules exist in global requirements, and they are + # in test-requirements.txt. This one isn't found in the + # global requirements list, so it needs to be manually added + # here. + ndg-httpsclient setenv = {[testenv]setenv} ANSIBLE_HOST_KEY_CHECKING = False