Commit Graph

104 Commits

Author SHA1 Message Date
Vasudeo Nimbekar 3af5d65d6e Wait till execution is success for test_task_type
As a part of blueprint distribute-mistral-operations, we have added changes to run task with RPC. Tasks will be created in IDLE state and RPC request will be created to run tasks.
In test_task_type UT, we are using nested workflow where first task is responsible to start inner workflow, due to above changes first task is created in IDLE state so, we should wait till execution success to assert all the types of tasks getting created for this workbook.

linked-to: https://review.opendev.org/c/openstack/mistral/+/869193/


Change-Id: If8fea6184d45365c20203df945e1b092449225b8
2023-01-13 11:24:21 +00:00
Takashi Kajinami 324eba5deb Skip failing tests temporarily
Currently test_multi_vim_support_target_headers is continuously failing
possibly because of some changes in dependent libraries.

Until we sort out the problem, let's disable it so that we can unblock
the CI.

Related-Bug: #1964344
Change-Id: I1fa515ea851c38b4ace6cf3657106d22c0e9777c
2022-03-09 21:59:58 +09:00
Renat Akhmerov 776b590bd6 Adjust Actions API tests
* Some more adjustements to the Actions API tests related to
  the Action Provider transition. Some tests have to be temporarily
  disabled because there's no way to make them on both current
  version of Mistral and the version including action providers.

Change-Id: I13033253d5098655a001135c8702d1b1d13e76d4
2020-09-24 18:06:34 +07:00
Renat Akhmerov b9c3d57249 Fix Action API tests
* It's part of the Action Provider refactoring. The API had to
  slightly change.
* Pagination has to be still implemented.

Change-Id: Ibc26645a90101eceab507e7c7755cdd4fbbf7536
2020-09-24 11:51:48 +07:00
Eyal 6f746b9228 Fix preinstalled workflows tests
The 'std' prefix was removed from the workflow name
make sure it passes on both cases.

Change-Id: I9bd36bf2ad1a36ff569f385190c186b63b78f1e1
2020-02-26 14:31:28 +02:00
Zuul 3fca72a658 Merge "Drop support in py2" 2020-02-18 10:43:11 +00:00
Eyal f0d3f2e092 Remove some pycharm warnings
* Mutable default arg
* Use of reserved names as parameters
* Missing requirements
* Unused parameters
* use static method
* Doc errors

Change-Id: Iaf7efa263398005ba1fa7261c894c85cb2fbcf47
2020-02-11 10:44:26 +02:00
Eyal 792bf80f8c Drop support in py2
Change-Id: I199ccdbf6684c1bc979428898a7d9094a7267f9d
2020-02-04 13:50:03 +02:00
Eyal cc3455b732 Skip service api if not supported
The Service api was fixed and supported only in ussri
Don't run it if not supported

see: https://review.opendev.org/#/c/700507/
     https://review.opendev.org/#/c/700517/
     
Change-Id: I84ddb8a075269dc475fb56e0fc5ecabd28bba1a8
2020-01-30 07:53:16 +00:00
Zuul a99e8f6207 Merge "Add test service api" 2020-01-09 10:20:11 +00:00
Eyal a4c54667f9 Add test service api
Also drop py27 support and remove pypy

Depends-On: https://review.opendev.org/#/c/700507/
Change-Id: I23f92c8f514e51b90bdf01a46278e7b53282117d
2019-12-30 10:34:02 +00:00
Ghanshyam Mann 4805d2ea5e [train][goal] Define new 'mistral-devstack-tempest-ipv6-only' job
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
Tempest has defined the base job 'devstack-tempest-ipv6' which will
deploy services on IPv6.

This commit adds the new job 'mistral-devstack-tempest-ipv6-only'
run on gate which is derived from 'devstack-tempest-ipv6'.

