Murano tempest job with separate tempest plugin

Change-Id: If7136dbfaa53c1835adbd009206fe3baac1b1e16
This commit is contained in:
zhurong 2017-12-02 13:39:36 +08:00
parent 0e9dbd13bc
commit 05d95df793
4 changed files with 56 additions and 29 deletions

View File

@ -2,25 +2,13 @@
name: openstack/murano
check:
jobs:
- murano-congress-devstack-dsvm:
voting: false
- rally-dsvm-murano-task:
voting: false
- tempest-dsvm-murano-api:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- tempest-dsvm-murano-cfapi:
voting: false
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- murano-congress-devstack-dsvm
- rally-dsvm-murano-task
- tempest-dsvm-murano-api
- tempest-dsvm-murano-cfapi
gate:
jobs:
- tempest-dsvm-murano-api:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- tempest-dsvm-murano-api
experimental:
jobs:
- murano-dsvm-functional
@ -30,6 +18,7 @@
parent: legacy-dsvm-base
run: playbooks/legacy/murano-congress-devstack-dsvm/run.yaml
post-run: playbooks/legacy/murano-congress-devstack-dsvm/post.yaml
voting: false
timeout: 4200
required-projects:
- openstack-dev/devstack
@ -51,6 +40,7 @@
parent: legacy-dsvm-base
run: playbooks/legacy/rally-dsvm-murano-task/run.yaml
post-run: playbooks/legacy/rally-dsvm-murano-task/post.yaml
voting: false
timeout: 7800
required-projects:
- openstack-infra/devstack-gate
@ -66,6 +56,13 @@
parent: legacy-dsvm-base
run: playbooks/legacy/tempest-dsvm-murano-api/run.yaml
post-run: playbooks/legacy/tempest-dsvm-murano-api/post.yaml
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- ^doc/.*$
- ^.*\.rst$
- ^releasenotes/.*$
- ^murano/tests/.*$
timeout: 7800
required-projects:
- openstack-infra/devstack-gate
@ -75,12 +72,21 @@
- openstack/python-heatclient
- openstack/python-muranoclient
- openstack/tempest
- openstack/murano-tempest-plugin
- job:
name: tempest-dsvm-murano-cfapi
parent: legacy-dsvm-base
run: playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml
post-run: playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml
voting: false
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$
- ^doc/.*$
- ^.*\.rst$
- ^releasenotes/.*$
- ^murano/tests/.*$
timeout: 7800
required-projects:
- openstack-infra/devstack-gate
@ -90,6 +96,7 @@
- openstack/python-heatclient
- openstack/python-muranoclient
- openstack/tempest
- openstack/murano-tempest-plugin
- job:
name: murano-dsvm-functional

View File

@ -452,10 +452,6 @@ function configure_murano_tempest_plugin() {
echo_summary "Configuring Murano Tempest plugin"
# Set murano service availability flag
iniset $TEMPEST_CONFIG service_available murano "True"
# Running tempest in isolation will using tempest user.
if sudo id -u tempest >/dev/null 2>&1; then
sudo chown -R tempest:stack $MURANO_DIR/murano_tempest_tests
fi
if is_service_enabled murano-cfapi; then
# Enable Service Broker tests if cfapi enabled and set murano-cfapi service availability flag
iniset $TEMPEST_CONFIG service_available murano_cfapi "True"

View File

@ -23,6 +23,20 @@
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/murano-tempest-plugin'
enable_plugin heat git://git.openstack.org/openstack/heat
enable_plugin murano git://git.openstack.org/openstack/murano
EOF
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
@ -30,15 +44,13 @@
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=1
# Allow tempest to use site-packages with plugins
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export ENABLED_SERVICES=tempest
export PROJECTS="openstack/heat $PROJECTS"
export PROJECTS="openstack/python-heatclient $PROJECTS"
export PROJECTS="openstack/murano $PROJECTS"
export PROJECTS="openstack/murano-dashboard $PROJECTS"
export PROJECTS="openstack/python-muranoclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin heat git://git.openstack.org/openstack/heat"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin murano git://git.openstack.org/openstack/murano"
export PROJECTS="openstack/murano-tempest-plugin $PROJECTS"
export BRANCH_OVERRIDE=default
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE

View File

@ -23,6 +23,20 @@
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/murano-tempest-plugin'
enable_plugin heat git://git.openstack.org/openstack/heat
enable_plugin murano git://git.openstack.org/openstack/murano
EOF
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
@ -30,15 +44,13 @@
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=1
# Allow tempest to use site-packages with plugins
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export ENABLED_SERVICES=tempest
export PROJECTS="openstack/heat $PROJECTS"
export PROJECTS="openstack/python-heatclient $PROJECTS"
export PROJECTS="openstack/murano $PROJECTS"
export PROJECTS="openstack/murano-dashboard $PROJECTS"
export PROJECTS="openstack/python-muranoclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin heat git://git.openstack.org/openstack/heat"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin murano git://git.openstack.org/openstack/murano"
export PROJECTS="openstack/murano-tempest-plugin $PROJECTS"
export BRANCH_OVERRIDE=default
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE