Add test for OpenStack services dynamic versions
Depends-On: https://review.opendev.org/#/c/621470/ Change-Id: I28e7bced65386b01ebb7024a942b95eb5455be6f
This commit is contained in:
parent
8711269242
commit
3c3a6cc2a1
|
@ -18,6 +18,10 @@ workflows:
|
||||||
action: nova.flavors_list
|
action: nova.flavors_list
|
||||||
publish:
|
publish:
|
||||||
result: <% task().result %>
|
result: <% task().result %>
|
||||||
|
versions_get_current:
|
||||||
|
action: nova.versions_get_current
|
||||||
|
publish:
|
||||||
|
result: <% task().result %>
|
||||||
|
|
||||||
glance:
|
glance:
|
||||||
type: direct
|
type: direct
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
from oslo_serialization import jsonutils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from mistral_tempest_tests.tests import base
|
from mistral_tempest_tests.tests import base
|
||||||
|
@ -36,9 +37,16 @@ class OpenStackActionsTestsV2(base.TestCase):
|
||||||
wf_name = self.wb['name'] + '.nova'
|
wf_name = self.wb['name'] + '.nova'
|
||||||
_, execution = self.client.create_execution(wf_name)
|
_, execution = self.client.create_execution(wf_name)
|
||||||
self.client.wait_execution_success(execution)
|
self.client.wait_execution_success(execution)
|
||||||
executed_task = self.client.get_wf_tasks(wf_name)[-1]
|
executed_tasks = self.client.get_wf_tasks(wf_name)
|
||||||
|
for executed_task in executed_tasks:
|
||||||
self.assertEqual('SUCCESS', executed_task['state'])
|
self.assertEqual('SUCCESS', executed_task['state'])
|
||||||
|
if executed_task['name'] == 'versions_get_current':
|
||||||
|
published = jsonutils.loads(executed_task['published'])
|
||||||
|
# NOTE(kiennt): By default, microversion is 2.1.
|
||||||
|
# But now Mistral supports OpenStack project
|
||||||
|
# dynamic version, so the version should be
|
||||||
|
# the max possible version.
|
||||||
|
self.assertNotEqual('2.1', published['result']['version'])
|
||||||
|
|
||||||
@decorators.attr(type='openstack')
|
@decorators.attr(type='openstack')
|
||||||
@decorators.idempotent_id('81bdc1c9-cd9a-4c97-b8ce-e44f5211eace')
|
@decorators.idempotent_id('81bdc1c9-cd9a-4c97-b8ce-e44f5211eace')
|
||||||
|
|
Loading…
Reference in New Issue