Verification structure will be:
- 'devstack-IPv6' deploy the service on IPv6
- 'devstack-tempest-ipv6' run will verify the IPv6-only setting and listen address
- 'mistral-devstack-tempest-ipv6-only' will run the tests.
- 'mistral-devstack-non-apache-tempest-ipv6-only' will run the tests.

Story: #2005477
Task: #35905

Depends-On: https://review.opendev.org/#/c/699959/

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Change-Id: Iacd2d9cb5effde9a801010ce3e5f590f47f8831e
2019-12-25 12:14:45 +02:00
Kien Nguyen 3c3a6cc2a1 Add test for OpenStack services dynamic versions
Depends-On: https://review.opendev.org/#/c/621470/
Change-Id: I28e7bced65386b01ebb7024a942b95eb5455be6f
2019-09-03 01:33:49 +00:00
Eyal 8711269242 use python3 for gate
Change-Id: Idc39d6f6e367d3dea673d48a160b8314a51394e8
2019-08-25 12:56:27 +03:00
Zuul 97d2e45a47 Merge "Update json module to jsonutils" 2019-04-08 12:26:23 +00:00
Renat Akhmerov dcbfc8257c Disable SSH actions tests till they are stable
Change-Id: I0378297e099412191a4adc41e53b0eb23f6c43ae
2019-04-03 22:09:33 +07:00
cao.yuan 6794295cb2 Update json module to jsonutils
oslo project provide jsonutils, and mistral-tempest use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/mistral-tempest-plugin/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: I3872e3d10e103439fdf4005785d46ed580e520af
2019-03-18 10:00:34 +08:00
Dougal Matthews b63d95a524 Add sorting to the "in list filter" test
Without this change, the result can be accurate but in the wrong order,
causing a failure like:

    AssertionError:
    Lists differ: ['greeting', 'farewell'] != ['farewell', 'greeting']

Change-Id: Ia0f3e9fa03834feb4c87c6ac50930a0d533a19bd
2018-11-13 10:45:08 +00:00
Andras Kovi e6e8f61c2e Use id of workflow instead of name to keep track of what is created
With concurrent test executions it is possible that namespaced and
non-namespaced tests run at the same time, making it flaky whether
the name of the workflow is enough to identify the workflow. Using
the id should work in all cases.

Change-Id: Ib0e7d31f9a983c723704b64b1c46940aace545d7
2018-07-19 09:48:30 +02:00
Adriano Petrich 6deb96c89d Revert "Fix todo that is not needed anymore stestr conf"
This reverts commit 35d94fd609.

Removing the try except makes tempest not stable branch invariant and break backports.
this fixes that

Change-Id: Ib78ca25ff25addd4c19716e59f6e638dabdc7054
2018-05-16 08:00:41 +00:00
Adriano Petrich 35d94fd609 Fix todo that is not needed anymore stestr conf
Stestr conf was using the wrong module name so tox would not work (I
have no idea how that passes tempest gates) So fixing that so tox works
(on an env that has tempest setup) and removed todos that the force
deletion has been merged

Change-Id: Ib47148c5e28acaae7cd5872a1af3e7d044336ea1
2018-04-30 09:02:44 +01:00
Adriano Petrich 3a1b40ff15 Adds the force parameter to delete executions
This is an intermediary step so the tests can work with or without
the force parameter. Once the force parameter has landed in mistral
I will remove the try except from this implementation.

Change-Id: Id935265fcbe0a3072ba2d693edf54b892173fbdf
2018-04-26 10:10:39 +01:00
Brad P. Crochet 10b704b520 Simplify the ssh tests and where it gets it's key from
We shouldn't need to make a distinction between CI and local run. CI
should now properly use a home directory.

Change-Id: Ie8c20203fc31b1ba9a5b3fdcd20654562d894a10
Depends-On: I10c06d3fb644c7e3026eac7a00660f0465fb0749
2018-01-24 13:19:37 +00:00
Brad P. Crochet 0a5f004018 Revert "Revert "Add zuul jobs for mistral-tempest-plugin""
This reverts commit c2b77ea754.

