Fix functional tests

Manila's ci scripts disable configuring the
default share and share group types if testing
with the dummy driver.

We want to continue using the the default types
mechanism in python-manilaclient, until we decide
not to.

Change-Id: I14544bea728286eeb33461e724d991fe556a4269
Closes-Bug: #1787292
This commit is contained in:
Goutham Pacha Ravi 2018-08-15 16:21:35 -07:00
parent 6d4e4a80c3
commit e7fa7cd158

View File

@ -17,12 +17,16 @@
# Run manila's pre_test_hook.sh script first
source $BASE/new/manila/contrib/ci/pre_test_hook.sh True dummy multibackend
sudo -H pip install virtualenv
virtualenv /tmp/devstack-tools
/tmp/devstack-tools/bin/pip install -U devstack-tools==0.4.0
localconf=$BASE/new/devstack/local.conf
DSCONF=/tmp/devstack-tools/bin/dsconf
echo "[[local|localrc]]" >> $localconf
# Set big quota for share networks to avoid limit exceedances
echo "MANILA_OPTGROUP_DEFAULT_quota_share_networks=50" >> $localconf
$DSCONF setlc $localconf MANILA_OPTGROUP_DEFAULT_quota_share_networks 50
$DSCONF setlc $localconf MANILA_CONFIGURE_DEFAULT_TYPES True
# Enable and use only v3 of Identity API
echo "IDENTITY_API_VERSION=3" >> $localconf
echo "ENABLE_IDENTITY_V2=False" >> $localconf
$DSCONF setlc $localconf IDENTITY_API_VERSION 3
$DSCONF setlc $localconf ENABLE_IDENTITY_V2 False