Clean up pep8 E128 violations

Fixed E128 errors
All ignores are to be removed in the next sequence of patches

Change-Id: I3ccff7df8c382f83ae6aa9aa6a7f16324c3aec75
Add insecure option to registry https client

This fixes LP bug #1063793.

This adds a new API config option registry_client_insecure
(default false) which optionally allows not to specify a ca
file for registry connections from the API server.
The default is false so existing behaviour is
unchanged unless this option is specified.
Adding this option makes the registry symmetric wrt the API
with which you can connect using clients with --insecure

Change-Id: I4fa462cd68afaf14f7d7de6c572980a41c0849d6
Call setup_s3 before checking for disabled state.

Updates the Glance TestS3 suite so that it calls setup_s3
first to ensure that self.disabled is set to False before we
test for it.

Fixes LP Bug #1064319.

Change-Id: I66d279eb216160c175339aa1750c6868817290d9
Add GLANCE_TEST_TMP_DIR environment var for tests.

Adds an optional environement variable called GLANCE_TEST_TMP_DIR
which can be used to control the base temp directory used when
running Glance tests. If unset the default is still '/tmp'.

Change-Id: I70e11cedf4b9e89963413623d1ea3c17b8b80326
FakeAuth not always admin

The FakeAuthMiddleware was defaulting to admin=True for request
contexts. This creates a situation where it is impossible to test
non-admin requests in some situations.

Change-Id: I949f708efed9f07a43b8506870c5b38fce4b3752
Add test for v1 image visibility

These tests just characterize the existing behavior in order to protect
us from unintentional changes. To support the tests, the
FakeAuthMiddleware was changed to take a tenant 'none' to mean the
context should have tenant = None.

Change-Id: I4f0d771a6c45dedc7b1a0d2a735dbf4fb8cc1322
change the default sql connection timeout to 60s

Previously the check was done only for 10s.
This was seen to fail when booting a heavily loaded system.
This change also aligns more closely with
the larger timeout used in nova.

Fixes bug: 1056976
Change-Id: I9c1ca9ff97a79a96d2a8230ed1aa08c17ae4b8fa
Add test for v2 image visibility

These tests just characterize the existing behavior in order to
protect us from unintentional changes.

Change-Id: If7826eec62b8f5f8d6ab6d8aec3d6c0f8f00681d
Correct conversion of properties in headers

Resolves bug 1063217. Started life as part of
I63d9c589b7604ef24801f7b3eb0ce0e4fb5d7ec2.

Change-Id: I91611fdfeaf57320e65669f4e8d75f984ede4523
Don't parse commandline in filesystem tests

This fixes another instance of bug 1056420.

Change-Id: I50d80aa6fcbb50044c623f680a13356d8eeac475
Merge "Add GLANCE_TEST_TMP_DIR environment var for tests."
Merge "FakeAuth not always admin"
Merge "Add test for v1 image visibility"
Merge "Add test for v2 image visibility"
Merge "Correct conversion of properties in headers"
Merge "Clean up pep8 E128 violations"
Merge "Add insecure option to registry https client"
Merge "change the default sql connection timeout to 60s"
Merge "Don't parse commandline in filesystem tests"
Add support for multiple db test classes

Change-Id: I346c29a8b156fd3ccd6f388f337b4291d3c0d12c