quotas test fails when admin username is not 'admin'

Bug #1485762 reported by Steve Heyman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Medium
Steve Heyman

Bug Description

Found in: any environment where the admin userid is NOT 'admin'

Component: barbican

Endpoint: n/a

Severity 3

Priority 3

Description: Running Quotas functional tests fail in any environment where the admin userid (found in the [identity] section of the barbican-functional.conf file) is not 'admin'.

Reproduction Steps: Execute the barbican functional tests and see that the functionaltests.api.v1.functional.test_quotas.QuotasTestCase fail due to an
invalid id passed to get_project_id_from_name().

Workaround: skip Quotas tests

Test Case: functionaltests.api.v1.functional.test_quotas.QuotasTestCase

Regression? No. This is a new function added by https://review.openstack.org/#/c/198764/

Depends on Story/CR/Other Defect: n/a

Expected Behaviour: Quotas test cases pass and do not give an error due to bad admin userid.

Actual Behavior: Quotas tests fail due to invalid admin userid.

Details: Fix is in setUp method of QuotasTestCase class. Change the hardcoded 'admin' to use CONF.identity.username.

Steve Heyman (sheyman)
Changed in barbican:
assignee: nobody → Steve Heyman (sheyman)
Changed in barbican:
status: Confirmed → In Progress
Steve Heyman (sheyman)
Changed in barbican:
status: In Progress → New
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/213860
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=2219b48f07fb9a8e4ec5166e94e84e06feaafe0a
Submitter: Jenkins
Branch: master

commit 2219b48f07fb9a8e4ec5166e94e84e06feaafe0a
Author: Steve Heyman <email address hidden>
Date: Mon Aug 17 16:04:49 2015 -0500

    Use config rather than hardcoded admin id from Quotas test

    Rather than use hardcoded 'admin' userid, get the
    userid in the setUp() method in QuotasTestCase from the config
    (CONF.identity.username).

    Change-Id: I4c5ab05a9a55f9f9a093a0ff60f6793337863aa6
    Closes-Bug: #1485762

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

Other bug subscribers

Remote bug watches

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