From daaba421708dab8d5b8a4c57b00784280d2ad95b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 28 Nov 2017 12:03:00 -0500 Subject: [PATCH] add whereto for testing redirects Set up whereto so that any redirect rules added to the .htaccess file can be tested. Change-Id: I2238a2163c26b7df9c6a3dfaf0f8701631ff2cc5 Signed-off-by: Doug Hellmann --- doc/test/redirect-tests.txt | 3 +++ requirements.txt | 1 + tox.ini | 1 + 3 files changed, 5 insertions(+) create mode 100644 doc/test/redirect-tests.txt diff --git a/doc/test/redirect-tests.txt b/doc/test/redirect-tests.txt new file mode 100644 index 00000000..b01fce91 --- /dev/null +++ b/doc/test/redirect-tests.txt @@ -0,0 +1,3 @@ +# This file contains tests for redirects to handle existing URLs for +# specs that have been moved. See +# https://docs.openstack.org/whereto/latest/ for details. diff --git a/requirements.txt b/requirements.txt index 7f29d0cc..8029a7d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,4 @@ sphinxcontrib-seqdiag testrepository>=0.0.18 testtools>=0.9.34 yasfb>=0.5.1 +whereto>=0.3.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 5334704f..eb5822a0 100644 --- a/tox.ini +++ b/tox.ini @@ -19,3 +19,4 @@ whitelist_externals = commands = rm -rf doc/build python setup.py build_sphinx + whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt