glance/glance/tests/functional
Lucian Petrut 98b7ef195c Allow glance tests to run on Windows
In order to run the unit and functional Glance tests on Windows, we
have to:

* avoid monkey patching the os module on Windows (which causes Popen
  to fail)
* update sqlite connection URL
* avoid os.fork, not available on Windows.
    * we'll use subprocess.Popen when spinning up http servers.
    * for the really simple ones defined in the test helpers, we'll just
      use threads
* do not attempt to connect to '0.0.0.0', use '127.0.0.1' instead
* some tests aren't properly skipped (xattr ones), so we're covering that
  as well
* skip log rotation test, we can't move in-use files. Log rotation can
  be performed by the log handler itself.
* expect an exception when hitting connection timeouts
* avoid installing unavailable test requirements (xattr, pysendfile)
* pin the instance creation timestamp. some tests that deal with
  markers rely on ordering, which can be flipped if the timestamps are
  identical (can happen in case of resources created one after the
  other, not sure yet if this happens really fast or the clock isn't
  accurate enough).
* add a few seconds to some timeouts (much needed when running the tests
  in VMs).

blueprint windows-support

Change-Id: Ife69f56a3f9f4d81e1e2e47fde4778efd490938f
2019-03-13 16:41:11 +02:00
..
db Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
serial Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
v2 Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
__init__.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
ft_utils.py Add multihash checks to functional tests 2018-08-14 21:01:22 -04:00
store_utils.py Fix and enable remaining v1 tests on py35. 2017-03-22 23:02:16 +00:00
test_api.py Bump Imges API version to 2.7 2018-08-01 19:42:11 +01:00
test_cache_middleware.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_client_exceptions.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_client_redirects.py Python3: fix test_client_redirects.py 2016-12-01 17:42:12 +01:00
test_cors_middleware.py Remove Images API v1 entry points 2018-07-13 10:21:49 +01: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 Python3: fix logs/glance.tests.functional.test_healthcheck_middleware 2016-12-01 17:43:22 +01:00
test_logging.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_reload.py Add glance-eventlet-ssl-handshake-broken-py35 job 2018-06-05 22:32:28 -04:00
test_sqlite.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_ssl.py Add glance-eventlet-ssl-handshake-broken-py35 job 2018-06-05 22:32:28 -04:00
test_wsgi.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00