Unit tests for acl controls

Bug #1618966 reported by Nicholas Skaggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Horacio Durán

Bug Description

In response to bug 1613688 and other bugs like it, it would be useful to have complete coverage for all acl actions within the juju unit tests. ACL's are very important being a security feature, and will see more and more use. We need to ensure we've tested all possible scenarios and I believe this will be most efficiently done inside a unit test.

tags: added: eda
tags: added: unit-tests
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Nicholas,

Here is current unit test coverage for ACL on master:
    * github.com/juju/juju/api/modelmanager: 80.0% of statements
    * github.com/juju/juju/apiserver/modelmanager: 78.6% of statements
    * github.com/juju/juju/cmd/juju/model: 67.1% of statements

Are you asking for 100% coverage?
If not, please be more specific what unit tests you'd like to see :D

Changed in juju:
status: New → Incomplete
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I'm not asking for 100% coverage. I'd like to ensure we have tests that check specifically for the issue noted in bug 1613688. In addition, I would like to ensure we have tests that cover similar scenarios -- we need to be assured limited roles don't have a way of performing admin functions. A least a basic exercising of the security granted should be tested. In looking at the current coverage I'm not convinced we are thorough enough. For example, I don't see any negative tests asserting limited users cannot perform admin roles.

Changed in juju:
status: Incomplete → Triaged
importance: Undecided → High
milestone: none → 2.0-beta18
assignee: nobody → Horacio Durán (hduran-8)
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-beta18 → 2.0-beta19
Changed in juju:
milestone: 2.0-beta19 → 2.0-rc1
Revision history for this message
Christopher Lee (veebers) wrote :
Changed in juju:
milestone: 2.0-rc1 → 2.0-rc2
Changed in juju:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-rc2 → none
Changed in juju:
milestone: none → 2.0.0
Revision history for this message
Horacio Durán (hduran-8) wrote :
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-rc3 → 2.0.0
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
status: In Progress → Fix Committed
milestone: none → 2.1-rc1
Changed in juju:
milestone: 2.1-rc1 → 2.1-beta3
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
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.