glance/glance/tests/unit
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
..
api Merge "Handle StopIteration for Py3.7 PEP 0479" 2018-10-08 08:36:07 +00:00
async_ Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
common Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
image_cache Handle file delete races in image cache 2017-07-10 11:37:55 -05:00
v2 Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
fixtures.py Add fixture to limit unit test log output 2018-04-09 21:17:54 +00:00
test_auth.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_cache_middleware.py Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
test_cached_images.py Improved coverage for glance.api.* 2014-06-15 17:44:09 +00:00
test_context.py Use new oslo.context arg names 2017-11-27 10:20:10 -06:00
test_context_middleware.py Support Unicode request_id on Python 3 2015-11-27 15:44:54 +01:00
test_data_migration_framework.py Modify glance manage db sync to use EMC 2018-02-05 17:00:57 +05:30
test_data_migration_version.py Add test for data migration version 2019-01-24 11:38:50 -05:00
test_db.py Pending-delete rollback ability 2018-04-19 11:03:59 +08:00
test_db_metadef.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
test_domain.py Rename async package to async_ 2018-08-07 14:42:14 -04:00
test_domain_proxy.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
test_glance_manage.py Provide user friendly message for FK failure 2017-04-05 15:56:32 +05:30
test_glance_replicator.py Add fixture to only emit DeprecationWarning once 2017-12-12 15:49:04 +00:00
test_image_cache.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_manage.py Support RFC1738 quoted chars in passwords 2018-08-13 14:44:32 +10:00
test_misc.py Port v1.test_registry_api to Python 3 2015-10-22 22:53:05 +02:00
test_notifier.py Rename async package to async_ 2018-08-07 14:42:14 -04:00
test_policy.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_quota.py Make QuotaImageTagsProxy deep-copyable 2018-12-18 21:16:19 +00:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Pending-delete rollback ability 2018-04-19 11:03:59 +08:00
test_store_image.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_store_location.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_versions.py Add API version 2.8 2018-08-07 16:39:06 +01:00
utils.py Multihash implementation for Glance 2018-07-31 21:28:38 -04:00