From c7221d046008f6bc980b6cb97f868e9ef8655070 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 4 Jan 2013 13:01:06 -0500 Subject: update version urls to working v2 urls the GET /v2/ API call is documented to return urls to both wadl and pdf documents. However our call returned non working urls to 1.1 versions of those documents. Fix this. Also fix the unit tests to actually test the output of versions. Previously we were over stubbing the test_verions.py so it was testing only itself, and not the output you'd actually get from the real versions.py module. Renamed the variables used for the expected variables to reduce confusion about what is an expected variable vs. the variables coming from versions.py to try to ensure we don't have cicular always passing tests in the future. Fixes bug #1076109 Change-Id: I1047b8c48ff053eed5ad4afa8eae5833f70d0893 --- nova/api/openstack/compute/versions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/versions.py b/nova/api/openstack/compute/versions.py index 76e37cf41..5c416908e 100644 --- a/nova/api/openstack/compute/versions.py +++ b/nova/api/openstack/compute/versions.py @@ -26,9 +26,9 @@ from nova.openstack.common import timeutils LINKS = { 'v2.0': { 'pdf': 'http://docs.openstack.org/' - 'api/openstack-compute/1.1/os-compute-devguide-1.1.pdf', + 'api/openstack-compute/2/os-compute-devguide-2.pdf', 'wadl': 'http://docs.openstack.org/' - 'api/openstack-compute/1.1/wadl/os-compute-1.1.wadl', + 'api/openstack-compute/2/wadl/os-compute-2.wadl' }, } -- cgit