18 Commits

Author SHA1 Message Date
Steven Dake
33d8d32381 Remove validate-min-env-vars gating
We don't use config-internal anymore, so remove validate-min-env-vars
from being gated upon.  This is becuse there is no minimum
environment variables required.  While we are at it we remove
min-env.

Partially-Implements: blueprint remove-config-internal

Change-Id: Ibe2947b35e4dc1549e82acc66c01153495a91882
2015-08-07 20:18:33 -07:00
Sam Yaple
98a379b0fd Reduce dependencies on the dest nodes
Currently we require a slew of deps on each destination node, this
includes a gcc compiler and installing things via pip. We can remove
these dependencies by containerizing them and running and Ansible
inside the container itself. The container would then report back
facts about idempotency.

DocImpact
Closes-Bug: #1481495
Implements: blueprint containerize-dependencies
Change-Id: I3dfccbf9fafc06ffc36e78f3006fe5d3367891df
2015-08-06 01:32:05 +00:00
digambar
e245eb2ff5 Implement kolla-compose script
Renamed kolla script to kolla-compose
Update change in the dev guide also

Change-Id: I6cae3d13752ecb4bb3deeb91c5e0f827fde80c2a
Implements: blueprint kolla-compose-script
2015-07-27 12:18:56 +05:30
Borne Mace
0cd4e9bc7c Removed all validate-contents tests from pep8 test
Change-Id: I2762ecf64fab090f3594bf4330dea101ba1434dd
Partially-Implements: blueprint rename-pep8-validate
2015-07-20 08:42:08 -07:00
Sam Yaple
2d61572e17 filter ansible/library from tox.ini
Change-Id: Ib063ce61fd262e77c42cb99c58983051be4c34b0
Closes-Bug: #1473697
2015-07-12 03:13:13 +00:00
Borne Mace
160d163878 Enable pep8 tests
Change-Id: I476c335b60d3195a2381a91ad05d8f64f62190d0
Partially-Implements: blueprint enable-flake8
2015-07-10 14:13:47 -07:00
Jenkins
75e01a2fb2 Merge "Add min env vars doc validation to pep8 gate" 2015-07-07 13:55:21 +00:00
Borne Mace
3875d6d302 Fixing tox tests - split out validation tests
Added additional tox test for json / yaml / link /
dockerfile validation. This currently mimics the
existing pep8 test which will be updated to run flake8

Change-Id: Id4657e6d4f4921ab419dc84e8d62468a827aaeb1
Implements: blueprint rename-pep8-validate
2015-07-06 16:41:45 -07:00
Martin André
d006122d9c Add min env vars doc validation to pep8 gate
Change-Id: I7711e9ee597184e34c88c0deeaf916fb1547b704
Implements: blueprint add-min-env-vars-gate
2015-07-05 09:08:15 +09:00
Martin André
d30712a34c Add link validation to pep8 gate
Change-Id: I2e6ac673fa9934850da6dec7b6cf3618c1437de0
Implements: blueprint add-broken-symlink-check
2015-07-02 09:09:52 +09:00
Steven Dake
e7edb092c1 Ignore .tox directory to remove some bashate failures
Change-Id: I7342e4b0b31e0add681ab5b24083eda10031f0cf
Partially-Implements: blueprint bashate-gate
2015-06-08 11:01:50 -07:00
Steven Dake
5a093488c3 Remove 1000 bashate failures by ignoring .git directory
Change-Id: I64f04bddf2d7fac1c6dd0a801b974501b24f3ac0
Partially-Implements: blueprint bashate-gate
2015-06-07 12:17:59 -07:00
Jeff Peeler
78b27e3e60 Clean up the image functional test
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
2015-05-26 15:01:28 -04:00
Jeff Peeler
21cd478cbd Add functional tests to tox
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
2015-05-13 15:38:07 -04:00
Lars Kellogg-Stedman
6666d1e973 add maintainer check to tests
Change-Id: I6ee985e694142aa7dadeb085b77910667ac6359f
2014-10-31 10:10:27 -04:00
Lars Kellogg-Stedman
8b4f8d91ad modify tox config to use new validation code
this patch modifies tox.ini to perform both the JSON and YAML validation
checks.

Change-Id: Ie8db699f19dc7698407bab1e3d51dcb6184cfad2
2014-10-14 22:36:43 -04:00
Chmouel Boudjnah
5aa235066c Rename validate-json target as pep8 and improve it
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-03 21:18:12 +02:00
Chmouel Boudjnah
ac0b2a797f Add validate-json tox target
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
2014-10-03 09:59:19 +00:00