Do not require functional_creds.conf for functional tests
Pass OS_* env variables for functional tests to use environment variables if they are available instead of config file Change-Id: Ic1b4752bf558c57974b5f2a4d5a45aee4a940bbb
This commit is contained in:
@@ -37,19 +37,6 @@ sudo chown -R jenkins:stack $CINDERCLIENT_DIR
|
|||||||
cd $STACK_DIR
|
cd $STACK_DIR
|
||||||
source openrc admin admin
|
source openrc admin admin
|
||||||
|
|
||||||
# Store these credentials into the config file
|
|
||||||
CREDS_FILE=$CINDERCLIENT_DIR/functional_creds.conf
|
|
||||||
cat <<EOF > $CREDS_FILE
|
|
||||||
# Credentials for functional testing
|
|
||||||
[auth]
|
|
||||||
uri = $OS_AUTH_URL
|
|
||||||
|
|
||||||
[admin]
|
|
||||||
user = $OS_USERNAME
|
|
||||||
tenant = $OS_TENANT_NAME
|
|
||||||
pass = $OS_PASSWORD
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Go to the cinderclient dir
|
# Go to the cinderclient dir
|
||||||
cd $CINDERCLIENT_DIR
|
cd $CINDERCLIENT_DIR
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@@ -39,7 +39,7 @@ setenv =
|
|||||||
# The OS_CACERT environment variable should be passed to the test
|
# The OS_CACERT environment variable should be passed to the test
|
||||||
# environments to specify a CA bundle file to use in verifying a
|
# environments to specify a CA bundle file to use in verifying a
|
||||||
# TLS (https) server certificate.
|
# TLS (https) server certificate.
|
||||||
passenv = OS_CACERT
|
passenv = OS_*
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
show-source = True
|
show-source = True
|
||||||
|
Reference in New Issue
Block a user