summaryrefslogtreecommitdiff
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2015-05-27Clean up the image functional testJeff Peeler1-2/+3
1. Move setup_docker.sh to tools directory 2. Make a setup_gate.sh that installs necessary packages including docker and starts docker. 3. Add logging output. 4. Add default test timeout of 2 hours. 5. Add user to the docker group before running test cases. 6. Run image build as dockerroot group. This patch has to be one commit to fix the gate in one go. Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I83f3cdb1dabf0dfface589c581cb22c155467acc (cherry picked from commit 78b27e3e6017ceda4e15c5b2c87516ec3750fd98)
2015-05-27Add functional tests to toxJeff Peeler1-4/+43
This adds functional tests to tox, along with a number of prerequisite steps. Since this is primarily a bash project, pbr usage has been avoided. Tests are to be written in python and put in the tests directory. Running tox -e setupenv will execute a setup script (tests/setup_docker.sh) to ensure the running instance of docker meets the minimum version requirement. Running tox -e images will execute the image building script (tools/build-all-docker-images) and will parse the resulting output to report failures. Running tox -e startenv will generate the environment file, run "tools/kolla start", and run first time initialization (eventually). Running tox -e functional is for actually testing the deployed OpenStack environment via a series of tests utilizing the client APIs. Change-Id: Iff6dfdca43f0c44d471e7540a7836e56a0de4507 (cherry picked from commit 21cd478cbd0bf14f9522e088c99399886a8fcf28)
2014-10-31add maintainer check to testsLars Kellogg-Stedman1-0/+1
Change-Id: I6ee985e694142aa7dadeb085b77910667ac6359f
2014-10-14modify tox config to use new validation codeLars Kellogg-Stedman1-1/+2
this patch modifies tox.ini to perform both the JSON and YAML validation checks. Change-Id: Ie8db699f19dc7698407bab1e3d51dcb6184cfad2
2014-10-03Rename validate-json target as pep8 and improve itChmouel Boudjnah1-2/+2
When discussing with the infra guys they have mentioned it would be easier to call our linting job pep8, it's indeed badly named but that target has been used all over openstack for linting projects. As a bonus point it would make things easier to add the job to the gate. To make that patch much more interesting than a three characters change I have improved the validate-samples script to detect if jsonlint was present and if not fallback to the standard python -mjson.tool which give you less details but nonetheless works if jsonlint is present. Change-Id: I8d71a229917004dfd7223a16e4f270101cf2f0a8
2014-10-03Add validate-json tox targetChmouel Boudjnah1-0/+11
This is a simple JSON validation script based on demjson python library, we do some shell script trickeries to exit properly if there is a failure for tox (should probably patch demjson to properly exit instead). Change-Id: I930908336deef7daeaab5b55ba2031c64698d880 Implements: blueprint json-validation-gate