Rearrange db tests in prep for testr.

The way discover does test discovery will find any classes that subclass
the unittest base class. This means that db.base was getting picked up as
a set of tests that need to be run, which is bogus, as it's intended to just
be a base class.

Split it up a little bit differently to make it work as intended when
python test discovery is run outside of how nose things of things.

Part of blueprint grizzly-testtools

Change-Id: Iede92452d0c48224a1f80288c2bf2693224dc56f
Convert some prints to addDetails calls.

If instead of using print, we use testtools details, we can capture the data
sensibly in the subunit output stream. That way, we can make good display
decisions about the data to be shown in the HTML reports as needed.

Part of blueprint grizzly-testtools

Change-Id: I125b0bf60591ec3c854aa757b370a1c3573a40d2
Add to multi-tenant swift store documentation

Make the usage of the 'swift_store_admin_tenants' parameter
a little clearer.

Fixes bug 1110597.

Change-Id: Ibcfe5d74b89e35ac65d442ebfa6f75b0f8519af4
Encrypt scrubber marker files

Files written to scrubber_datadir can contain credentials in plain text.

Update schedule_delayed_delete_from_backend to make use of
metadata_encryption_key to encrypt the uri before writing it out.

Fixes LP Bug #1112586

Change-Id: I03ff36f6b57f58a5e5de28bf8d48e7ce0216e5b3
Update HACKING.rst per recent changes

Added "is not" usage with examples
Fixed "not in" usage description
* https://review.openstack.org/#/c/20877/

Change-Id: I89fbc62a8b31bc7ef750cc1e80f73b9c1e366fd3
Mark password config options with secret

Config object supports masking values when writing out if the secret
flag is set on the option definition.  This change flags all glance
options containing a password.

Change-Id: Id8428fbd5c0090840c8e9adf86badb794cf9fd66
Merge "Add to multi-tenant swift store documentation"
Merge "Mark password config options with secret"
Additional image member information

Return the created_at and updated_at values for image member.

Related to bp glance-api-v2-image-sharing

Change-Id: I50f514c8680d1299d41c107c993e7ee2b0d7a185
Image Member Domain Model

This commit is the first layer of image member domain model.
The can_share feature from v1 of glance api will not be
ported to glance v2 api.

Related to bp glance-api-v2-image-sharing

Change-Id: Ibfb790d438efb0f5b29b4786c02f1155962150c5
Adding database layer for image members domain model

Adding the database layer image members domain model.
For a given image, a user can get a list of image members,
delete image member, and get a specific image.

Related to bp glance-api-v2-image-sharing

Change-Id: I71a0c0d3c828cba231a75d0b7888bad932de41e5
Avoid dangling partial image on size/checksum mismatch

Fixes bug 1122299

Previously, when the supplied image size or checksum didn't match
the calculated values, partial image image data was left dangling
in the backend store.

Now, we clean up when the mismatch is detected.

Change-Id: I916d78ef3b2065e87df31ec4fb405915417d68aa
Merge "Rearrange db tests in prep for testr."
Merge "Update HACKING.rst per recent changes"
Merge "Encrypt scrubber marker files"
Fix moker typo in test_notifier

test_notifier.TestQpidNotifier are usually skipped, so
that typo was not detected while running unit tests.

Change-Id: I1998b8e72c20170a8a2b234f2c19ec1e990ed43e
Merge "Additional image member information"
Merge "Avoid dangling partial image on size/checksum mismatch"
Merge "Convert some prints to addDetails calls."
Merge "Image Member Domain Model"