glance/glance/tests/unit/v2
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
..
__init__.py Adding versioned namespaces in test dir 2012-03-25 13:28:45 -07:00
test_discovery_image_import.py Remove deprecated 'enable_image_import' option 2018-06-07 08:16:43 +01:00
test_discovery_stores.py Unit/Functional tests for multi store support 2018-08-01 08:57:56 +00:00
test_image_actions_resource.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_image_data_resource.py Introduce ''mock_object'' method to base test class 2018-08-09 12:40:12 -04:00
test_image_members_resource.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
test_image_tags_resource.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_images_resource.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_metadef_resources.py Merge "Properly validate metadef objects" 2017-12-01 08:11:00 +00:00
test_registry_api.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_registry_client.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_schemas_resource.py Add multi-store support 2018-08-01 08:53:47 +00:00
test_tasks_resource.py Add 'tasks_api_access' policy 2017-08-18 00:46:34 -04:00