Change-Id: I3997350ec1b5bb58328cd761a61dd885177ac339
2018-01-24 07:05:52 +00:00
Renat Akhmerov c2b77ea754 Revert "Add zuul jobs for mistral-tempest-plugin"
This reverts commit 09370b7a51.

Change-Id: Ib39ef56a6aea7b896daa0accb15f21a433ebd09a
2018-01-23 09:27:50 +00:00
Brad P. Crochet 09370b7a51 Add zuul jobs for mistral-tempest-plugin
Also defines the devstack jobs for mistral and python-mistralclient.

Change-Id: I7eaff91b3bc3b94ca97ffc7a1ace74c86117bd07
Depends-On: I4a3068cbe765a16f6ba4b0c3e38410929ca3a14c
Needed-By: I10c06d3fb644c7e3026eac7a00660f0465fb0749
2018-01-19 09:25:47 -05:00
Chandan Kumar 23b0fb12b7 Remove all class methods in tempest tests
* Using class methods for setup can create issues when tests are run
  concurrently. Let's use regular instance methods instead.

* Cherry-picked tempest change from mistral project:
  https://review.openstack.org/#/c/527348/

Change-Id: I43a8c3bf2d565892fbd45a1efe0abbb0cf7c11d5
2017-12-26 14:31:25 +05:30
Dougal Matthews 2b4471bf84 Re-work the direct action call tempest test
The current version calls the Mistral API, this seems to be unstable.
Using another std action is enough to validate that this works
correctly.

Related-Bug: #1736685
Change-Id: I2ea70b228f3240ed89c3a3d4bd991459a6736f8c
(cherry picked from commit b291e502b27eaa5ffb4d5d971fe0f6aac8f3b866)
2017-12-13 09:26:27 +00:00
Dougal Matthews 0dc7e574b3 Disable unstable tempest test_create_action_execution_sync test
This disables test_create_action_execution_sync.
Doing so allows us to mvoe towards a voting tempest job. We need to come
back and fix or replace this test later.

Related-Bug: #1736685
Change-Id: Icfa134d391476cad6ef925c84e93754d8a625ef2
(cherry picked from commit d53c1a983454777f8bee16806a1331bb0bd5c1cb)
2017-12-13 09:26:21 +00:00
Dougal Matthews 955327c231 Disable unstable tempest multi_vim_authentication test
This disables test_multi_vim_support_target_headers_and_service_catalog.
Doing so allows us to mvoe towards a voting tempest job. We need to come
back and fix or replace this test later.

Related-Bug: #1736685
Change-Id: Ie6a9e67837fb8c6386f915209ecf11974ab052c6
(cherry picked from commit cd37173c8c1134155e9218b67e4a68c56e79d77c)
2017-12-13 09:26:07 +00:00
Dougal Matthews 7963809930 Allow filtering executions by their root_execution_id
With this filter, it will be possible to find all the workflow
executions started by a root execution.

Implements: blueprint mistral-root-execution-id
Change-Id: Ie18493c8f59f5d77107f0adf5db491b0db05cee2
(cherry picked from commit 28130bb862b33c57f5513fbe139eee3e4444fdac)
2017-12-13 09:25:21 +00:00
Brad P. Crochet 1efcb63036 Add new tempest tests for swift and zaqar client actions
Change-Id: I58c20ec36086a812ae7fad4637e977d1bc7c9838
2017-11-29 14:47:02 -05:00
Kaustuv Royburman e5cec09f58 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
Jenkins 1b8af5a7ff Merge "Fix test for decoding utf8" 2017-09-01 05:06:41 +00:00
Michal Gershenzon d331ca491a Fix test for decoding utf8
Google sometimes returns 302 json, causing the test to fail.
This commit switches to httpbin.

New url used in test:
https://httpbin.org/encoding/utf8

