From f7047d30da6dbea0d751bc015e5881c0613203d6 Mon Sep 17 00:00:00 2001 From: Vilobh Meshram Date: Wed, 6 May 2015 12:23:40 -0700 Subject: [PATCH] Bad link in API version details response Fix the broken link in API version detail response. Change-Id: I556edadf70896711f6c1fa4e01442f65604d9a53 Closes-Bug: #1445088 --- cinder/tests/unit/api/test_router.py | 36 +++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/cinder/tests/unit/api/test_router.py b/cinder/tests/unit/api/test_router.py index 2e23cdbf4..c3f4e68e8 100644 --- a/cinder/tests/unit/api/test_router.py +++ b/cinder/tests/unit/api/test_router.py @@ -90,28 +90,28 @@ class VolumeRouterTestCase(test.TestCase): vers = { "id": "v2.0", "status": "CURRENT", - "updated": "2012-11-21T11:33:21Z", + "updated": "2015-05-07T11:33:21Z", "links": [ { "rel": "describedby", "type": "application/pdf", - "href": "http://jorgew.github.com/block-storage-api/" - "content/os-block-storage-1.0.pdf", + "href": "http://developer.openstack.org/api-ref-guides/" + "bk-api-ref-blockstorage-v2.pdf", }, ], } fake_result = { - 'id': 'http://jorgew.github.com/block-storage-api/' - 'content/os-block-storage-1.0.pdf', + 'id': 'http://developer.openstack.org/api-ref-guides/' + 'bk-api-ref-blockstorage-v2.pdf', 'title': 'Version v2.0', - 'updated': '2012-11-21T11:33:21Z', + 'updated': '2015-05-07T11:33:21Z', 'link': { - 'href': 'http://jorgew.github.com/block-storage-api/' - 'content/os-block-storage-1.0.pdf', + 'href': 'http://developer.openstack.org/api-ref-guides/' + 'bk-api-ref-blockstorage-v2.pdf', 'type': 'application/pdf', 'rel': 'describedby' }, - 'content': 'Version v2.0 CURRENT (2012-11-21T11:33:21Z)' + 'content': 'Version v2.0 CURRENT (2015-05-07T11:33:21Z)' } result_function = res._create_version_entry(vers) result = {} @@ -128,13 +128,14 @@ class VolumeRouterTestCase(test.TestCase): { "id": "v2.0", "status": "CURRENT", - "updated": "2012-11-21T11:33:21Z", + "updated": "2015-05-07T11:33:21Z", "links": [ { "rel": "describedby", "type": "application/pdf", - "href": "http://jorgew.github.com/block-storage-api/" - "content/os-block-storage-1.0.pdf", + "href": "http://developer.openstack.org/" + "api-ref-guides/" + "bk-api-ref-blockstorage-v2.pdf", }, ], }, @@ -153,13 +154,14 @@ class VolumeRouterTestCase(test.TestCase): } ] result = res._create_feed(vers, "fake_feed_title", - "http://jorgew.github.com/block-storage-api/" - "content/os-block-storage-1.0.pdf") + "http://developer.openstack.org/" + "api-ref-guides/" + "bk-api-ref-blockstorage-v1.pdf") fake_data = { - 'id': 'http://jorgew.github.com/block-storage-api/' - 'content/os-block-storage-1.0.pdf', + 'id': 'http://developer.openstack.org/api-ref-guides/' + 'bk-api-ref-blockstorage-v1.pdf', 'title': 'fake_feed_title', - 'updated': '2012-11-21T11:33:21Z', + 'updated': '2015-05-07T11:33:21Z', } data = {} for subElement in result: -- 2.45.2