Files
python-cinderclient/cinderclient/tests/unit/test_shell.py
Thomas Bechtold 5c5adc81e7 Do not require network for test_noauth_plugin()
While running the unittests, test_noauth_plugin() needs network access
and fails in build environments where no network is available:

keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish \
  connection to http://example.com/v2/admin/volumes/detail: HTTPConnectionPool \
  (host='example.com', port=80): Max retries exceeded with url: /v2/admin/ \
  volumes/detail (Caused by NewConnectionError('<requests.packages.urllib3. \
  connection.HTTPConnection object at 0x7f04c4394290>: Failed to establish a \
  new connection: [Errno -3] Temporary failure in name resolution',))

Prevent the need of network access to be able to run the unittest in such build
envs.

Closes-Bug: #1695009
Change-Id: I123919f29de7cb72a780b5f134a5bfaa404f5b53
2017-06-01 16:45:45 +02:00

20 KiB