Change-Id: I095f468310c58cede509f520feb005901a48c0c6
2017-08-15 08:31:54 +00:00
Eyal bff25f160a import fails in python3
use six to solve this

Change-Id: I0057fd2173deeab30001499ed19f2178ccd02b45
2017-08-14 10:44:51 +03:00
Jenkins 3ba7b739d4 Merge "Create and run a workflow within a namespace" 2017-08-01 20:02:02 +00:00
Michal Gershenzon 0e2962f679 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
Michal Gershenzon 192bd4d4dc Remove deprecation warning from tests
manager and alt_manager are marked for removal in Queens[1]
This commit replaces them with os_primary and os_alt.

[1] https://github.com/openstack/tempest/blob/master/tempest/test.py#L369-#L385

Change-Id: Icd3e9e3a52369fa159898346057c8322c63ef993
2017-07-31 15:33:44 +00:00
Jenkins d30ff30efa Merge "Use 'related_bug' decorator from stable interface" 2017-07-27 14:52:30 +00:00
Jenkins f30473a4ea Merge "Add a hacking rule for string interpolation at logging" 2017-07-26 20:11:38 +00:00
Sharat Sharma 806af52dbe Add a hacking rule for string interpolation at logging
From [1], string interpolation should be delayed to be handled by
the logging code, rather than being done at the point of the logging
call. Add a hacking rule, [M331], to delay the string interpolation.

[1] https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages
Change-Id: Ibf0ac960ae84e935979f93f3a0dec8d774aade78
Closes-Bug: #1705634
2017-07-26 11:13:15 +00:00
Jenkins b74b8c31df Merge "Tests: Remove the redundant method" 2017-07-25 12:29:54 +00:00
ghanshyam 883540686f Use 'related_bug' decorator from stable interface
Tempest has made 'related_bug' decorator as stable interface.

This commit move the usage accordingly.

Change-Id: I20497d48a46195644a114dd9f6b86aca59303097
2017-07-25 12:00:43 +00:00
Luong Anh Tuan e9d1ac11fe Replace test.attr with decorators.attr
Function 'tempest.test.attr()' has moved to 'tempest.lib.decorators
.attr()' in Pike and will be removed in a future version.
This patch replaces the 'tempest.test.attr()' with the 'tempest.lib
.decorators.attr().'

Change-Id: Iba7361382ff3b3d2b055a0507af9a8a88cd4a4ce
2017-07-18 18:12:15 +07:00
junboli b6021a0c77 Tests: Remove the redundant method
This patch removes the redundant setUp() methods in order to
keep the code clean, In the subclass, setUp() methods has no
benefit from that, the one in superclass could satisfy that

Change-Id: I0114e4dcfe99b1c151ce84cace0fecb7952e3ef8
2017-07-12 16:41:31 +08:00
Van Hung Pham cb19cc5adf Replace the usage of 'admin_manager' with 'os_admin'
In tempest, alias 'admin_manager' has been moved to 'os_admin'
in version Pike, and it will be removed in version Queens [1].

[1] https://review.openstack.org/#/c/467852/

Change-Id: I9c8890b3e39648fdce01c8f3be9fdc51927dc37a
2017-06-26 10:32:20 +07:00
Vu Cong Tuan 6999942b8d Replace assertEqual([], items) with assertEmpty(items)
Since assertEmpty() function has already been implemented,
let's use this function instead of generic assertEqual() function.
This change makes the code and the error messages to be more readable.
Therefore it improves maintainability a little bit.

Change-Id: I953aea98b2aad21552bafcb673d7872334cc99a5
2017-06-12 16:13:13 +07:00
Jenkins e6068377b0 Merge "Fix gate failure" 2017-04-10 09:57:42 +00:00
Jenkins 40e315d8c4 Merge "Replace six.iteritems() with .items()" 2017-04-10 05:46:38 +00:00