Tests For Compute
Bases: nova.test.TestCase
Test case for compute
Make sure we can get console output from instance
Make sure we can get console output from instance
Make sure create associates security groups
Verify that an instance cannot be created without a display_name.
Make sure destroying disassociates security groups
Make sure destroying security groups disassociates instances
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 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
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 suspended
Make sure we can a vnc console for an instance.