Admin API os-instance_usage_audit_log is being tests as non-admin

Bug #1387901 reported by Ghanshyam Mann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Ghanshyam Mann

Bug Description

Nova V2 API 'os-instance_usage_audit_log' is for admin only and Nova policy.json has rule for the same But in unit test (test_instance_usage_audit_log) test this as non admin API by overriding policy as non-admin in fake_policy.py.

Changed in nova:
assignee: nobody → Ghanshyam Mann (ghanshyammann)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/132135

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/132135
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a72fe3f67266f4100bd4086ab0cbc481b14fc37e
Submitter: Jenkins
Branch: master

commit a72fe3f67266f4100bd4086ab0cbc481b14fc37e
Author: ghanshyam <email address hidden>
Date: Fri Oct 31 09:05:09 2014 +0900

    Fix instance_usage_audit_log test to use admin context

    Nova V2 API 'os-instance_usage_audit_log' is for admin only
    and Nova policy.json has rule for the same But
    test_instance_usage_audit_log tests this API as non admin.

    This patch fix test_instance_usage_audit_log test to use admin
    context.

    Also adding some more tests to verify this API with non-admin context.

    Closes-Bug: #1387901

    Change-Id: I20a477786ef0f3e1132629c4a12af40524e2b09f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-1 → 2015.1.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.