Commit Graph

42 Commits

Author SHA1 Message Date
Eyal 8d53992116 remove unused gate code
* post_test_hook. used in legacy gate
* run_functional_test probably not used and also doean't work
  since mistral_tempest was moved

Change-Id: Ib54940fdf3db7afff945f7c13d158cc04f5ac250
2019-09-01 11:21:21 +03:00
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
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
zhangyanxian 0ba0eae84c Some minor code optimization in post_test_hook.sh
set -ex is helpful for debugging test progress and
make test quit promptly once exception happens

Change-Id: I241a23c20f79bcae1d16858cc521971b6388bfe8
2016-08-25 08:25:08 +00:00
hparekh ffb5861b15 Mistral tests will run from tempest plugin
Now mistral functional tests run from tempest
repository using plugin in devstack gate.

Change-Id: I67933fdc55b6f53dbd3e620f9814c0d919c85533
2016-02-02 11:19:51 +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
Anastasia Kuznetsova b9c7f66345 Remove running of CLI tests on commit to mistral repo
We do not need to run CLI tests on every commit to the
main mistral repository.

Partial implements: blueprint mistral-making-dsvm-gates-voting

Change-Id: I05107ba67c2cd94a50ff6963ea69f5cf29e5cd5e
2015-11-26 17:41:53 +00:00
Jenkins 1ec594f0c1 Merge "Fixing SSH actions to use names of private keys" 2015-10-23 06:19:08 +00:00
Nikolay Mahotkin 56f2d5f4b5 Fixing SSH actions to use names of private keys
* SSH action uses private key names instead of
   private keys themself. All private keys now
   should be in <user-home>/.ssh/, e.g. searching
   of key 'my_key.pem' will be at <user-home>/.ssh/my_key.pem
 * Fixed functional tests
 * Remove sudo while running tests

Closes-Bug: #1507600

Depends-On: Idc4340cda80d02f4ee88c91600b72d0f914c4084

Change-Id: I503d78ff541183ce850476229842fa6f20061a00
2015-10-22 16:30:54 +03:00
Anastasia Kuznetsova f8087961f6 Fix mistral dsvm gate
Because of https://review.openstack.org/#/c/235480/ path to
tempest conf now is defining in other way, need to export
special path and do not try to find tempest.conf using
relative path from test run directory.

Change-Id: I4de9d71332edab96e4d6c96f3b84f6ea2c459a67
2015-10-20 14:31:51 +03:00
Zhenguo Niu 3ea5c6c707 Switch to devstack plugin
Start using devstack's feature 'Externally Hosted Plugins' [1], that allows
to install Mistral using upstream Devstack without need to put some additional
files manually.
To enable Mistral with Devstack just put following in local[rc] file:
enable_plugin mistral https://github.com/openstack/mistral

[1] http://docs.openstack.org/developer/devstack/plugins.html#externally-hosted-plugins

Implements blueprint devstack-plugin

Change-Id: Ia2f188a6eb369a495a7e0f20534fdd02bafcf49a
2015-09-12 22:08:00 +08:00
Nikolay Mahotkin e523f7537c Making / and /v2 URLs allowed without auth
Closes-Bug: #1473963

Change-Id: I7170121a1216d9d72a43e552db1864a58e4c6237
2015-07-17 12:19:26 +03:00
LingxianKong d0521883ff Fix wrong zuul_project name in mistral gate script
$ZUUL_PROJECT should be openstack/mistral

Change-Id: Ice2440ee4cacfa09d662403a20944ac4d0df9e0e
Closes-Bug: #1468572
2015-06-25 05:14:11 +00:00
Anastasia Kuznetsova 5d988122be Get rid of v1 in installation scripts
Change-Id: I03999ce66d1890ec7bdba3a331fa8df7e09e1ea2
2015-04-09 12:02:22 +00:00
Anastasia Kuznetsova 5c6f521780 Fix tempest gate, add tempest import to our script
Change-Id: I0c3094c724b0c72fe79fb38ce628c808620be03a
2015-02-12 17:37:14 +04:00
Anastasia Kuznetsova 79a78b96c4 Move gate tests under mistral/tests
- Move all gate tests from functionaltests folder to the mistral/tests/functional
- Edit run directory for gate tests in the functionaltests/run_tests.sh
- Leave 'resources' folder in the 'mistral/tests' to use examples from it in the tempest tests

Change-Id: I4d6d6a653aab5af00c5cae7c21495f4a86ebfe42
2014-08-15 11:14:59 +04:00
Anastasia Kuznetsova c23c49f8a1 Fix mistral gate job
Gate job was broken with error:
no module name was found
So, need to fix paths and fix import error.

Change-Id: I87339f6b7ebfb625dec63895af8ce2e0a7cd3ef4
2014-07-30 11:25:32 +04:00
Anastasia Kuznetsova 2c492fb057 Add running mistralclient integrational tests
Now on every commit to the mistral repository mistralclient
integration tests and api integration tests will run.
Also on every commit to the mistralclient repository only
mistralclient integrational tests will run.
(after appropriate commit to openstack-infra)

Change-Id: I51f074a1ff2b3f3f669865839f658da887d4ce6d
2014-07-16 11:20:39 +04:00
Anastasia Kuznetsova f4ea6a2710 Add installation of mistralclient in devstack script
To run tests for pythonclient need to have installed client.

