Tests For Compute
Bases: nova.test.TestCase
Test case for compute
Ensure instance can have its agent updated
Make sure we can get console output from instance
Make sure we can get console output from instance
Make sure create associates a config drive.
Make sure create associates security groups
Verify that an instance cannot be created without a display_name.
Make sure create associates a config drive.
Make sure destroying disassociates security groups
Make sure destroying security groups disassociates instances
Contrived test to ensure finish_resize doesn’t raise anything
Ensure that the flavor is reverted to the original on revert
Test searching instances by image
Test searching instances by image
Test searching instances by name
Test searching by Floating and Fixed IP
Test searching by IPv6 address
Test searching instances by metadata
Test searching by multiple options at once
Test searching instances by name (display_name)
Test searching instances by state
Test getting 1 instance by Fixed IP
Ensure we can write a file to an instance
Confirm exception when pre_live_migration fails.
Same as above test(input pattern is different)
Confirm live_migration() works as expected correctly.
Confirm check_for_export to confirm volume health check.
ensure locked instance cannot be changed
Ensure instance can be paused
Confirm post_live_migration() works as expected correctly.
Confirm raising exception if instance doesn’t have fixed_ip.
Confirm log meg when instance doesn’t mount any volumes.
Confirm setup_compute_volume is called when volume is mounted.
Confirm operation setup_compute_network() fails.
It retries and raise exception when timeout exceeded.
Ensure instance can be rebooted
Ensure resizing down raises and fails
Ensure instance can be migrated/resized
Ensure notifications on instance migrate/resize
Ensure invalid flavors raise
Ensure invalid flavors raise
Ensure instance fails to migrate when source and destination are the same host
Ensure failure when running an instance that already exists
Ensure run instance generates apropriate usage notification
Detect when a vm is terminated behind the scenes
Make sure it is possible to run and terminate instance
Make sure timestamps are set for launched and destroyed
Ensure instance can have its admin password set
Ensure instance can be snapshotted
Ensure instance can be started
Ensure instance can be stopped
ensure instance can be suspended
Ensure terminate_instance generates apropriate usage notification
Make sure we can a vnc console for an instance.