~rvb/gomaasapi/gomaasapi-bug-1384001

Viewing all changes in revision 49.

  • Committer: Martin Packman
  • Date: 2014-04-10 11:48:03 UTC
  • mfrom: (48.1.2 101-testserver-extensions)
  • Revision ID: martin.packman@canonical.com-20140410114803-rsv7r2a2mgs0z0q4
testservice: version/network/details support

These changes are for juju-core project testing. They include new API endpoints:

- /version/
  return capabilities, currently only networks-management
- /network/<name>/?op=list_connected_macs
  returns list of MAC addresses connected to a network
- /nodes/<system_id>/?op=details
  returns lshw XML as application/bson, the XML data should be added before with AddNodeDetails(systemId, xml) function

Now for API endpoint:
  /networks?node=system_id
TestService returns empty list if node is not found or no networks are connected to the node.
It panicked before.

https://codereview.appspot.com/86070043/

R=dimitern, rvb

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: