Merge "Upgrade manila's devstack-job to tempest-job"
This commit is contained in:
commit
e7b8e5e8c2
@ -1,5 +1,5 @@
|
|||||||
- job:
|
- job:
|
||||||
name: gate-manila-devstack-dsvm
|
name: gate-manila-tempest-dsvm-neutron
|
||||||
node: devstack-precise
|
node: devstack-precise
|
||||||
|
|
||||||
wrappers:
|
wrappers:
|
||||||
@ -14,19 +14,39 @@
|
|||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
export PYTHONUNBUFFERED=true
|
export PYTHONUNBUFFERED=true
|
||||||
export DEVSTACK_GATE_TIMEOUT=60
|
export DEVSTACK_GATE_TIMEOUT=60
|
||||||
export ENABLED_SERVICES=manila,m-api,m-shr,m-sch
|
export ENABLED_SERVICES=manila,m-api,m-shr,m-sch,tempest
|
||||||
export PROJECTS="stackforge/manila $PROJECTS"
|
export PROJECTS="stackforge/manila $PROJECTS"
|
||||||
export PROJECTS="stackforge/python-manilaclient $PROJECTS"
|
export PROJECTS="stackforge/python-manilaclient $PROJECTS"
|
||||||
|
export DEVSTACK_GATE_TEMPEST_ALLOW_TENANT_ISOLATION=1
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
export TEMPEST_CONCURRENCY=1
|
||||||
|
export KEEP_LOCALRC=1
|
||||||
|
echo "API_RATE_LIMIT=False" >> localrc
|
||||||
|
echo "SHARE_BACKING_FILE_SIZE=12G" >> localrc
|
||||||
|
echo "VOLUME_BACKING_FILE_SIZE=12G" >> localrc
|
||||||
|
|
||||||
function pre_test_hook {
|
function pre_test_hook {
|
||||||
# Install Manila devstack integration
|
# Install manila devstack integration
|
||||||
MANILA_BASE=/opt/stack/new/manila/contrib/devstack
|
cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack
|
||||||
DEVSTACK_BASE=/opt/stack/new/devstack
|
# Install manila tempest integration
|
||||||
cp ${MANILA_BASE}/lib/* ${DEVSTACK_BASE}/lib
|
cp -r $BASE/new/manila/contrib/tempest/tempest/* $BASE/new/tempest/tempest
|
||||||
cp ${MANILA_BASE}/extras.d/* ${DEVSTACK_BASE}/extras.d
|
tests_pathes='tempest.cli.*manila*'
|
||||||
|
if [[ ! "$ZUUL_PROJECT" =~ "*python-manilaclient*" ]]; then
|
||||||
|
tests_pathes+=' tempest.api.share*';
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
export -f pre_test_hook
|
export -f pre_test_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
# let us control if we die or not
|
||||||
|
set +o errexit
|
||||||
|
cd $BASE/new/tempest
|
||||||
|
sudo chown -R tempest:stack $BASE/new/tempest
|
||||||
|
echo "Running tempest manila test suites"
|
||||||
|
sudo -H -u tempest tox -evenv bash tools/pretty_tox.sh \"$tests_pathes\" -- --concurrency=$TEMPEST_CONCURRENCY
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
./safe-devstack-vm-gate-wrap.sh
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
- link-logs
|
- link-logs
|
||||||
|
@ -557,7 +557,7 @@ jobs:
|
|||||||
voting: false
|
voting: false
|
||||||
- name: gate-rubick-python33
|
- name: gate-rubick-python33
|
||||||
voting: false
|
voting: false
|
||||||
- name: gate-manila-devstack-dsvm
|
- name: gate-manila-tempest-dsvm-neutron
|
||||||
voting: false
|
voting: false
|
||||||
- name: gate-climate-devstack-dsvm
|
- name: gate-climate-devstack-dsvm
|
||||||
voting: false
|
voting: false
|
||||||
@ -3565,12 +3565,12 @@ projects:
|
|||||||
- gate-manila-pep8
|
- gate-manila-pep8
|
||||||
- gate-manila-python26
|
- gate-manila-python26
|
||||||
- gate-manila-python27
|
- gate-manila-python27
|
||||||
- gate-manila-devstack-dsvm
|
- gate-manila-tempest-dsvm-neutron
|
||||||
gate:
|
gate:
|
||||||
- gate-manila-pep8
|
- gate-manila-pep8
|
||||||
- gate-manila-python26
|
- gate-manila-python26
|
||||||
- gate-manila-python27
|
- gate-manila-python27
|
||||||
- gate-manila-devstack-dsvm
|
- gate-manila-tempest-dsvm-neutron
|
||||||
post:
|
post:
|
||||||
- manila-branch-tarball
|
- manila-branch-tarball
|
||||||
- manila-coverage
|
- manila-coverage
|
||||||
@ -4286,10 +4286,12 @@ projects:
|
|||||||
- gate-python-manilaclient-pep8
|
- gate-python-manilaclient-pep8
|
||||||
- gate-python-manilaclient-python26
|
- gate-python-manilaclient-python26
|
||||||
- gate-python-manilaclient-python27
|
- gate-python-manilaclient-python27
|
||||||
|
- gate-manila-tempest-dsvm-neutron
|
||||||
gate:
|
gate:
|
||||||
- gate-python-manilaclient-pep8
|
- gate-python-manilaclient-pep8
|
||||||
- gate-python-manilaclient-python26
|
- gate-python-manilaclient-python26
|
||||||
- gate-python-manilaclient-python27
|
- gate-python-manilaclient-python27
|
||||||
|
- gate-manila-tempest-dsvm-neutron
|
||||||
post:
|
post:
|
||||||
- python-manilaclient-branch-tarball
|
- python-manilaclient-branch-tarball
|
||||||
- python-manilaclient-coverage
|
- python-manilaclient-coverage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user