Rename GNOCCHI_SERVICE_URL to GNOCCHI_ENDPOINT

That makes it possible to use directly pifpaf variables.

Change-Id: I89dc322330ceb030965df25cc062b7255efa5775
This commit is contained in:
Julien Danjou 2017-04-26 14:38:30 +02:00
parent ae136a04fc
commit 7a80be1f58
3 changed files with 4 additions and 5 deletions

View File

@ -39,10 +39,10 @@ cd $GNOCCHI_DIR
openstack catalog list
export GNOCCHI_SERVICE_TOKEN=$(openstack token issue -c id -f value)
export GNOCCHI_SERVICE_URL=$(openstack catalog show metric -c endpoints -f value | awk '/public/{print $2}')
export GNOCCHI_ENDPOINT=$(openstack catalog show metric -c endpoints -f value | awk '/public/{print $2}')
export GNOCCHI_AUTHORIZATION="" # Temporary set to transition to the new functional testing
curl -X GET ${GNOCCHI_SERVICE_URL}/v1/archive_policy -H "Content-Type: application/json"
curl -X GET ${GNOCCHI_ENDPOINT}/v1/archive_policy -H "Content-Type: application/json"
sudo gnocchi-upgrade

View File

@ -26,7 +26,7 @@ TESTS_DIR = 'gabbits'
def load_tests(loader, tests, pattern):
"""Provide a TestSuite to the discovery process."""
gnocchi_url = os.getenv('GNOCCHI_SERVICE_URL')
gnocchi_url = os.getenv('GNOCCHI_ENDPOINT')
if gnocchi_url:
parsed_url = urlparse.urlsplit(gnocchi_url)
prefix = parsed_url.path.rstrip('/') # turn it into a prefix
@ -45,4 +45,4 @@ def load_tests(loader, tests, pattern):
port=port,
prefix=prefix)
elif os.getenv("GABBI_LIVE"):
raise RuntimeError('"GNOCCHI_SERVICE_URL" is not set')
raise RuntimeError('"GNOCCHI_ENDPOINT" is not set')

View File

@ -44,7 +44,6 @@ for storage in ${GNOCCHI_TEST_STORAGE_DRIVERS}; do
eval $(pifpaf -e INDEXER run $indexer)
eval $(pifpaf -e GNOCCHI run gnocchi --indexer-url $INDEXER_URL --storage-url $STORAGE_URL)
export GNOCCHI_SERVICE_URL=$GNOCCHI_ENDPOINT
export GNOCCHI_SERVICE_TOKEN="" # Just make gabbi happy
export GNOCCHI_AUTHORIZATION="basic YWRtaW46" # admin in base64
export OS_TEST_PATH=gnocchi/tests/functional_live