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.
Confirm that update is filtering params
Confirm that update is filtering params
Confirm that update is filtering params
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 it should raise NotFound
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