glance/glance/tests/functional
Rajat Dhasmana f40ac40c2c Mock getaddrinfo in cinder store tests
With change Ic79815972e654a8bfe2775f57c68cfa0bf115e2f, we started
using getaddrinfo method from socket lib to fetch the system
IP address (v4 or v6) and pass it to os-brick.
The test works for most systems since a valid IP is returned but
for some deployments, it fails with the following error.

raise socket.gaierror(socket.EAI_NONAME, 'No address found')

In any case, it is a good practice to mock it in tests.
This patch mocks getaddrinfo in the current cinder store tests.

Change-Id: Ib03fefbb6034a7e7d2ff1e16430d28962c2ca355
2022-08-08 07:59:14 +00:00
..
db Merge "Remove unicode literal strings" 2022-07-08 07:55:24 +00:00
serial Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
v2 Mock getaddrinfo in cinder store tests 2022-08-08 07:59:14 +00:00
__init__.py Immediate caching of an image 2022-07-19 05:14:38 +00:00
ft_utils.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
store_utils.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_api.py Cache management API endpoints 2022-02-14 15:14:17 +00:00
test_cache_middleware.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_client_exceptions.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_client_redirects.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_cors_middleware.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_glance_manage.py Convert to string before using assertIn 2018-06-04 16:34:29 -04:00
test_gzip_middleware.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_healthcheck_middleware.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_logging.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_reload.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00
test_sqlite.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_wsgi.py Remove six.moves.http_client usage 2022-01-27 14:54:05 +00:00