71 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
f94a72ae2b Updated from global requirements
Change-Id: I10bdb31b204e1861a75a0d8935482688040158ce
2015-09-07 15:13:07 +00:00
Chandan Kumar
68fc8d1df1 Removing unused dependency: discover
Change-Id: I30ba5f147e1738f8232ecd0dd1f8185993676117
2015-08-28 19:57:08 +05:30
OpenStack Proposal Bot
3ff7aa8229 Updated from global requirements
Change-Id: I2ccd5f2baaf0082557ee79cf50059d279d7bd515
2015-08-21 05:08:17 +00:00
OpenStack Proposal Bot
9d2660b7d3 Updated from global requirements
Change-Id: I2a72f2680a9442e2be4d8b128edae2811290588b
2015-08-04 14:20:59 +00:00
OpenStack Proposal Bot
f788380e19 Updated from global requirements
Change-Id: I04e61bbd0a1dd7ec83f90e4b714849d6e1cc44c2
2015-07-23 12:48:44 +00:00
OpenStack Proposal Bot
08237a7699 Updated from global requirements
Change-Id: I697330940cd49bba859c193c2ebdff9261c61fe8
2015-07-18 16:03:42 +00:00
OpenStack Proposal Bot
d186f86a62 Updated from global requirements
Change-Id: Icb4e13b63318f8c691afae1f46463f1dcd86ccac
2015-07-03 20:42:20 +00:00
Robert Collins
a1e28bd54a Remove test-requirements-py3.txt.
This will unblock requirements merges.

Change-Id: I318750ec9fe471d3df57ad2f5785026dae451242
2015-06-30 23:30:16 +12:00
OpenStack Proposal Bot
bb4571adf2 Updated from global requirements
Change-Id: I6245d61f56195abfa14e88dad4a2dac9897ce2ae
2015-06-16 19:14:41 +00:00
Jenkins
0ce8843756 Merge "Switch from MySQL-python to PyMySQL" 2015-06-10 12:00:18 +00:00
Ilya Tyaptin
57a9fc5bce Add running functional scripts for defined backend
This CR allows running "functional" tox job for different backends.
Short description about expected workflow:
1. Gate job run ceilometer/ceilometer/tests/functional/hooks/post_test_hook.py
with <backend> parameter.
2. This script run "tox -efunctional" command with defined variable
CEILOMETER_TEST_BACKEND
3. After in "run-functional-tests.sh" setup script for the backend
and testr are runned.

In this CR running testr with pretty_tox.sh script added because
it allows to use subunit-trace output which developed in tempest-lib
and improve useful of testr output.

Partially implements: blueprint ceilometer-functional-tests
Change-Id: Idb66aca0b46779516db2baec856df8223dbe5c13
2015-06-04 16:29:02 +03:00
OpenStack Proposal Bot
413dd72f42 Updated from global requirements
Change-Id: Id4f2ad672a7f8c3d69a408215016068f88cb30af
2015-06-02 16:56:47 +00:00
Victor Stinner
ce08e620fa Port test_inspector to Python 3
* Replace contextlib.nested() with contextlib.ExitStack
* Add contextlib2 dependency for Python 2.6 and 2.7 to get ExitStack
* TestLibvirtInspection: set libvirtError because it must be a subclass
  of Exception on Python 3

Enable ceilometer.tests.compute.virt.libvirt.test_inspector on Python 3.

