Updated openstack/openstack
Project: openstack/glance  640dd1ee89dd96e4c3979356a7ec3d681a3b0cf5

Fix legacy tests using system policy.json file

Steps to reproduce:

1. Create a new file named '/etc/glance/policy.json' and inside it
paste:

    {"context_is_admin":  "role:admin"}

2. Run tests. Some of the tests under glance.tests.integration
.legacy_functional.test_v1_api will fail with errors such as
'MismatchError: 403 != 201'. These tests will pass without policy.json
in place.

The outcome of the tests should be isolated from the surrounding
environment, so this patch copies policy.json from glance's data files
(glance/tests/etc/policy.json) into the tests directory to avoid this
problem.

Change-Id: I27903ee4ebb7bad243c4f1b2d01096bfb93f1008
Closes-Bug: 1184056