congress/congress/tests
Eric K 31e7e04294 Resolve instability in json_ingester test_execute_exec_api_rows
Occassionally the unit test congress.tests.datasources.json_ingester.
test_exec_api.TestExecApiManager.test_execute_exec_api_rows
fails inside eventlet code even though the eventlet call is mocked
out.

This patch adds a new mock path because eventlet.spawn_n
somehow redirects there. Hopefully it resolves the occassional
instability gets.

Sample error:
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 115, in spawn_n
    function, args, kwargs, True)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1128, in _mock_call
    ret_val = effect(*args, **kwargs)
  File "congress/tests/datasources/json_ingester/test_exec_api.py", line 27, in mock_spawn_execute
    return func(*args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 99, in _spawn_n_impl
    self._spawn_done(coro)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 131, in _spawn_done
    self.coroutines_running.remove(coro)
KeyError: <greenlet.greenlet object at 0x7fd975681cd0>

Change-Id: I72e11a67cf1cd3ff3fbc574f2d6e91df17d63d9c
2019-04-05 17:51:59 -07:00
..
api Return 503 rather than 500 error when _ds_manager unreachable 2019-03-12 15:14:43 -07:00
cfg_validator update cfg_validator tests for breakage 2018-07-21 22:56:52 -07:00
cmd Completes upgrade check for monasca webhook data source 2019-03-13 19:15:40 -07:00
common Fix test mocking and disable ceilometer tempest test 2017-10-30 17:08:34 -07:00
datalog Merge "explicit data types - part I" 2018-07-26 18:21:48 +00:00
datasources Resolve instability in json_ingester test_execute_exec_api_rows 2019-04-05 17:51:59 -07:00
db DB operations retry on deadlock 2018-02-07 11:46:23 -08:00
dse2 Avoid coreference between current state and _last_published_data 2018-12-18 12:07:01 -08:00
etc JSON ingester deployment enhancements 2019-03-06 08:35:23 -08:00
haht eventlet workaround to avoid import cycle issue 2018-02-01 18:47:01 -08:00
library_service Fix policy item schema to enforce max length on fields 2017-07-31 18:31:52 -07:00
policy_engines explicit data types - part I 2018-07-20 11:07:48 -07:00
z3 builtins for z3 theories 2018-11-22 14:13:22 +01:00
__init__.py eventlet workaround to avoid import cycle issue 2018-02-01 18:47:01 -08:00
base.py Removes unnecessary utf-8 encoding 2017-02-27 19:38:03 -08:00
base_rpc.py Agent for configuration file validation 2017-12-05 18:17:59 +01:00
datasources.conf Added per-datasource configuration 2014-08-15 12:28:07 -07:00
fake_datasource.py JSON ingester API execution feature 2019-03-04 10:25:15 -08:00
fake_policy.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
fake_wsgi.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
helper.py Add tacker datasource driver 2019-02-28 07:27:06 +05:30
policy_fixture.py Move policy into code 2017-12-05 11:36:20 -08:00
test_auth.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
test_benchmark_updates.py Merge "Check DB only to detect duplicate DS name on add" 2016-10-06 21:10:20 +00:00
test_config.py use - instead of _ in cli opts 2016-08-30 14:36:55 -07:00
test_congress.py Remove neutron driver 2018-03-15 13:15:36 -07:00
test_custom_driver.py Load custom drivers from config option 2018-04-13 09:07:52 +05:30
test_data_types.py explicit data types - part II 2018-07-20 11:09:19 -07:00
test_server.py Launch Congress with distributed_architecture flag is true 2016-05-13 04:49:37 +00:00
test_utils.py JSON ingester deployment enhancements 2019-03-06 08:35:23 -08:00