summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorLuis Pabon <lpabon@redhat.com>2013-11-26 23:01:51 -0500
committerLuis Pabon <lpabon@redhat.com>2013-11-27 04:37:11 -0800
commit3796a1c757f2ea805afead70a58d84ea6ad46374 (patch)
treed681a734f37e169a983dd233b5b00f0fecc08380 /tox.ini
parentb6a6621ded41fb56c1a2797d9590a79f14d4c1f4 (diff)
Setup and run in a virtual environment
Using tox, developers can down drop into an environment which sets up and runs gluster-swift with gswauth authentication. The developer is then dropped into a shell which is running inside the tox environment. OpenStack Swift and Gluster-Swift are available to the developer. Once the developer exists the shell, the environment will be cleaned up and terminated. Usage: tox -e run Example: $ tox -e run GLOB sdist-make: /home/lpabon/gluster-swift/setup.py run inst-nodeps: /home/lpabon/gluster-swift/.tox/dist/gluster_swift-1.10.1-0.zip run runtests: commands[0] | bash tools/tox_run.sh Ring files are prepared in /etc/swift. Please restart object store services Redirecting to /bin/systemctl start memcached.service Starting proxy-server...(/etc/swift/proxy-server.conf) Starting container-server...(/etc/swift/container-server.conf) Starting account-server...(/etc/swift/account-server.conf) Starting object-server...(/etc/swift/object-server.conf) bash-4.2$ swauth-list -K gswauthkey {"accounts": [{"name": "test"}, {"name": "test2"}]} bash-4.2$ swauth-list -K gswauthkey test {"services": {"storage": {"default": "local", "local": "http://127.0.0.1:8080/v1/AUTH_test"}}, "account_id": "AUTH_test", "users": [{"name": "tester"}, {"name": "tester3"}]} bash-4.2$ swauth-list -K gswauthkey test tester {"groups": [{"name": "test:tester"}, {"name": "test"}, {"name": ".admin"}], "auth": "plaintext:testing"} bash-4.2$ exit exit Redirecting to /bin/systemctl stop memcached.service Signal proxy-server pid: 22862 signal: 15 Signal container-server pid: 22863 signal: 15 Signal account-server pid: 22864 signal: 15 Signal object-server pid: 22865 signal: 15 proxy-server (22862) appears to have stopped container-server (22863) appears to have stopped account-server (22864) appears to have stopped object-server (22865) appears to have stopped run: commands succeeded congratulations :) Change-Id: I98de5d1b1698b4cd355888f2c15a46df021a9e87 Signed-off-by: Luis Pabon <lpabon@redhat.com> Reviewed-on: http://review.gluster.org/6365 Reviewed-by: pushpesh sharma <psharma@redhat.com> Tested-by: pushpesh sharma <psharma@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 7 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 747197a..b15b71e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,6 +2,7 @@
envlist = py26,py27,pep8,functest,ksfunctest
[testenv]
+whitelist_externals=bash
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
@@ -21,13 +22,11 @@ downloadcache = ~/cache/pip
[testenv:functest]
changedir = {toxinidir}
-whitelist_externals=bash
commands = bash tools/functional_tests.sh
bash tools/gswauth_functional_tests.sh
[testenv:ksfunctest]
changedir = {toxinidir}
-whitelist_externals=bash
commands = bash tools/keystone_functional_tests.sh
[testenv:pep8]
@@ -43,7 +42,12 @@ commands =
setenv = NOSE_WITH_COVERAGE=1
[testenv:venv]
-commands = {posargs}
+commands =
+changedir = {toxinidir}
+
+[testenv:run]
+changedir = {toxinidir}
+commands = bash tools/tox_run.sh
[flake8]
ignore = H