Inheritance info must be stored inside scope on test_v3_assignment

Bug #1406627 reported by Samuel de Medeiros Queiroz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Henry Nash

Bug Description

The method _build_role_assignment_url_and_entity(..) creates expected role assignments depending on provided parameters.
When an inherited role assignment is requested, it is putting 'OS-INHERIT:inherited_to' info inside the main body of the entity, instead of inside the 'scope' key.

This reflects on tests, making an assert to never occur [1].

[1] https://github.com/openstack/keystone/blob/f5c06d619c762d5d39e8ec3bc752215ec02b2756/keystone/tests/test_v3.py#L1070-L1071

Changed in keystone:
assignee: nobody → Samuel de Medeiros Queiroz (samuel-z)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: New → In Progress
Henry Nash (henry-nash)
Changed in keystone:
status: In Progress → Triaged
Changed in keystone:
status: Triaged → In Progress
tags: added: test-improvement
description: updated
Changed in keystone:
importance: Undecided → Medium
Changed in keystone:
assignee: Samuel de Medeiros Queiroz (samuel-z) → Raildo Mascena de Sousa Filho (raildo)
Changed in keystone:
assignee: Raildo Mascena de Sousa Filho (raildo) → Samuel de Medeiros Queiroz (samuel-z)
Changed in keystone:
assignee: Samuel de Medeiros Queiroz (samueldmq) → Henry Nash (henry-nash)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/144542
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=4822c98f12c0dd287cdcd3e31e27004384feb46f
Submitter: Jenkins
Branch: master

commit 4822c98f12c0dd287cdcd3e31e27004384feb46f
Author: Samuel de Medeiros Queiroz <email address hidden>
Date: Tue Dec 30 10:00:06 2014 -0300

    Fixes 'OS-INHERIT:inherited_to' info in tests

    Inheritance info must be stored inside scope.
    This needs to be fixed on test_v3_assignment.

    Closes-Bug: 1406627

    Change-Id: I88912c37eaacfafee2b6bde4feaf2c5bd6ac6d9e

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