75427ad7f9
We want to allow for integration tests to test deprecated panels. This means that we need to override the configurations provided by the panels and force a 'legacy' setting. On the Infra side, we need to pass in an environment variable that tells this override to be enabled. Depends-On: I20232ef16ae60a7151e267b506af471ebfed2f7f Change-Id: If5a3e273098aa726e12f9076c0273a5afaf233d2 Partially-Implements: blueprint test-deprecated-features
24 lines
569 B
Bash
Executable File
24 lines
569 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script will be executed inside pre_test_hook function in devstack gate
|
|
|
|
set -x
|
|
|
|
HORIZON_CODE_DIR=/opt/stack/new/horizon
|
|
|
|
cd ${HORIZON_CODE_DIR}/openstack_dashboard/local/local_settings.d
|
|
mv _20_integration_tests_scaffolds.py.example _20_integration_tests_scaffolds.py
|
|
|
|
if [ "$1" == "deprecated" ] ; then
|
|
|
|
mv _2010_integration_tests_deprecated.py.example _2010_integration_tests_deprecated.py
|
|
cat > ${HORIZON_CODE_DIR}/openstack_dashboard/test/integration_tests/local-horizon.conf <<EOF
|
|
[image]
|
|
panel_type=legacy
|
|
|
|
[flavors]
|
|
panel_type=legacy
|
|
EOF
|
|
|
|
fi
|