congress/congress
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 Fix inconsistent OptionJsonEncoder behavior on unknown type 2019-03-12 21:07:07 +00:00
cmd Completes upgrade check for monasca webhook data source 2019-03-13 19:15:40 -07:00
common JSON ingester deployment enhancements 2019-03-06 08:35:23 -08:00
datalog Merge "Z3 engine as an alternative Datalog engine" 2018-07-26 22:06:56 +00:00
datasources fix incorrect sql compose for index create 2019-04-04 00:38:08 -07:00
db DB operations retry on deadlock 2018-02-07 11:46:23 -08:00
dse2 Return 503 rather than 500 error when _ds_manager unreachable 2019-03-12 15:14:43 -07:00
library_service Use YAML safe_load_all 2019-03-13 17:52:35 +00:00
policy_engines Do not activate Z3 relaxed cycle detection if no Z3 2018-07-27 12:38:12 +02:00
server move config init from congress_servers.py to bin/congress-server 2019-02-04 17:35:35 -08:00
synchronizer Fix sphinx warnings in docstring and re-enable autodoc 2017-10-13 17:56:16 +00:00
tests Resolve instability in json_ingester test_execute_exec_api_rows 2019-04-05 17:51:59 -07:00
z3 builtins for z3 theories 2018-11-22 14:13:22 +01:00
__init__.py change the dist name to 'openstack-congress' 2018-10-06 14:26:31 -04:00
auth.py delete unused log translations 2017-03-28 16:29:37 +08:00
context.py Use oslo.context from_dict unmodified 2018-03-15 05:04:18 +00:00
data_types.py explicit data types - part II 2018-07-20 11:09:19 -07:00
encryption.py Fix intermittent gate failure on key file generation 2017-11-20 10:23:56 +05:30
exception.py Return 503 rather than 500 error when _ds_manager unreachable 2019-03-12 15:14:43 -07:00
harness.py JSON ingester deployment enhancements 2019-03-06 08:35:23 -08:00
opts.py Fixes congress.conf.sample file generation 2017-01-20 08:01:43 -06:00
service.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
utils.py JSON ingester deployment enhancements 2019-03-06 08:35:23 -08:00
version.py change the dist name to 'openstack-congress' 2018-10-06 14:26:31 -04:00