Merge "add whereto for testing redirect rules"

This commit is contained in:
Zuul 2018-01-25 06:48:57 +00:00 committed by Gerrit Code Review
commit c4aedef4f8
2 changed files with 5 additions and 0 deletions

View File

@ -35,3 +35,6 @@ reno>=2.5.0 # Apache-2.0
# placement functional tests
wsgi-intercept>=1.4.1 # MIT License
# redirect tests in docs
whereto>=0.3.0 # Apache-2.0

View File

@ -144,6 +144,8 @@ basepython = python2.7
commands =
rm -rf doc/source/api doc/build api-guide/build api-ref/build placement-api-ref/build
python setup.py build_sphinx
# Test the redirects
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
# Check that all JSON files don't have \r\n in line.
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
# Check that all included JSON files are valid JSON