847f41c275
Also updates exercise script which will catch this. And also fixes an issue due to which the AIM gate job was running against the master branch of GBP source versus the branch checked out for this patchset by the infra job. This is fixed by changing the GBP devstack plugin name to group-based-policy instead of the earlier name 'gbp'. This allows the job to use the 'group-based-policy' source directory cloned by the OpenStack infra job (for the current patchset) as opposed to cloning into a new 'gbp' directory from the master. Unfortunately, a lot of special casing needs to be introduced for configuration of other services as well. It is not possible to get away from this special casing to be able to install from the intree devstack plugin and the GBP master branch is behind the OpenStack master release. Closes-bug: 1674024 Change-Id: I5bd3f1c3ecfbedbd24243c2c111472dcff9059a2
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
source functions-gbp
|
|
|
|
set -x
|
|
|
|
trap prepare_logs ERR
|
|
|
|
sudo git --git-dir=/opt/stack/new/neutron/.git --work-tree=/opt/stack/new/neutron show --name-only
|
|
sudo git --git-dir=/opt/stack/new/neutron/.git --work-tree=/opt/stack/new/neutron status
|
|
sudo pip show neutron-lib
|
|
sudo git --git-dir=/opt/stack/new/group-based-policy/.git --work-tree=/opt/stack/new/group-based-policy show --name-only
|
|
sudo git --git-dir=/opt/stack/new/group-based-policy/.git --work-tree=/opt/stack/new/group-based-policy status
|
|
|
|
# Run exercise scripts
|
|
$TOP_DIR/exercise.sh
|
|
exercises_exit_code=$?
|
|
|
|
# Check if exercises left any resources undeleted
|
|
check_residual_resources admin admin
|
|
check_residual_resources admin demo
|
|
check_residual_resources demo demo
|
|
|
|
# Run gbpfunc integration tests
|
|
echo "Running gbpfunc test suite"
|
|
export PYTHONPATH="$GBP_FUNC_DIR:${PYTHONPATH}"
|
|
cd $GBP_FUNC_DIR/testcases
|
|
# Run shared_resource tests as admin cred
|
|
source_creds $TOP_DIR/openrc admin admin
|
|
python suite_admin_run.py
|
|
gbpfunc_admin_exit_code=$?
|
|
# Run rest of the tests as non-admin cred
|
|
source_creds $TOP_DIR/openrc demo demo
|
|
python suite_non_admin_run.py upstream
|
|
gbpfunc_non_admin_exit_code=$?
|
|
|
|
# Prepare the log files for Jenkins to upload
|
|
prepare_logs
|
|
|
|
exit $(($exercises_exit_code+$gbpfunc_admin_exit_code+$gbpfunc_non_admin_exit_code))
|