Skip to content

Instantly share code, notes, and snippets.

@dolph
Last active May 17, 2016 20:50
Show Gist options
  • Save dolph/170e5e1d0145d758cdd91db5a4c0a713 to your computer and use it in GitHub Desktop.
Save dolph/170e5e1d0145d758cdd91db5a4c0a713 to your computer and use it in GitHub Desktop.
Tempest quickstart on Ubuntu 14.04
#!/bin/bash
set -e
# Install binary dependencies
sudo sed -i 's%archive.ubuntu.com%pubmirrors.dal.corespace.com%' /etc/apt/sources.list
sudo sed -i 's%security.ubuntu.com%pubmirrors.dal.corespace.com%' /etc/apt/sources.list
apt update
apt install -y build-essential git python-dev libffi-dev libssl-dev
# Install pip
curl https://bootstrap.pypa.io/get-pip.py > /tmp/get-pip.py
python /tmp/get-pip.py
rm /tmp/get-pip.py
# Install tempest
git clone http://git.openstack.org/openstack/tempest
cd tempest/
pip install . nose
tempest init staging
cd staging/
# configure ~/tempest/staging/etc/tempest.conf
# configure ~/tempest/staging/etc/test_accounts.yml
# Run required tests
nosetests \
tempest.api.identity.v3.test_tokens:TokensV3Test.test_create_token
# Run advisory tests
nosetests \
tempest.api.identity.v3.test_api_discovery:TestApiDiscovery.test_api_version_resources \
tempest.api.identity.v3.test_api_discovery:TestApiDiscovery.test_api_media_types \
tempest.api.identity.v3.test_api_discovery:TestApiDiscovery.test_api_version_statuses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment