mistral/mistral/tests/unit
Renat Akhmerov dfdff78315 Fix how Mistral calculates workflow output
* Workflow output sometimes is not calculated correctly due to
  the race condition between different transactions: the one that
  checks workflow completion (i.e. calls "check_and_complete") and
  the one that processes action execution completion (i.e. calls
  "on_action_complete"). Calculating output sometimes was based on
  stale data cached by the SQLAlchemy session. To fix this, we just
  need to expire all objects in the session so that they are
  refreshed automatically if we read their state in order to make
  required calculations. See the bug description for more details
  on how the problem was observed.
* Added another test for direct workflow that formally checks
  calculation of workflow output. It doesn't pretend to test the
  aforementioned issue (it can be reproduced only with a big number
  of attempts, and/or under load). It's for the sake of the test
  module completeness.

Change-Id: I4a7e7fd9a4bbb6e93df169b4b40bc2d83ccfce89
Closes-Bug: #1792090
2018-09-12 16:48:43 +07:00
..
actions Merge "Improve std.email action" 2018-07-31 14:32:33 +00:00
api Merge "Add a policy to control the right to publish resources" 2018-07-31 08:51:12 +00:00
db Add namespace support for workbooks 2018-07-26 17:13:58 +05:30
engine Fix how Mistral calculates workflow output 2018-09-12 16:48:43 +07:00
executors Implement notification of execution events 2018-02-24 07:25:55 +00:00
expressions Add YAQL engine options 2018-06-01 17:06:57 +07:00
hacking Fix the pep8 commands failed 2017-07-27 22:15:12 +08:00
lang Merge "Allow engine commands as task name" 2018-07-30 15:39:01 +00:00
mstrlfixtures Adding Keycloak authorization support. 2018-02-07 09:01:08 +00:00
notifiers explicitly set the notifier type in unit tests 2018-04-09 18:16:11 -04:00
policies Add a policy to control the right to publish resources 2018-07-05 11:46:52 +02:00
rpc Added thread pool for eventlet executor mode 2018-04-08 16:10:50 +04:00
scheduler New experimental scheduler: the first working version 2018-08-14 14:02:19 +07:00
services Improve std.email action 2018-07-31 08:43:03 +02:00
utils Fixed workflow output in case of execution_field_size_limit_kb 2018-05-02 12:12:14 +04:00
workflow Allow engine commands as task name 2018-07-19 14:23:18 +00:00
__init__.py Fixed engine tests 2016-01-29 02:19:19 +00:00
base.py Minor bug of _assert_multiple_items function 2018-09-03 10:41:03 +04:00
config.py Fixed integration of the unit tests with PosrgeSQL 2018-01-23 04:37:08 +00:00
test_command_dispatcher.py Remove unnecessary setUp function in testcase 2017-04-03 09:42:20 +00:00
test_context.py Explicitly convert X-Target-Insecure to a boolean 2018-08-22 09:48:30 +01:00
test_coordination.py Tests: Remove the redundant method 2017-07-12 16:41:31 +08:00
test_exception_base.py Add a unit test to check initializers of MistralException hierarcy 2018-03-14 15:09:30 +07:00
test_expressions.py Correct missspellings of secret 2016-12-12 21:25:27 +00:00
test_launcher.py Implement notification of execution events 2018-02-24 07:25:55 +00:00