Merge lp:~jameinel/maas/get-nodes-for-group into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | John A Meinel on 2012-10-02 |
| Approved revision: | 1126 |
| Merged at revision: | 1135 |
| Proposed branch: | lp:~jameinel/maas/get-nodes-for-group |
| Merge into: | lp:maas/trunk |
| Diff against target: |
58 lines (+38/-0) 2 files modified
src/maasserver/api.py (+8/-0) src/maasserver/tests/test_api.py (+30/-0) |
| To merge this branch: | bzr merge lp:~jameinel/maas/get-nodes-for-group |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Packman (community) | 2012-10-02 | Approve on 2012-10-02 | |
|
Review via email:
|
|||
Commit Message
Add nodegroups/
The permissions for this is restricted to the worker for the nodegroup, so it shouldn't be visible to users.
Description of the Change
This exposes a '/nodegroups/
The use case for this is the new Tag changes to allow the nodegroups to process the tag definitions themselves. We will spawn a 'start processing' request, which will then need to come back and determine what nodes need to be updated for this group.
This is the first step along that path.
| John A Meinel (jameinel) wrote : | # |
Actually, it just needs to be removed. Originally I was going to to
GET /nodes?
However I switched to:
GET /nodegroups/
Since it made more sense to hang it off of the nodegroup api rather than the nodes api. (Especially, as it turned out, because the nodegroup already had good code for restricting requests to the worker task that is processing that nodegroup.)
- 1126. By John A Meinel on 2012-10-02
-
Remove a test that shouldn't be there.


Looks good in general.
+ def test_GET_ list_with_ nodegroup( self):
This test has no assertions? It wants some, or documentation as to what it's testing.