e6f9855277
Unbreak python-barbicanclient gate ("enable_plugin barbican" in DEVSTACK_LOCAL_CONFIG was removed here: Idd94b900b238c865a4074ec7d1f9c1c16ef8d434) Also enables only tempest, rabbit, mysql, and key services, which should make stacking faster anyway. Change-Id: I95b5390ef24a754f66ccdb9ccde34cd0820b02fd
257 lines
8.4 KiB
YAML
257 lines
8.4 KiB
YAML
- job-template:
|
|
name: 'gate-barbican-{plugin}-devstack{special}-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export ENABLED_SERVICES='{services}'
|
|
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"
|
|
if [ "{special}" == "-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"
|
|
else
|
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
fi
|
|
|
|
function gate_hook {{
|
|
$BASE/new/barbican/devstack/gate_hook.sh
|
|
}}
|
|
export -f gate_hook
|
|
|
|
function post_test_hook {{
|
|
cd /opt/stack/new/barbican/functionaltests
|
|
./post_test_hook.sh '{plugin}'
|
|
}}
|
|
export -f post_test_hook
|
|
|
|
if [ "{special}" == "-postgres" ] ; then
|
|
export DEVSTACK_GATE_POSTGRES=1
|
|
fi
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-barbican-{plugin}-dsvm-functional{special}-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin barbican git://git.openstack.org/openstack/barbican
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export OVERRIDE_ENABLED_SERVICES='{services}'
|
|
export PROJECTS="openstack/barbican $PROJECTS"
|
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
|
|
|
if [ "{special}" == "-py35" ] ; then
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
else
|
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
fi
|
|
|
|
function gate_hook {{
|
|
$BASE/new/barbican/devstack/gate_hook.sh
|
|
}}
|
|
export -f gate_hook
|
|
|
|
function post_test_hook {{
|
|
cd /opt/stack/new/barbican/functionaltests
|
|
./post_test_hook.sh '{plugin}'
|
|
}}
|
|
export -f post_test_hook
|
|
|
|
if [ "{special}" == "-postgres" ] ; then
|
|
export DEVSTACK_GATE_POSTGRES=1
|
|
fi
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-python-barbicanclient-devstack-dsvm-{node}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin barbican git://git.openstack.org/openstack/barbican
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export OVERRIDE_ENABLED_SERVICES=tempest,rabbit,mysql,key
|
|
export PROJECTS="openstack/barbican $PROJECTS"
|
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
|
|
|
function gate_hook {{
|
|
$BASE/new/barbican/devstack/gate_hook.sh
|
|
}}
|
|
export -f gate_hook
|
|
|
|
function post_test_hook {{
|
|
cd /opt/stack/new/python-barbicanclient/functionaltests
|
|
./post_test_hook.sh
|
|
}}
|
|
export -f post_test_hook
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{pipeline}-barbican-{plugin}-dsvm-tempest{special}-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
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={branch-override}
|
|
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 [ "{special}" == "-postgres" ] ; then
|
|
export DEVSTACK_GATE_POSTGRES=1
|
|
elif [ "{special}" == "-castellan-from-git" ] ; then
|
|
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
|
elif [ "{special}" == "-cursive" ] ; then
|
|
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
|
elif [ "{special}" == "-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
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-grenade-dsvm-barbican-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
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={branch-override}
|
|
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
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|