mistral/mistral/tests
Renat Akhmerov a39db2d3dc Fix how Mistral prepares data for evaluating a YAQL expression
* If we use the built-in YAQL function 'str' in a workflow then it
  doesn't represent lists as '[item1, item3, ...]' but instead
  creates '(item1, item2,...). This is because the standard YAQL
  function 'yaql_utils.convert_input_data', which is needed to
  convert a initial user data into an internal YAQL format,
  converts all sequences (except strings) into tuples.
  This patch overrides this behavior for sequences that are not
  strings and tuples so that they now get converted into lists.
  YAQL uses tuples because it needs to obtain a safe immutable
  structure to make calculations upon. But in Mistral list is
  more suitable because lots of users care about string
  representations. Immutability is not so important because
  Mistral code base guarantees that the initial data context
  for an expression won't be changed while an expression is
  being evaluated by YAQL.
* "str" YAQL function used to work well but it was broken in
  https://review.openstack.org/#/c/477816/ that added additional
  context preparation in order to fix the issue
  https://bugs.launchpad.net/mistral/+bug/1772864

Change-Id: I69d32f8772418d586d6c414842bb54aada217481
Closes-Bug: #1815710
2019-02-14 12:20:12 +07:00
..
releasenotes/notes Return the result of the MistralHTTPAction 2018-07-16 11:43:26 +01:00
resources Create and run a workflow within a namespace 2017-08-01 13:51:05 +00:00
unit Fix how Mistral prepares data for evaluating a YAQL expression 2019-02-14 12:20:12 +07:00
__init__.py Initial commit that fix py34 tests run 2015-09-15 09:57:47 +00:00