Bases: nova.test.TestCase
Bases: object
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Servers tests using default API router with all extensions enabled.
The intent here is to catch cases where extensions end up throwing an exception because of a malformed request before the core API gets a chance to validate the request and return a 422 response.
For example, ServerDiskConfigController extends servers.Controller:
@wsgi.extends def create(self, req, body):
- if ‘server’ in body:
- self._set_disk_config(body[‘server’])
resp_obj = (yield) self._show(req, resp_obj)
we want to ensure that the extension isn’t barfing on an invalid body.
Test create with malformed body
Test create with malformed body
Bases: nova.test.TestCase
Shared implementation for tests below that create instance
Test creating multiple instances but not asking for reservation_id
Test creating multiple instances but not asking for reservation_id
Test creating multiple instances with asking for reservation_id
Bases: nova.test.TestCase
We want to make sure that if two instances are on the same host, then they return the same hostId. If two instances are on different hosts, they should return different hostId’s. In this test, there are 5 instances - 2 on one host and 3 on another.
Test getting servers by ip with admin_api enabled and admin context
Test getting servers by ip6 with admin_api enabled and admin context
Test getting servers by admin-only or unknown options when context is not admin. Make sure the admin and unknown options are stripped before they get to compute_api.get_all()
Test getting servers by admin-only or unknown options when context is admin. All options should be passed
Test getting servers by invalid status
Create two servers with the same host and different project_ids and check that the hostId’s are unique
Bases: nova.test.TestCase
Tests of places we throw 422 Unprocessable Entity from
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase