API 2.0 cleanup
Bug #1550616 reported by
Lee Trager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager |
Bug Description
The 2.0 API needs some cleanup before release
* All of the docs should reference machine, not nodes - http://
* Rack controller API should be minimal. Based off the node API
* The API is showing too much information for rack controllers it should be trimmed down, see http://
Related branches
lp:~ltrager/maas/clean_api
- Andres Rodriguez (community): Approve
- Blake Rouse (community): Approve
-
Diff: 5301 lines (+1199/-1153)85 files modifiedsrc/maasserver/api/account.py (+1/-1)
src/maasserver/api/auth.py (+1/-1)
src/maasserver/api/bcache.py (+15/-15)
src/maasserver/api/bcache_cacheset.py (+14/-14)
src/maasserver/api/blockdevices.py (+35/-35)
src/maasserver/api/boot_resources.py (+1/-1)
src/maasserver/api/boot_source_selections.py (+1/-1)
src/maasserver/api/boot_sources.py (+1/-1)
src/maasserver/api/commissioning_scripts.py (+3/-3)
src/maasserver/api/devices.py (+34/-90)
src/maasserver/api/dnsresourcerecords.py (+1/-1)
src/maasserver/api/dnsresources.py (+1/-1)
src/maasserver/api/doc.py (+1/-1)
src/maasserver/api/doc_handler.py (+2/-2)
src/maasserver/api/domains.py (+1/-1)
src/maasserver/api/events.py (+1/-1)
src/maasserver/api/fabrics.py (+1/-1)
src/maasserver/api/fannetworks.py (+1/-1)
src/maasserver/api/files.py (+1/-1)
src/maasserver/api/interfaces.py (+2/-2)
src/maasserver/api/ip_addresses.py (+1/-1)
src/maasserver/api/license_keys.py (+1/-1)
src/maasserver/api/logger.py (+1/-1)
src/maasserver/api/maas.py (+1/-1)
src/maasserver/api/machines.py (+91/-20)
src/maasserver/api/networks.py (+1/-1)
src/maasserver/api/nodes.py (+33/-8)
src/maasserver/api/not_found.py (+1/-1)
src/maasserver/api/pxeconfig.py (+1/-1)
src/maasserver/api/rackcontrollers.py (+9/-12)
src/maasserver/api/raid.py (+15/-15)
src/maasserver/api/spaces.py (+1/-1)
src/maasserver/api/ssh_keys.py (+1/-1)
src/maasserver/api/ssl_keys.py (+1/-1)
src/maasserver/api/subnets.py (+1/-1)
src/maasserver/api/support.py (+1/-1)
src/maasserver/api/tags.py (+1/-1)
src/maasserver/api/tests/test_devices.py (+51/-2)
src/maasserver/api/tests/test_doc.py (+11/-0)
src/maasserver/api/tests/test_enlistment.py (+34/-4)
src/maasserver/api/tests/test_machine.py (+2/-205)
src/maasserver/api/tests/test_machines.py (+78/-55)
src/maasserver/api/tests/test_node.py (+1/-161)
src/maasserver/api/tests/test_nodes.py (+1/-31)
src/maasserver/api/tests/test_rackcontroller.py (+26/-4)
src/maasserver/api/users.py (+1/-1)
src/maasserver/api/utils.py (+1/-1)
src/maasserver/api/version.py (+1/-1)
src/maasserver/api/volume_groups.py (+22/-20)
src/maasserver/api/zones.py (+1/-1)
src/maasserver/forms.py (+210/-144)
src/maasserver/models/node.py (+5/-4)
src/maasserver/models/tests/test_node.py (+7/-4)
src/maasserver/preseed.py (+1/-1)
src/maasserver/rpc/nodes.py (+10/-5)
src/maasserver/rpc/regionservice.py (+2/-2)
src/maasserver/rpc/tests/test_nodes.py (+49/-0)
src/maasserver/rpc/tests/test_regionservice.py (+3/-1)
src/maasserver/tests/test_forms_device.py (+5/-16)
src/maasserver/tests/test_forms_helpers.py (+19/-8)
src/maasserver/tests/test_forms_machine.py (+40/-155)
src/maasserver/tests/test_forms_machinewithmacaddresses.py (+14/-14)
src/maasserver/tests/test_forms_node.py (+204/-0)
src/maasserver/websockets/handlers/controller.py (+2/-2)
src/maasserver/websockets/handlers/machine.py (+3/-3)
src/maasserver/websockets/handlers/tests/test_controller.py (+3/-3)
src/maasserver/websockets/handlers/tests/test_machine.py (+3/-3)
src/maasserver/websockets/tests/test_base.py (+7/-7)
src/provisioningserver/drivers/hardware/msftocs.py (+3/-2)
src/provisioningserver/drivers/hardware/seamicro.py (+5/-3)
src/provisioningserver/drivers/hardware/tests/test_msftocs.py (+3/-2)
src/provisioningserver/drivers/hardware/tests/test_seamicro.py (+3/-2)
src/provisioningserver/drivers/hardware/tests/test_ucsm.py (+3/-2)
src/provisioningserver/drivers/hardware/tests/test_virsh.py (+7/-6)
src/provisioningserver/drivers/hardware/ucsm.py (+4/-2)
src/provisioningserver/drivers/hardware/virsh.py (+5/-3)
src/provisioningserver/drivers/hardware/vmware.py (+5/-5)
src/provisioningserver/drivers/power/mscm.py (+3/-2)
src/provisioningserver/drivers/power/tests/test_mscm.py (+3/-2)
src/provisioningserver/rpc/cluster.py (+1/-0)
src/provisioningserver/rpc/clusterservice.py (+11/-9)
src/provisioningserver/rpc/region.py (+1/-0)
src/provisioningserver/rpc/tests/test_clusterservice.py (+35/-7)
src/provisioningserver/rpc/tests/test_utils.py (+6/-3)
src/provisioningserver/rpc/utils.py (+5/-3)
Changed in maas: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Also hostname should be split into:
fqdn
hostname
domain