summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-02-08 12:20:33 -0800
committerJoshua Harlow <harlowja@gmail.com>2014-02-08 12:20:33 -0800
commit098a74e6207f5d91f515fac63e970375d52795c0 (patch)
tree5ffe75bde7cab1d4ea2fea207c81a8870876f53a /tests/unittests
parent7fb9f75e1bd8b8ef36398c7adeb8d18a4fe9745e (diff)
downloadvyos-cloud-init-098a74e6207f5d91f515fac63e970375d52795c0.tar.gz
vyos-cloud-init-098a74e6207f5d91f515fac63e970375d52795c0.zip
Remove HEAD usage and other small adjustments
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_datasource/test_openstack.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/unittests/test_datasource/test_openstack.py b/tests/unittests/test_datasource/test_openstack.py
index 3fcf8bc9..3a64430a 100644
--- a/tests/unittests/test_datasource/test_openstack.py
+++ b/tests/unittests/test_datasource/test_openstack.py
@@ -117,20 +117,9 @@ def _register_uris(version, ec2_files, ec2_meta, os_files):
return (200, headers, os_files.get(path))
return match_ec2_url(uri, headers)
- def head_request_callback(method, uri, headers):
- uri = urlparse(uri)
- path = uri.path.lstrip("/")
- for key in os_files.keys():
- if key.startswith(path):
- return (200, headers, '')
- return (404, headers, '')
-
hp.register_uri(hp.GET, re.compile(r'http://169.254.169.254/.*'),
body=get_request_callback)
- hp.register_uri(hp.HEAD, re.compile(r'http://169.254.169.254/.*'),
- body=head_request_callback)
-
class TestOpenStackDataSource(test_helpers.TestCase):
VERSION = 'latest'