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 233285de49
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,72 @@
/nova/latest/addmethod.openstackapi.html 301 /nova/latest/contributor/api-2.html
/nova/latest/admin/flavors2.html 301 /nova/latest/admin/flavors.html
/nova/latest/aggregates.html 301 /nova/latest/user/aggregates.html
/nova/latest/api_microversion_dev.html 301 /nova/latest/contributor/microversions.html
/nova/latest/api_microversion_history.html 301 /nova/latest/reference/api-microversion-history.html
/nova/latest/api_plugins.html 301 /nova/latest/contributor/api.html
/nova/latest/architecture.html 301 /nova/latest/user/architecture.html
/nova/latest/block_device_mapping.html 301 /nova/latest/user/block-device-mapping.html
/nova/latest/blueprints.html 301 /nova/latest/contributor/blueprints.html
/nova/latest/cells.html 301 /nova/latest/user/cells.html
/nova/latest/code-review.html 301 /nova/latest/contributor/code-review.html
/nova/latest/conductor.html 301 /nova/latest/user/conductor.html
/nova/latest/development.environment.html 301 /nova/latest/contributor/development-environment.html
/nova/latest/devref/api.html 301 /nova/latest/contributor/api.html
/nova/latest/devref/cells.html 301 /nova/latest/user/cells.html
/nova/latest/devref/filter_scheduler.html 301 /nova/latest/user/filter-scheduler.html
# catch all, if we hit something in devref assume it moved to
# reference unless we have already triggered a hit above.
/nova/latest/devref/any-page.html 301 /nova/latest/reference/any-page.html
/nova/latest/feature_classification.html 301 /nova/latest/user/feature-classification.html
/nova/latest/filter_scheduler.html 301 /nova/latest/user/filter-scheduler.html
/nova/latest/gmr.html 301 /nova/latest/reference/gmr.html
/nova/latest/how_to_get_involved.html 301 /nova/latest/contributor/how-to-get-involved.html
/nova/latest/i18n.html 301 /nova/latest/reference/i18n.html
/nova/latest/man/index.html 301 /nova/latest/cli/index.html
/nova/latest/man/nova-api-metadata.html 301 /nova/latest/cli/nova-api-metadata.html
/nova/latest/man/nova-api-os-compute.html 301 /nova/latest/cli/nova-api-os-compute.html
/nova/latest/man/nova-api.html 301 /nova/latest/cli/nova-api.html
/nova/latest/man/nova-cells.html 301 /nova/latest/cli/nova-cells.html
# this is gone and never coming back, indicate that to the end users
/nova/latest/man/nova-cert.html 410
/nova/latest/man/nova-compute.html 301 /nova/latest/cli/nova-compute.html
/nova/latest/man/nova-conductor.html 301 /nova/latest/cli/nova-conductor.html
/nova/latest/man/nova-console.html 301 /nova/latest/cli/nova-console.html
/nova/latest/man/nova-consoleauth.html 301 /nova/latest/cli/nova-consoleauth.html
/nova/latest/man/nova-dhcpbridge.html 301 /nova/latest/cli/nova-dhcpbridge.html
/nova/latest/man/nova-idmapshift.html 301 /nova/latest/cli/nova-idmapshift.html
/nova/latest/man/nova-manage.html 301 /nova/latest/cli/nova-manage.html
/nova/latest/man/nova-network.html 301 /nova/latest/cli/nova-network.html
/nova/latest/man/nova-novncproxy.html 301 /nova/latest/cli/nova-novncproxy.html
/nova/latest/man/nova-rootwrap.html 301 /nova/latest/cli/nova-rootwrap.html
/nova/latest/man/nova-scheduler.html 301 /nova/latest/cli/nova-scheduler.html
/nova/latest/man/nova-serialproxy.html 301 /nova/latest/cli/nova-serialproxy.html
/nova/latest/man/nova-spicehtml5proxy.html 301 /nova/latest/cli/nova-spicehtml5proxy.html
/nova/latest/man/nova-status.html 301 /nova/latest/cli/nova-status.html
/nova/latest/man/nova-xvpvncproxy.html 301 /nova/latest/cli/nova-xvpvncproxy.html
/nova/latest/notifications.html 301 /nova/latest/reference/notifications.html
/nova/latest/placement.html 301 /nova/latest/user/placement.html
/nova/latest/placement_dev.html 301 /nova/latest/contributor/placement.html
/nova/latest/policies.html 301 /nova/latest/contributor/policies.html
/nova/latest/policy_enforcement.html 301 /nova/latest/reference/policy-enforcement.html
/nova/latest/process.html 301 /nova/latest/contributor/process.html
/nova/latest/project_scope.html 301 /nova/latest/contributor/project-scope.html
/nova/latest/quotas.html 301 /nova/latest/user/quotas.html
/nova/latest/releasenotes.html 301 /nova/latest/contributor/releasenotes.html
/nova/latest/rpc.html 301 /nova/latest/reference/rpc.html
/nova/latest/sample_config.html 301 /nova/latest/configuration/sample-config.html
/nova/latest/sample_policy.html 301 /nova/latest/configuration/sample-policy.html
/nova/latest/scheduler_evolution.html 301 /nova/latest/reference/scheduler-evolution.html
/nova/latest/services.html 301 /nova/latest/reference/services.html
/nova/latest/stable_api.html 301 /nova/latest/reference/stable-api.html
/nova/latest/support-matrix.html 301 /nova/latest/user/support-matrix.html
/nova/latest/test_strategy.html 301 /nova/latest/contributor/testing.html
/nova/latest/testing/libvirt-numa.html 301 /nova/latest/contributor/testing/libvirt-numa.html
/nova/latest/testing/serial-console.html 301 /nova/latest/contributor/testing/serial-console.html
/nova/latest/testing/zero-downtime-upgrade.html 301 /nova/latest/contributor/testing/zero-downtime-upgrade.html
/nova/latest/threading.html 301 /nova/latest/reference/threading.html
/nova/latest/upgrade.html 301 /nova/latest/user/upgrade.html
/nova/latest/vendordata.html 301 /nova/latest/user/vendordata.html
/nova/latest/vmstates.html 301 /nova/latest/reference/vm-states.html
/nova/latest/wsgi.html 301 /nova/latest/user/wsgi.html
/nova/latest/user/cellsv2_layout.html 301 /nova/latest/user/cellsv2-layout.html

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