Prepare repo for gerrit

This commit is contained in:
Ryan Beisner 2016-06-01 20:17:19 +00:00
parent d889c379b5
commit e2c90d5828
10 changed files with 92 additions and 11 deletions

6
.gitignore vendored
View File

@ -1,3 +1,7 @@
.tox
bin
build
.coverage
.testrepository
.tox
*.sw[nop]
*.pyc

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/charm-tempest.git

8
.testr.conf Normal file
View File

@ -0,0 +1,8 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ./unit_tests $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

27
README.md Normal file
View File

@ -0,0 +1,27 @@
# Overview
Tempest is a set of integration tests to be run against a live OpenStack cluster. Tempest has batteries of tests for OpenStack API validation, Scenarios, and other specific tests useful in validating an OpenStack deployment.
The Tempest Charm can be deployed into a new or existing Juju model containing an OpenStack deployment to execute sets or subsets of Tempest tests.
# Building
```
tox -e build
```
# Usage
At this time, the Tempest charm is in development and is in a proof-of-concept state. Development and related discussion occurs on the freenode #juju irc channel.
TLDR: Deploy the built charm and relate it to keystone and openstack-dashboard. See config.yaml as annotated.
More docs to come as this matures.
# Contact Information
Report bugs on [Launchpad](http://bugs.launchpad.net/charms/+source/tempest/+filebug)

17
copyright Normal file
View File

@ -0,0 +1,17 @@
Format: http://dep.debian.net/deps/dep5/
Files: *
Copyright: Copyright 2011, Canonical Ltd., All Rights Reserved.
License: GPL-3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

@ -1,8 +1,8 @@
name: tempest
summary: Openstack integration test suite
summary: OpenStack integration test suite
maintainer: Liam young <liam.young@canonical.com>
description: |
tempest is a set of integration tests to be run against a live Openstack
Tempest is a set of integration tests to be run against a live Openstack
cluster. Tempest has batteries of tests for Openstack API validation,
scenarios, and other specific tests useful in validating an Openstack
deployment.

8
test-requirements.txt Normal file
View File

@ -0,0 +1,8 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
coverage>=3.6
mock>=1.2
flake8>=2.2.4,<=2.4.1
os-testr>=0.4.1
requests==2.6.0

0
tests/writeme Normal file
View File

29
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
skipsdist = True
envlist = generate
envlist = pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
@ -11,18 +11,31 @@ setenv = VIRTUAL_ENV={envdir}
JUJU_REPOSITORY={toxinidir}/build
passenv = http_proxy https_proxy
install_command =
pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
pip install --allow-unverified python-apt {opts} {packages}
commands = ostestr {posargs}
[testenv:generate]
[testenv:build]
basepython = python2.7
commands =
charm-build --log-level DEBUG -o {toxinidir}/build .
deps = -r{toxinidir}/requirements.txt
# TODO: Add unit tests
# [testenv:py27]
# basepython = python2.7
# deps = -r{toxinidir}/requirements.txt
# -r{toxinidir}/test-requirements.txt
[testenv:pep8]
basepython = python2.7
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} hooks unit_tests tests actions
charm-proof
[testenv:venv]
commands = {posargs}
[testenv:lint]
basepython = python2.7
commands = flake8 {posargs} charm/reactive charm/lib
[flake8]
ignore = E402,E226
exclude = hooks/charmhelpers

0
unit_tests/writeme Normal file
View File