Add zuulv3 to Pike
Copy zuulv3 tests for tempest to the pike stable branch. Change-Id: I4c02899065086395f6fd63a2b7236b1c2462cbe0
This commit is contained in:
parent
bb9e089953
commit
5e756a7086
71
.zuul.yaml
71
.zuul.yaml
|
@ -1,6 +1,69 @@
|
|||
- job:
|
||||
name: barbican-devstack-tempest-base
|
||||
parent: legacy-dsvm-base
|
||||
vars:
|
||||
python_version: py27
|
||||
database: sql
|
||||
castellan_from_git: 0
|
||||
cursive: 0
|
||||
required-projects:
|
||||
- openstack-infra/devstack-gate
|
||||
- openstack/barbican
|
||||
- openstack/barbican-tempest-plugin
|
||||
- openstack/castellan
|
||||
- openstack/cursive
|
||||
- openstack/python-barbicanclient
|
||||
- openstack/tempest
|
||||
run: playbooks/legacy/barbican-devstack-tempest-base/run.yaml
|
||||
post-run: playbooks/legacy/barbican-devstack-tempest-base/post.yaml
|
||||
timeout: 4200
|
||||
|
||||
- job:
|
||||
name: barbican-simple-crypto-devstack-tempest
|
||||
parent: barbican-devstack-tempest-base
|
||||
|
||||
- job:
|
||||
name: barbican-simple-crypto-devstack-tempest-castellan-from-git
|
||||
parent: barbican-devstack-tempest-base
|
||||
vars:
|
||||
castellan_from_git: 1
|
||||
|
||||
- job:
|
||||
name: barbican-simple-crypto-devstack-tempest-cursive
|
||||
parent: barbican-devstack-tempest-base
|
||||
vars:
|
||||
cursive: 1
|
||||
|
||||
- job:
|
||||
name: barbican-simple-crypto-devstack-tempest-py35
|
||||
parent: barbican-devstack-tempest-base
|
||||
voting: false
|
||||
vars:
|
||||
python_version: py35
|
||||
|
||||
- job:
|
||||
name: grenade-devstack-barbican
|
||||
parent: legacy-dsvm-base
|
||||
# Start testing with pike
|
||||
branches: ^(?!stable/ocata).*$
|
||||
irrelevant-files:
|
||||
- ^(test-|)requirements.txt$
|
||||
- ^setup.cfg$
|
||||
run: playbooks/legacy/grenade-devstack-barbican/run.yaml
|
||||
post-run: playbooks/legacy/grenade-devstack-barbican/post.yaml
|
||||
required-projects:
|
||||
- openstack-dev/grenade
|
||||
- openstack-infra/devstack-gate
|
||||
- openstack/barbican
|
||||
- openstack/barbican-tempest-plugin
|
||||
- openstack/python-barbicanclient
|
||||
timeout: 7800
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- barbican-simple-crypto-devstack-tempest
|
||||
- grenade-devstack-barbican
|
||||
# TripleO jobs that deploy Barbican.
|
||||
# Note we don't use a project-template here, so it's easier
|
||||
# to disable voting on one specific job if things go wrong.
|
||||
|
@ -13,3 +76,11 @@
|
|||
voting: false
|
||||
- tripleo-ci-centos-7-scenario002-multinode-oooq-container:
|
||||
voting: false
|
||||
gate:
|
||||
queue: barbican
|
||||
jobs:
|
||||
- barbican-simple-crypto-devstack-tempest
|
||||
- grenade-devstack-barbican
|
||||
experimental:
|
||||
jobs:
|
||||
- barbican-simple-crypto-devstack-tempest-py35
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
- hosts: primary
|
||||
tasks:
|
||||
|
||||
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||
synchronize:
|
||||
src: '{{ ansible_user_dir }}/workspace/'
|
||||
dest: '{{ zuul.executor.log_root }}'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --include=/logs/**
|
||||
- --include=*/
|
||||
- --exclude=*
|
||||
- --prune-empty-dirs
|
|
@ -0,0 +1,72 @@
|
|||
- hosts: all
|
||||
name: Barbican devstack tempest base
|
||||
tasks:
|
||||
|
||||
- name: Ensure legacy workspace directory
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/workspace'
|
||||
state: directory
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
cat > clonemap.yaml << EOF
|
||||
clonemap:
|
||||
- name: openstack-infra/devstack-gate
|
||||
dest: devstack-gate
|
||||
EOF
|
||||
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||
git://git.openstack.org \
|
||||
openstack-infra/devstack-gate
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_REGEX=barbican
|
||||
export KEEP_LOCALRC=1
|
||||
|
||||
export PROJECTS="openstack/barbican $PROJECTS"
|
||||
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'"
|
||||
|
||||
export BRANCH_OVERRIDE=default
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
# Add configuration values for enabling security features in local.conf
|
||||
function pre_test_hook {
|
||||
if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then
|
||||
. $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh
|
||||
fi
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
if [ "{{ database }}" == "postgres" ] ; then
|
||||
export DEVSTACK_GATE_POSTGRES=1
|
||||
elif [ "{{ castellan_from_git }}" == "1" ] ; then
|
||||
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
||||
elif [ "{{ cursive }}" == "1" ] ; then
|
||||
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
||||
elif [ "{{ python_version }}" == "py35" ] ; then
|
||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
||||
fi
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
@ -0,0 +1,15 @@
|
|||
- hosts: primary
|
||||
tasks:
|
||||
|
||||
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||
synchronize:
|
||||
src: '{{ ansible_user_dir }}/workspace/'
|
||||
dest: '{{ zuul.executor.log_root }}'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --include=/logs/**
|
||||
- --include=*/
|
||||
- --exclude=*
|
||||
- --prune-empty-dirs
|
|
@ -0,0 +1,60 @@
|
|||
- hosts: all
|
||||
name: Autoconverted job legacy-grenade-dsvm-barbican from old job gate-grenade-dsvm-barbican-ubuntu-xenial
|
||||
tasks:
|
||||
|
||||
- name: Ensure legacy workspace directory
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/workspace'
|
||||
state: directory
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
cat > clonemap.yaml << EOF
|
||||
clonemap:
|
||||
- name: openstack-infra/devstack-gate
|
||||
dest: devstack-gate
|
||||
EOF
|
||||
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||
git://git.openstack.org \
|
||||
openstack-infra/devstack-gate
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
export PYTHONUNBUFFERED=true
|
||||
|
||||
export PROJECTS="openstack/barbican $PROJECTS"
|
||||
export PROJECTS="openstack-dev/grenade $PROJECTS"
|
||||
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||
|
||||
export GRENADE_PLUGINRC="enable_grenade_plugin barbican https://git.openstack.org/openstack/barbican"
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'"
|
||||
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_GRENADE=pullup
|
||||
export DEVSTACK_GATE_TEMPEST_REGEX=barbican
|
||||
|
||||
export BRANCH_OVERRIDE=default
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
# Add configuration values for enabling security features in local.conf
|
||||
function pre_test_hook {
|
||||
if [ -f /opt/stack/old/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then
|
||||
. /opt/stack/old/barbican-tempest-plugin/tools/pre_test_hook.sh
|
||||
fi
|
||||
}
|
||||
export -f pre_test_hook
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
Loading…
Reference in New Issue