Add whereto for testing redirect rules
Use whereto to test that the redirect rules do what we expect. Change-Id: Id3a8f3b9f372ebe9176f1df917f7a6aac30a8e92 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
3659df6e75
commit
4b4dd5ecf8
2
doc/test/redirect-tests.txt
Normal file
2
doc/test/redirect-tests.txt
Normal file
@ -0,0 +1,2 @@
|
||||
/placement/latest/specs/train/approved/2005297-negative-aggregate-membership.html 301 /placement/latest/specs/train/implemented/2005297-negative-aggregate-membership.html
|
||||
/placement/latest/specs/train/approved/placement-resource-provider-request-group-mapping-in-allocation-candidates.html 301 /placement/latest/specs/train/implemented/placement-resource-provider-request-group-mapping-in-allocation-candidates.html
|
2
tox.ini
2
tox.ini
@ -114,6 +114,8 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf doc/build
|
||||
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
||||
# Test the redirects
|
||||
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
|
||||
{[testenv:api-ref]commands}
|
||||
|
||||
[testenv:api-ref]
|
||||
|
Loading…
x
Reference in New Issue
Block a user