Now we support two API versions in Mistral and have to run both tests suite.
Initially differences between these versions was not very large and we could use same test scenarios for workbooks, executions and tasks in both versions.
Now in v2 we have more endpoints and there are more differences between v1 and v2 and, as a result, we have to test different scenarios for workbooks, executions, but we have the same test suites for them (in v1 and v2).
So need to:
- separate v1 and v2 api tests for workbooks and executions;
- add more complex scenarios for these endpoints in v2
- optimize methods realization for v2 tests (for example we have 3 methods "get_**_definition" for 3 different mistral items, but all of them make the same REST call but for different endpoints. Endpoint can be passed as a parameter.)
Fix proposed to branch: master /review. openstack. org/134224
Review: https:/