Remove unnecessary set_acl calls

Some calls to store set_acl are made in the v2 api that are not
necessary. In some cases these calls are generating unnecessary database
traffic.

Change-Id: Idd0ada4d36821a699df51c4f628409f03c470301
Multiprocess respawn functional test fix

In 'test_interrupt_avoids_respawn_storm' the environment variable
'USER' was being used to determine if the glance-api processes had been
spawned correctly. This method doesn't work when running in a fakeroot
environment.  Switch to use the current UID instead which works in
both cases.

Fix for bug 1061637.

Change-Id: I79e36ef02ed2adb1c951222d105d7302f4190f84
Add image_member_update to simple db api

The simple db api didn't have an image_member_update method. This
patch implements that missing method. Additionally, this has a
functional test to ensure image_member_update exists and works
as expected.

Related to bp glance-simple-db-parity

Change-Id: Iabd310ee55047d625b804b96b537c3c0350e3466
Rename non-public method in sqlalchemy db driver

The can_show_deleted method is only used internally
to the sqlalchemy db api, so rather than make it seem
like part of the public api, prefix it with an underscore.

Change-Id: I0b78c8073471d96f8897f7bec2e2e04d152f0416
Merge "Remove unnecessary set_acl calls"
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
Improve test coverage for replicator's REST client.

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

This fixes another instance of bug 1056420.

Change-Id: I50d80aa6fcbb50044c623f680a13356d8eeac475
Merge "Multiprocess respawn functional test fix"
Merge "Add GLANCE_TEST_TMP_DIR environment var for tests."
Merge "FakeAuth not always admin"
Merge "Add test for v1 image visibility"