commit | b3b7bc8a45304547f8f1ca98439f40f9604a221f | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Fri Mar 03 15:58:15 2017 -0500 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Fri Mar 03 15:58:15 2017 -0500 |
tree | ad77cb737352d2f499fb2323a382403df13a2126 | |
parent | 28d3b05b396a5b6e593cf6c3c0adbda595ea4bd0 [diff] |
Increase unit test coverage for rbac_utils. With recent framework changes, need unit tests needed to be added for full unit test coverage. This patch does just that. Also made clear_rbac_roles a private class by prefixing it with '_', and moved a validation method from __init__ which checked whether admin_role_id or rbac_role_id were None to switch_role, so that this check is performed more than just during the initialization. Change-Id: Iba261989d9cbffba9d33aec0d4f48c3fcc83092e