Change-Id: Ic626139ce388dbe9f43a1a9644e72c07ff1f51aa
2014-07-08 15:24:53 +04:00
Jenkins f36ade4009 Merge "Make the service_type more consistent" 2014-07-03 05:46:06 +00:00
Nikolay Mahotkin e50d1eaa9f Make OpenStack related data available in actions
* Make OpenStack related data accessible via context in action DSL
   without explicitly defining parameters such as auth_token and project_id
 * Make Openstack data accessible via action_context parameter
   for new Actions
 * Unit tests

Implements blueprint: mistral-openstack-data-accessible-by-default

Change-Id: I9b6802d90c0ac17e0494d2025897ce5cdd02f4ee
2014-06-23 16:59:01 +07:00
Nikolay Mahotkin bb2f984d23 Fix get task list of nonexistent execution
Closes-bug: #1326287

Change-Id: Ib532e32066223969cf39a023151f7a648f29e010
2014-06-19 19:47:25 +04:00
Jenkins 8771cb0fb6 Merge "Fix hacking rules H101 and E265" 2014-06-17 08:08:39 +00:00
Angus Salkeld 73fda14df6 Make the service_type more consistent
Change "workflow_service" to "workflow".
Closes-Bug: #1330787

Change-Id: I90bb7e5bb1f9c5686e0c81bba9c82170a754567d
2014-06-17 18:04:35 +10:00
Angus Salkeld 9fa8cd669b Fix hacking rules H101 and E265
This is trivial, but easy to get out of the way.

Change-Id: Id261784e71c1b763c60090ffed92430d359f448b
2014-06-16 20:51:29 +10:00
Sergey Murashov 9e9017bccf Add upload definition action in test
Add upload definition action in get_workbook_definition
test, because if definition isn't exist, get request
returns 404, but it's a positive test

Change-Id: I5a3c57e7842fbbc80034226926b2a88141192cd7
2014-06-16 11:22:24 +04:00
Jenkins 138f4641a6 Merge "Fix create execution when workbook does not exist" 2014-06-16 05:43:28 +00:00
Jenkins 6061b8297c Merge "Fix update nonexistent task" 2014-06-11 17:52:44 +00:00
Nikolay Mahotkin 9f2043e41e Fix create execution when workbook does not exist
* Controller return 404 Not Found if Workbook doesn't exist
   or workbook definition is empty (in case of empty
   Definition we can't start Execution)

Closes-bug: #1325914

Change-Id: I5ae18d378916c6eba81088603414300891f1b816
2014-06-11 11:38:31 +04:00
Nikolay Mahotkin f11aa22684 Fix update nonexistent task
Closes-bug: #1326284

Change-Id: I0eeaff7fbf44c975d2aac0a4839ad0f5fecd3276
2014-06-09 17:23:23 +04:00
Nikolay Mahotkin 7770099626 Fix get execution list when workbook does not exist
Closes-bug: #1325933

Change-Id: I72dd6631b661f270a91f363e7a049a632f820e24
2014-06-09 16:17:54 +04:00
Sergey Murashov fe78da3fcb Add negative functional tests
Change-Id: Ic903cc03267d11f691f1d84b3bb0a333a19a4255
2014-06-04 12:56:58 +04:00
Sergey Murashov 13d9dcefbe Add new tests for executions and tasks
-Add wait for server termination in tearDown
-Add "get execution" test
-Add "get list of tasks" test
-Add "get task" test

Change-Id: I07371f725fbd125b14e263b6a337eb04c3b18400
2014-06-04 10:57:43 +04:00
Sergey Murashov 0e60704a71 Implement new mistral tests
Change-Id: Idd90b4c660bd46c09aba68ff9d4423e8c11e781b
2014-06-02 16:57:20 +04:00
Angus Salkeld ba21390f48 Fix H404 multi line docstring should start without a leading new line
Change-Id: Id028ec196dd16696b47614fd77c8adde893dbc56
2014-05-28 13:17:16 +10:00
Sergey Murashov d0fe92f90f Fix url in "get workbook definition" test
Change-Id: Ic3fe0f7b88437ea85da5c8c659d6dd35bd046abc
Closes-bug: #1323585
2014-05-27 14:44:53 +04:00
Jenkins ecec340b52 Merge "Fix issue with tempest tests" 2014-05-15 09:26:55 +00:00
Jenkins 214ae36e75 Merge "Fix demo.yaml example in tempest tests" 2014-05-14 08:38:13 +00:00
Sergey Murashov 0847ca4766 Fix issue with tempest tests
Change-Id: I20cce5910c4b166531267ce4014dfadbb83cc31c
2014-05-12 11:09:41 +04:00
Nikolay Mahotkin deca14c5e8 Fix demo.yaml example in tempest tests
Change-Id: Icce921290976f80c70487b770ecd7811a3e4ba18
2014-05-07 17:32:28 +04:00
Sergey Kolekonov 1984b3ea54 Fix mistral tests
- corrected the path to tests
- removed check_api.sh script because it's not needed anymore
- made scripts executable

Change-Id: I2c6364e8ad4355b8b8565904d58773e8412bdf6d
2014-05-06 12:36:22 +04:00
Sergey Murashov 623e12320e Update mistral tests
Update mistral tests for devstack gate job

Change-Id: Ia56ea50d9f0da6ca0e98efa53a88ab2dfb499f3c
Partly-Implements: blueprint mistral-open-qa-process
2014-05-05 17:44:15 +04:00