24 Commits

Author SHA1 Message Date
Jenkins
81c2440286 Merge "Set python hash seed to 0 in tox.ini" 2014-08-01 22:39:36 +00:00
John Vrbanac
e0c542d158 Adding doc sections to tox.ini
This is based on the way keystone has their tox.ini set up.

Change-Id: Ic2ba7dd3de116ad6b5a16c205634e54da30d46ee
2014-08-01 13:10:45 -05:00
Christian Berendt
edd887da5b Set python hash seed to 0 in tox.ini
New tox (>=1.7.0) sets a random python hash seed by default. This is
generally good for testing because it will help keep projects working
regardless of the hash seed, but nova unittests don't currently pass
with a random hash seed so set it to the python default seed.

This change will allow us to use new tox again and remove the
restriction on tox<=1.6.1 to run unittests.

Also see Ib54364877a251db48c54dfdc43c503281ea1f04a.

Change-Id: I68695d8bd01a5a2ea683c6da2e1ad248ec69c710
Closes-Bug: #1348818
2014-07-29 10:23:10 +02:00
John Vrbanac
a7d2e84507 Excluding the docs target folder from flake8
Artifacts of the docbook build creates a target folder that will
cause the pep8 tox job to complain about the build artifacts
a bunch of failures.

Change-Id: I4cf22876504d6014ece74e58877ba8ced13f2260
2014-07-01 09:37:03 -05:00
Jenkins
1328dc8af4 Merge "Enable tox to upgrade packages if needed" 2014-06-04 15:35:33 +00:00
Juan Antonio Osorio
46fff36a02 Enable tox to upgrade packages if needed
Though it will take a bit more time, with this, running tox will upgrade
the packages to a later version if needed.

Change-Id: Iaf287d67e75189dc44760c477d880228a7d16c23
2014-06-03 14:24:40 +03:00
Paul Kehrer
37af945a99 enable all hacking checks
This change will now cause gate failures for any CR that is not
hacking clean.

Change-Id: I4e61e5940ef6da61aced1c44e91760f72f1d347e
2014-06-02 15:18:56 -05:00
Christian Berendt
b2e8c90d47 enable hacking check H234
assertEquals() logs a DeprecationWarning in Python 3.x,
use assertEqual() instead. The same goes for assertNotEquals().

Change-Id: Id7e6aac040a63870929cdf3267e2fc23382bf342
2014-05-29 21:34:17 +02:00
jfwood
b64228a945 Revive Alembic-based database migration logic.
Alembic migrations were introduced to Barbican a while ago but have not been
used recently. This CR revisits the migration logic and ensures that time-zero
database tables creation is distinguished from Alembic-base schema updates.
The associated database migration script is also revived, allowing for
schema migrations outside of the Barbican boot process.

Change-Id: I3e7fd7ac3f629da18329c22ad11cb9ccc1b7f9f9
Implements: blueprint db-revive-migrations
2014-03-25 11:04:08 -05:00
Donald Stufft
a5d2705e90 Switch to testtools and make barbican compatible with Python2.6
Change-Id: I1e08612d6c9d43808d1f1db166ea1a807c63aae8
2014-03-14 15:14:09 -04:00
chadlung
0e0d062113 Adjust contrib location, minor adjustments
Change-Id: I0a962f487ac3362b209422554286e76441daa06a
2014-02-26 15:33:30 -06:00
Paul Kehrer
70878d48f1 Switch to testr
Change-Id: I6ca365e0b0d2ec86e0b61ce4c58b967260d480a7
2014-01-27 18:22:54 -06:00
Douglas Mendizabal
9da66102d4 Remove custom install_command for argparse
Installing argparse now works with pip 1.5 without the need
for externa/unverified flags.

Change-Id: I57a62b1703f71149a305a4cb9d74367a642360b7
2014-01-22 18:30:24 -06:00
Steve Heyman
1526e63c9d Enabled branch coverage for barbican. Took out inclusive coverage.
Change-Id: Ie81ba92103e35962f5e85b1442237d6617f44736
2014-01-06 13:37:30 -06:00
John Vrbanac
b8e8287490 Attempting to fix the tox environments
* Corrected flake8 environment (running through hacking.sh)
* Added exception for netaddr for pip 1.5
* Ignoring no-source errors with coverage

Change-Id: I2017946fd0db7c69f6a2d8d0be0fc79f3c5d5439
2014-01-02 15:41:26 -06:00
Monty Taylor
8f1c652862 Migrate to pbr
OpenStack uses pbr for setuptools/build and version releases. As
barbican looks towards incubation, migrate to being pbr based.

Change-Id: I3c7a389596ca579a5613ea98b21cdc6967e49cc7
2013-12-18 11:47:13 -06:00
Paul Kehrer
affa4db238 Remove padding code and tests in the p11 plugin
Added new tox target "coverage" for generating html coverage.
To run: tox -e coverage

Change-Id: Ia60a0ed0749c27d9f9ee17058b0b027adc485e30
2013-08-15 08:49:08 -05:00
Douglas Mendizabal
f119c73537 Added hacking target to tox.
Change-Id: I9d3cfb9b0ec6511837ac506483e90afa5579ac29
2013-08-04 14:44:17 -05:00
John Wood
a98b5b7c02 Add .gitreviw file; Fixed pyflakes violations; Fixed pep7 violations; Fixed tox.ini config;
Change-Id: Ia0f42318babb87a2be3db005c1939565590b2e4d
2013-06-27 10:07:28 -05:00
John Wood
af4c6f476c Added pythonpath to where config.py is located 2013-04-02 04:46:57 +00:00
John Wood
8f783f473b Merge of previous project work into this project 2013-04-01 18:26:03 -05:00
jfwood
fb13f06fb3 added missing args from tox config 2013-03-01 20:14:53 -08:00
jfwood
d4025c2dc3 added pip and test requirements 2013-03-01 14:55:06 -08:00
John Wood
c30f67b03b adding tox.ini file 2013-03-01 08:17:18 -08:00