Change-Id: I82f4b911c1b3ede90805150630c222b1dd5f3474
2015-05-28 09:37:22 +02:00
Jeremy Stanley
6b7d6f68a8 Switch from MySQL-python to PyMySQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: I058419b25f55dcfd93af522aa1f5f61b8f06407e
2015-05-20 01:03:58 +00:00
OpenStack Proposal Bot
65ab3ad765 Updated from global requirements
Change-Id: I221a9368e4ce5b907efe349281f496316abc6445
2015-04-24 12:56:27 +00:00
OpenStack Proposal Bot
38aa3e19e0 Updated from global requirements
Change-Id: I0781147fab4a3d6d8a10a8faa78d470a609d3b67
2015-04-10 13:48:32 +00:00
OpenStack Proposal Bot
56a590f028 Updated from global requirements
Change-Id: I2981ca97e77a6c859745535d5d2b8e756ddc13f1
2015-03-21 00:07:28 +00:00
OpenStack Proposal Bot
b78b0d7d6f Updated from global requirements
Change-Id: I6a50e51eebccdb79f3ec871cf0ee0c51c5e34c69
2015-03-09 22:41:18 +00:00
Swami Reddy
98005590ef Add ceph object storage meters
Implemented pollster classes to get the basic meters from ceph
object storage (i.e radosgw) and added corresponding unittests.

DocImpact

Co-Authored-By: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>

Change-Id: Ib90b1d5bbaa36760a2563a044ab256c045772e20
Implements: blueprint ceph-ceilometer-integration
2015-02-24 17:25:47 +05:30
gordon chung
f02f7fd541 Revert "Add ceph object storage meters"
This reverts commit 9518c8f0c75673ea5ada7ab34af5325cbd0dabd1.

temporarily unblock gate: https://bugs.launchpad.net/ceilometer/+bug/1424657

Change-Id: I57bf5a969a2633c6cc68be9406e7008ab3b0cba9
2015-02-23 15:10:31 +00:00
Swami Reddy
9518c8f0c7 Add ceph object storage meters
Implemented pollster classes to get the basic meters from ceph
object storage (i.e radosgw) and added corresponding unittests.

DocImpact

Co-Authored-By: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>

Implements: blueprint ceph-ceilometer-integration

Change-Id: I0c71b88621e503863f153912b9c70371b194ed2c
2015-02-19 20:33:57 +05:30
Jenkins
44edecad54 Merge "Updated from global requirements" 2015-02-12 11:42:27 +00:00
OpenStack Proposal Bot
cf49a731f3 Updated from global requirements
Change-Id: I78342c7b215db66920ca07b3fb485db34902c35a
2015-02-11 13:05:32 +00:00
gordon chung
a6a9db3d27 move non-essential libs to test-requirements
happybase and oslo.vmware are optional requirements for ceilometer.
they should be in test-requirements.

Change-Id: I28ae8f12c965ef6da32aeaf5104ede88211e0ff9
2015-02-10 14:25:11 -05:00
gordon chung
cc7b8b4ecf add elasticsearch events db
this patch implements an elasticsearch driver for events.

Implements: blueprint elasticsearch-driver
Change-Id: Ie579f325685c14aed78d83de7c6d7bff326bc188
2015-02-03 22:58:07 -05:00
Chris Dent
552c63849e Declarative HTTP testing for the Ceilometer API
A 'gabbi' tox target is added which runs a declarative HTTP tests
described in YAML files in 'ceilometer/tests/gabbi/gabbits' and loaded by
'ceilometer/tests/gabbi/test_gabbi.py'. These are driven by the 'gabbi'
python package (available from PyPI).

tox and testr are configured to start and run the tests efficiently:

* a mongodb server, using multiple databases, is made available
* the API wsgi application is used directly via 'wsgi-intercept', no
  web server required
* each YAML file is run as a sequence and where number of processors
  allows, in a different test process
* individual tests can be requested in the usual way:

    tox -egabbi -- <test pattern>

  If this is done, all the tests prior to the one requested, from
  its YAML file, will be run as ordered prerequisites.
* tox targets that already run the tests in ceilometer/tests will
  also discover gabbi tests. If there is no mongodb, they will
  be skipped.

A ConfigFixture does the necessary work of adjusting the configuration
and pipeline to use the mongodb database and nothing else. An
internal InterceptFixture uses wsgi-intercept to access the
ceilometer API. Each yaml file has its own intercepted host.

