Add new tempest tests for swift and zaqar client actions
Change-Id: I58c20ec36086a812ae7fad4637e977d1bc7c9838
This commit is contained in:
parent
c5fd23cda7
commit
c7089bf21c
@ -11,6 +11,8 @@
|
||||
- openstack/mistral
|
||||
- openstack/mistral-dashboard
|
||||
- openstack/python-mistralclient
|
||||
- openstack/zaqar
|
||||
- openstack/python-zaqarclient
|
||||
|
||||
- job:
|
||||
name: mistral-devstack-dsvm-kombu
|
||||
@ -25,6 +27,8 @@
|
||||
- openstack/mistral
|
||||
- openstack/mistral-dashboard
|
||||
- openstack/python-mistralclient
|
||||
- openstack/zaqar
|
||||
- openstack/python-zaqarclient
|
||||
|
||||
- job:
|
||||
name: mistral-devstack-dsvm-non-apache
|
||||
@ -39,6 +43,8 @@
|
||||
- openstack/mistral
|
||||
- openstack/mistral-dashboard
|
||||
- openstack/python-mistralclient
|
||||
- openstack/zaqar
|
||||
- openstack/python-zaqarclient
|
||||
|
||||
- job:
|
||||
name: mistral-docker-buildimage
|
||||
|
@ -51,3 +51,25 @@ workflows:
|
||||
publish:
|
||||
result: <% task().result %>
|
||||
|
||||
swift:
|
||||
type: direct
|
||||
tasks:
|
||||
get_account:
|
||||
action: swift.get_account
|
||||
publish:
|
||||
result: <% task().result %>
|
||||
|
||||
zaqar:
|
||||
type: direct
|
||||
tasks:
|
||||
send_message:
|
||||
action: zaqar.queue_post
|
||||
input:
|
||||
queue_name: test
|
||||
messages:
|
||||
body:
|
||||
type: action_collection.zaqar
|
||||
payload:
|
||||
status: <% $.get(status, 'SUCCESS') %>
|
||||
publish:
|
||||
result: <% task().result %>
|
||||
|
@ -90,3 +90,23 @@ class OpenStackActionsTestsV2(base.TestCase):
|
||||
executed_task = self.client.get_wf_tasks(wf_name)[-1]
|
||||
|
||||
self.assertEqual('SUCCESS', executed_task['state'])
|
||||
|
||||
@decorators.attr(type='openstack')
|
||||
@decorators.idempotent_id('985c1051-cf2e-4fd0-8ceb-a9b8110597a1')
|
||||
def test_swift_actions(self):
|
||||
wf_name = self.wb['name'] + '.swift'
|
||||
_, execution = self.client.create_execution(wf_name)
|
||||
self.client.wait_execution_success(execution)
|
||||
executed_task = self.client.get_wf_tasks(wf_name)[-1]
|
||||
|
||||
self.assertEqual('SUCCESS', executed_task['state'])
|
||||
|
||||
@decorators.attr(type='openstack')
|
||||
@decorators.idempotent_id('6f000ae8-3f41-49bd-b7a7-ad2256d80076')
|
||||
def test_zaqar_actions(self):
|
||||
wf_name = self.wb['name'] + '.zaqar'
|
||||
_, execution = self.client.create_execution(wf_name)
|
||||
self.client.wait_execution_success(execution)
|
||||
executed_task = self.client.get_wf_tasks(wf_name)[-1]
|
||||
|
||||
self.assertEqual('SUCCESS', executed_task['state'])
|
||||
|
@ -38,11 +38,14 @@
|
||||
fi
|
||||
|
||||
export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest
|
||||
export PROJECTS="openstack/zaqar $PROJECTS"
|
||||
export PROJECTS="openstack/python-zaqarclient $PROJECTS"
|
||||
export PROJECTS="openstack/heat $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/mistral-dashboard $PROJECTS"
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar"
|
||||
|
||||
if [ "-kombu" == "-non-apache" ]; then
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False"
|
||||
|
@ -38,11 +38,14 @@
|
||||
fi
|
||||
|
||||
export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest
|
||||
export PROJECTS="openstack/zaqar $PROJECTS"
|
||||
export PROJECTS="openstack/python-zaqarclient $PROJECTS"
|
||||
export PROJECTS="openstack/heat $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/mistral-dashboard $PROJECTS"
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar"
|
||||
|
||||
if [ "-non-apache" == "-non-apache" ]; then
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False"
|
||||
|
@ -38,11 +38,14 @@
|
||||
fi
|
||||
|
||||
export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest
|
||||
export PROJECTS="openstack/zaqar $PROJECTS"
|
||||
export PROJECTS="openstack/python-zaqarclient $PROJECTS"
|
||||
export PROJECTS="openstack/heat $PROJECTS"
|
||||
export PROJECTS="openstack/mistral $PROJECTS"
|
||||
export PROJECTS="openstack/mistral-dashboard $PROJECTS"
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar"
|
||||
|
||||
if [ "" == "-non-apache" ]; then
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False"
|
||||
|
Loading…
Reference in New Issue
Block a user