Commit Graph

14 Commits

Author SHA1 Message Date
Chandan Kumar 4f57c90d69 Remove intree mistral tempest plugin
* https://review.openstack.org/524869 moves the intree mistral
  tempest plugin to a new home openstack/mistral-tempest-plugin
  let's use it.

* It also removed intree mistral tempest plugin as well as fix the
  jobs to use the same.

Change-Id: I28ba8408452637aa093b343441f3715dc4754a3f
2017-12-26 07:49:14 +00:00
Kaustuv Royburman 9f8719024b Decoupling of Mistral tempest test from Mistral code base
The Mistral Tempest tests have a hard-coded dependency on Mistral being present
when Tempest tests are executed.
When trying to sparse-checkout the mistral_tempest_tests folder to run
the Mistral tests as a Tempest plugin; it fails due to Mistral not
being installed as some utilities and resources which are written in
the Mistral Tempest tests are being hard referenced from Mistral
being installed in the same environment.

This patch decouples the Mistral Tempest Tests so that they can be executed in
a stand-alone mode along with the necessary resources that are required to
execute the Tempest tests.

Change-Id: Ifd6a3a65a14c4ad4736dccc3e72cd564b6f53a0a
Closes-Bug: #1714732
2017-10-09 23:20:06 -05:00
Michal Gershenzon cbee740de5 Create and run a workflow within a namespace
Allow adding many workflows with the same name.
The way this works is by adding the new workflows under another
namespace.

Notice that:
  1. Namespaces are not part of the mistral DSL.
  2. When executing a workflow, the namespace passes down to the
     subworkflow.
  3. When searching for the sub-workflow definition -
     If no workflow was found in the given namespace, than the defualt
     namespace will be used.
  4. The default namespace is an empty string.
  5. The namespace property or the workflow execution will be under
     params

Partially-Implements: blueprint create-and-run-workflows-within-a-namespace

Change-Id: Id248ec5906a0899d188675d002b45f6249d36d90
2017-08-01 13:51:05 +00:00
Ji zhaoxuan 08f186a6e1 Python3 common patterns
Modify some codes in order to make them meet
the Python3 common pattern.
In this patch,I replace filter(lambda obj: test(obj),data)
with[obj for obj in data if test(obj)]

Change-Id: I68e76f91dc31aa0e00124c1eb76a0a1f0178cc44
2017-01-10 07:54:48 +00:00
Spencer Yu 3b1ed4ec3e Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Iff88f55dc51981ce502d7d3e67c467242980f20c
2016-12-16 08:24:10 -08:00
Lingxian Kong 3455dd68e9 Add functional tests for event engine functions
This test class doesn't fully test event engine functions, because
we can not send real notifications to the internal message queue to
trigger the specified workflows.

So, before notification is supported in Mistral, we can only test the API
functions.

Change-Id: I4289dac17f19cd2ce3c214c5625f3b7d9db605de
Implements: blueprint event-notification-trigger
2016-09-15 23:11:43 +12:00
hardik 48db3ebbc7 Refactored tempest tests
Change-Id: I8d0a4a8ea7f1936b0a7f89b79b0ddda2c30644fb
2016-06-16 15:48:03 +05:30
Lingxian Kong e7e2a80c30 Add configuration for Mistral tempest testing
Skip tests if Mistral service in not installed when running tempest.

Change-Id: Ic51afda598f9e8fdb63937f7aa55deb6cea65285
Closes-Bug: #1592748
2016-06-16 00:00:49 +12:00
hardik 49d04cf45b Disabled ssl warnings while runing tempest tests
While running tempest tests over https, warnings
are shown for unverified HTTPS request beacause
by default urllib3 don't verify ssl certificates.
So now, certification validation warnings have been
disabled.

Change-Id: I0e99af8364e262baa37a56b0a8846abde3a8d2b0
Closes-bug: #1570451
2016-04-17 09:25:01 +00:00
Emilien Macchi 99edd17105 tempest: fix dir_path
This patch fix the dir_path that helps to get the directory of
Mistral resources.

Without this patch, this is what we get when running Tempest:

IOError: [Errno 2] No such file or directory:
'/usr/lib/python2.7/site-packages/mistral_mistral/tests/resources/openstack/action_collection_wb.yaml'

With this patch:
/usr/lib/python2.7/site-packages/mistral/tests/resources/openstack/action_collection_wb.yaml
This path is correct and Tempest runs successfully.

Change-Id: Ie4bd3db8a4e729f7937a6f3c099d7c25abffcb1b
Closes-Bug: #1568413
2016-04-11 13:31:51 -04:00
hardik 2af31abb7f Use tempest.lib instead of tempest-lib
The switch to tempest.lib in tempest is done
in https://review.openstack.org/#/c/283755/
mistral should use tempest.lib instead of tempest-lib because
tempest-lib will be deprecated.

Change-Id: I202d82be0b276886433b0ceeb9c17e1707232f68
Depends-on: I4da5e807914ce8a11b201aad765d827cb9bf9d9a
2016-03-10 10:49:28 +00:00
hardik 4878202c0e Fixed 'workflow_name' key error
when workflow execution is created by workflow_id
'workflow_name' key error was raised. Now 'workflow_name'
is extracted from dictionary using get() function.

Change-Id: I5a648742b2653818d3bc4d4025ce1fe0b73a2d24
Closes-bug: #1549047
2016-02-24 03:03:02 +00:00
hparekh 568bbf5384 Removed mistral/tests/functional
All the changes has been merged to mistral_tempest_tests.
Also scrits has been changed.

Change-Id: I6c514a3c75f1b6e3b94b0e9b0e542697b68d9a02
Partially-Implements: blueprint mistral-tempest-plugin
2016-01-29 11:04:03 +09:00
hparekh 8e40268555 Added base.py to tempest plugin.
Change-Id: I6270f7176f8b652642e9ea91d045eec866436c93
Partially-Implements: blueprint mistral-tempest-plugin
2015-12-24 06:14:04 +00:00