Fixtures are implemented as nested context managers that are declared
per YAML file, see ceilometer/gabbi/fixtures.py and fixtures-samples.yaml
for an example of how they can be used. Every yaml file uses at
least ConfigFixture.

YAML files can use a variety of strategies for formatting requests
and evaluating the correctness of response. See:
http://gabbi.readthedocs.org/en/latest/format.html

The YAML files included here test simple API features for creating and
retrieving samples. Subsequent patches can (and should) create
additional YAML files to describe more complex scenarios that cover
the entire API (for example alarms are not touched at all by this
patch).

Change-Id: I52551f88bc3beac4bf8a92afa45ac70cd97ffcec
Implements: blueprint declarative-http-tests
2015-02-03 13:03:39 +00:00
Jenkins
b7e9872822 Merge "Remove mox from requirements" 2015-01-29 15:25:18 +00:00
Julien Danjou
db1d89f6b2 Remove mox from requirements
Since we dropped the nova notifier, we don't use mox anymore at all.

Change-Id: Idc0d5a435e1a8cc344dc7bbd164cb0d0441a3d9b
2015-01-28 11:46:44 +01:00
Julien Danjou
a5f8d66d6e Upgrade to hacking 0.10
Change-Id: Ia567c3aeb7f8516d0834dc8e4c3852e43a687043
2015-01-23 17:43:04 +01:00
OpenStack Proposal Bot
50c92861f6 Updated from global requirements
Change-Id: Iaf2a369143c29a24270e6ab28ae760670bbe9266
2014-11-23 09:33:51 +00:00
OpenStack Proposal Bot
17c1899bae Updated from global requirements
Change-Id: Idfca89cef55216326368bf6ced9ae8ae8a4263ca
2014-11-18 11:29:42 +00:00
OpenStack Proposal Bot
24f7eb6ef6 Updated from global requirements
Change-Id: If5d93a882ca29a76d33a02b789d08295ea7f5cd1
2014-10-22 19:10:09 +00:00
OpenStack Proposal Bot
80d51ec140 Updated from global requirements
Change-Id: If3e57fa8534abc39228b3251b78ecbf15d697fb8
2014-10-15 23:40:09 +00:00
Igor Degtiarov
09b80591e9 Adds pylint check for critical error in new patches
Pylint usage pattern is to take a look on a diff for pylint results between
previous code version and current patch. It's needed to critical issues only.

Change-Id: I4fc2ae732a7eaef2bc7bfacfd111ef849d003268
2014-10-07 17:27:30 +03:00
Joe H. Rahme
52598e1272 Run unit tests against PostgreSQL
* Creates a new tox env py-pgsql
* Adds a new script setupt-test-env-postgresql.sh to set up postgresql
* Renames the MySQLDbManager into SQLManage, used by both mysql and
  postgresql tests
* Creates a new scenario for posgresql in the
  MixinTestsWithBackendScenarios

Related to blueprint sql-unit-tests-on-real-backend
Co-Authored-By: Ala Rezmerita <ala.rezmerita@cloudwatt.com>

Change-Id: I60af82d5d8b5750884ba0d1ca726645f8b31448b
2014-10-03 11:02:03 +02:00
OpenStack Proposal Bot
0e6fee1591 Updated from global requirements
Change-Id: I793b6d86096209c55c934f818242ae3bc58fc56f
2014-09-19 09:15:59 +00:00
Doug Hellmann
10c7dc3aed warn against sorting requirements
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Addresses-Bug: #1365061
2014-09-03 14:28:52 -04:00
gordon chung
d0e62cab45 update requirements
current oslo.messaging isn't py33 compatible so this patch skips it
so it does not block other requirements

Change-Id: I8d438a24f456839023e4c66e861f52d513de2148
2014-08-27 11:10:45 -04:00
Chris Dent
b9f8ef3079 Use a FakeRequest object to test middleware
swift was being imported to provide a blank Request
object but very little of the functionality in that
object was being used. FakeRequest provides the
bare minimum funcionality required:

