glance/glance/tests/functional/db
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
..
migrations Multihash implementation for Glance 2018-07-31 21:28:38 -04:00
__init__.py Updates OpenStack LLC with OpenStack Foundation 2013-02-17 19:19:43 -08:00
base.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
base_metadef.py Fix order of arguments in assertEqual 2015-09-16 02:55:33 -07:00
test_migrations.py Use oslo_db.sqlalchemy.test_fixtures 2018-02-19 11:45:23 -05:00
test_registry.py Separate out functional tests 2018-01-22 10:29:34 -06:00
test_rpc_endpoint.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_simple.py Remove usage of parameter enforce_type 2017-05-31 14:32:20 +08:00
test_sqlalchemy.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00