Bases: object
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Tests at the db-layer instead of API layer since that’s where the UUID is generated
Server generated ReservationID
User supplied ReservationID
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.
The steps involved with resolving a UUID are pretty complicated; here’s what’s happening in this scenario:
So, counterintuitively, we call get twice on the show command.
Test getting servers by ip6 with admin_api enabled and admin context
Test getting servers by ip with admin_api enabled and admin context
Test getting servers by invalid status
Test getting servers by admin-only or unknown options. This tests when admin_api is off. 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. This tests when admin_api is on, but context is a user. 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. This tests when admin_api is on and context is admin. All options should be passed through to compute_api.get_all()
Confirm that update is filtering params
Confirm that update is filtering params
Confirm that update is filtering params
Confirm that update is filtering params
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase
If we’re building from an AMI-style image, we need to be able to fetch the kernel and ramdisk associated with the machine image. This information is stored with the image metadata and return via the ImageService.
These tests ensure that we parse the metadata return the ImageService correctly and that we handle failure modes appropriately.
Return IDs if both kernel and ramdisk are present
If an ami is missing a kernel it should raise NotFound
If an ami is missing a ramdisk, return kernel ID and None for ramdisk ID
Anything other than ami should return no kernel and no ramdisk
We should only allow fetching of kernel and ramdisk information if we have a ‘fully-formed’ image, aka ‘active’
Bases: unittest.case.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase