Test suite picks up configuration in ~/.glance

Bug #1184056 reported by John Bresnahan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Louis Taylor

Bug Description

The test suite picks up information in ~/.glance. This causes unexpected behavior when debugging.

Feilong Wang (flwang)
Changed in glance:
status: New → Confirmed
Changed in glance:
importance: Undecided → Low
Revision history for this message
Feilong Wang (flwang) wrote :

Based on my observation, both ~/.glance and /etc/glance will cause this issue.

Louis Taylor (kragniz)
description: updated
Louis Taylor (kragniz)
Changed in glance:
assignee: nobody → Louis Taylor (kragniz)
Changed in glance:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/116679
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=e66ecfee4eacfe25a18cd05d3f88e25c91fa112c
Submitter: Jenkins
Branch: master

commit e66ecfee4eacfe25a18cd05d3f88e25c91fa112c
Author: Louis Taylor <email address hidden>
Date: Mon Aug 25 16:34:47 2014 +0000

    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

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.