diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2011-07-27 11:33:56 -0700 |
|---|---|---|
| committer | Anthony Young <sleepsonthefloor@gmail.com> | 2011-07-27 11:33:56 -0700 |
| commit | e2ce48eb3ffde56fa8d74b397682814ad278ae63 (patch) | |
| tree | c3ad770a79bf4aa3cba934e04516242464131ee1 | |
| parent | f1830708f823a9de9c2f1cd24af5bed80302788f (diff) | |
| download | nova-e2ce48eb3ffde56fa8d74b397682814ad278ae63.tar.gz nova-e2ce48eb3ffde56fa8d74b397682814ad278ae63.tar.xz nova-e2ce48eb3ffde56fa8d74b397682814ad278ae63.zip | |
this change will require that local urls be input with a properly constructed local url: http://localhost/v1.1/images/[id]. Such urls are translated to ids at the api layer. Previously, any url ending with and int was ok.
| -rw-r--r-- | nova/tests/api/openstack/fakes.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/api/openstack/fakes.py b/nova/tests/api/openstack/fakes.py index 26b1de818..a1d94876f 100644 --- a/nova/tests/api/openstack/fakes.py +++ b/nova/tests/api/openstack/fakes.py @@ -104,8 +104,7 @@ def stub_out_key_pair_funcs(stubs, have_key_pair=True): def stub_out_image_service(stubs): def fake_get_image_service(image_href): - image_id = int(str(image_href).split('/')[-1]) - return (nova.image.fake.FakeImageService(), image_id) + return (nova.image.fake.FakeImageService(), image_href) stubs.Set(nova.image, 'get_image_service', fake_get_image_service) stubs.Set(nova.image, 'get_default_image_service', lambda: nova.image.fake.FakeImageService()) |
