History | View | Annotate | Download (18.9 kB)
cyclades: Add 'links' to compute endpoints
Add 'links' attribute to API responses for servers, networks, flavorsand images endpoints.
cyclades: Add 'addresses' to servers API response
cyclades: Make servers response compatible with OS
cyclades: add tests for 400 on wrong Compute paths
cyclades: fix URLs in compute/servers tests
cyclades: Add 'drained' flag to Network
Extend Network model with the 'drained' attribute, to indicate whether anetwork should be used in public IP allocation when creating servers.This option is only useful for public networks.
cyclades: Remove 'Ref' suffix from servers API
Rename 'flavorRef' to 'flavor' and 'imageRef' to 'image', to responses of/servers API. 'flavorRef' and 'imageRef' are still preserved to to requestparameters of POST /servers.
Refs #3768
cyclades: Update tests
Update tests to use OpenStack Compute API v2.
cyclades: Move common code to seperate function
Move common between API method and management command for creating aserver to a separate function.
Mock quotaholder for Cyclades tests
Create 'mocked_quotaholder' context manager to bypass commission and useit in Cyclades tests. Also this commit does some various fixes to othertests.
Move common test code to snf_django.lib.testing
Create public NIC when creating VM
Until now, a server's public NetworkInterface was not created in the DBuntil the arrival of the message from Ganeti hooks. However, the IPv4address of the NIC is reserved before sending the OP_INSTANCE_CREATEjob to Ganeti....
Fix testcase-mock
Mocked get_image_dict should contain checksum, needed by archipelago
Refactor tests