* REQUEST_METHOD
* PATH_INFO
* wsgi.input based on cStringIO
* custom header manipulation

Other functionality from swift has either been
duplicated or replaced:

* InputProxy (which counts bytes of request bodies)
  has been duplicated.
* logging uses common log functionality
* path_split does straight string splits for the desired results

Note that these changes do nothing to change functionality nor
anything to address the performance concerns being evaluated
and discussed elsewhere.

Closes bug: 1285388

Change-Id: If0fbb8f00765ac915e5b426a3661492f4b4df9f4
2014-08-14 12:51:28 +01:00
James E. Blair
e7a305f9a2 Remove docutils pin
This was added to work around bug 1091333.  A new sphinx has been
released and so this is no longer necessary.

Change-Id: I6ea61a3cc441dd1ca2ced7e2fd837a55b917f76d
2014-07-08 16:43:37 -07:00
shuangtai
0600d3877f Bump hacking to 0.9.x
Hacking 0.9.0 had a minor bug so require 0.9.2 or higher.

In order to keep this patch to just a requirements bump, ignore new and
stricter hacking rules that are being triggered. Fixing up the code and
turning these on is out of scope of this patch and is for future patches.

Change-Id: I64f46c92e49625a519c902d402be94c914c50816
2014-06-25 13:06:41 +08:00
OpenStack Proposal Bot
d006f5aa41 Updated from global requirements
Change-Id: If396742d41a181f7a589cc133d81d1df7c1461d9
2014-06-24 07:20:04 +00:00
Gordon Chung
36638dde9d sync oslo code
synchronise up to Change-Id: I0d945784cbe24e34c8ef19d3d3c9c0f012cfe176

Change-Id: I1e28a60c8def0e3f4ba0c61985cfa0b9312ea5bd
2014-06-18 11:33:04 -04:00
OpenStack Proposal Bot
8acf08ad3f Updated from global requirements
Change-Id: If6dbe9c45926d0ecc62f858f7d466896ac1872a4
2014-05-28 16:26:48 +00:00
OpenStack Proposal Bot
f9af92a654 Updated from global requirements
Change-Id: I7edbbb540599bbf51e07cffab1ebb058d88449ff
2014-05-20 12:59:42 -04:00
Sean Dague
febc8347f7 move databases to test requirements
requirements.txt is only appropriate for libraries that are
always needed, as they will be installed all the time. However
if actually trying to run multinode you won't have databases or
database access on the compute nodes.

So you can't pip install -r requirements.txt on those environments.

For an example, see Nova.

Change-Id: Ic962e518b8ffa0457031d5851f83285abb5096df
2014-02-28 20:25:15 -05:00
OpenStack Jenkins
383db9fe98 Updated from global requirements
Change-Id: I24a41905d6638bbf3c533a342cfff19be14531c9
2014-02-26 23:25:52 +00:00
Dirk Mueller
9ba48e2a87 Switch over to oslosphinx
oslosphinx is the new name of oslo.sphinx

Change-Id: I4a1ba671f581dd42115104ef752fa99f87fe802e
2014-02-13 14:52:53 +01:00
OpenStack Jenkins
53c793d3e0 Updated from global requirements
Change-Id: Iec06d578879ff880152a1fa48d952a691a1b3306
2014-02-06 03:54:43 +00:00
Julien Danjou
693204a37e nova notifier: disable tests + update sample conf
The nova notifier is again broken due to Nova switch to oslo.messaging.

Anyway, it's likely that this code has been broken for a long time, as
it is not enabled nor tested on devstack anymore. And it's very unlikely
compatible with oslo.messaging.

This patch only disable the run of the tests for now, but we might
consider removing the code before i3 if nobody stands up and try to fix
it in a way or another.

This patch also update the configuration file for the new keystoneclient
release.

Change-Id: I679154baff476957f46e7930db69aeec7e368648
2014-02-05 13:00:25 +01:00