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
Added new hardware inspector interface

Added a new hardware inspector interface: inspect_generic and its snmp
implementation. The old interface will be removed later.

Partial implements: blueprint snmp-improvement.
Partial-Bug: 1286132

Change-Id: I847cfdad5b6571c4d066250617050a8f0b1cfbc4
Update tox.ini pep8 config to ignore i18n functions

Oslo i18n introduced separate translation functions for logging.
This patch modifies tox.ini to ignore those additional functions
as well, not just _().

Change-Id: I9d201a8cdc5113d1c60aed17bf593dda212e5d2a
Fix typos in transformer docstrings

Aggregator and accumulator transformers have some typos in their
docstrings, this patch fixes this.

Change-Id: I0b9773fcd94d3b3fb42ca9182b4de186376a2d03
Improving of configuration.rst

Adds description of [notification] configuration section that should be
added in ceilometer.conf to switch on storing of events.

Change-Id: Ib203bc5f29da9045f4afd315ab31de958fd95fac
Add upgrading alarm storage in dbsync

Currently we don't upgrade alarm storage in
ceilometer-dbsync command. This CR fix it.

Change-Id: Ie170a3a83c917c6a94f33dc2b39de1204ee946b8
Closes-bug: #1359159
Merge "Improving of configuration.rst"
Triple double-quoted strings should be used for docstrings

Change-Id: Ie854ca1a468a0e71b7fa96e6606ead36d1c5d1d2
Rewrite dictionary creation as a dictionary literal

Do that if it makes sense

Change-Id: I4c53ca90c082faa62d8584f75d5bb0a31bb5131f
Rewrite list creation as a list literal

Do that if it makes sense

Change-Id: Ib59e2482985c6b7bd2018648b74d829e67c76a99
Merge "Added new hardware inspector interface"
Merge "Fix typos in transformer docstrings"
Merge "Add upgrading alarm storage in dbsync"
Merge "Triple double-quoted strings should be used for docstrings"
Handle sqlalchemy connection strings with drivers

SqlAlchemy connection strings may specify a driver using the +foo suffix
syntax in the url scheme. Ceilometer should accomodate this type of
schema when looking up sqlalchemy drivers with the stevedore driver
manager.

Fix this by splitting connection string schemes on '+' and retrieving
only the first element in the resulting list. Doing the entrypoint
lookup on this element will preserve the existing behavior in loading
sqlalchemy drivers and should be a noop for other backend types.

Change-Id: Ieec5a4c47e8498a533d4e6954682a9bbe10bd4d9
Fixes-bug: 1359049
Merge "Use a FakeRequest object to test middleware"
Switch to oslotest

Change-Id: I8fb8755f289521b928b1dee2605d310e788f73c7
Merge "Rewrite dictionary creation as a dictionary literal"
Merge "Rewrite list creation as a list literal"
Merge "Handle sqlalchemy connection strings with drivers"