This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.tests.test_cloud Module

class nova.tests.test_cloud.CloudTestCase(methodName='runTest')

Bases: nova.test.TestCase

assertDictListUnorderedMatch(L1, L2, key)
setUp()
test_ajax_console()
test_allocate_address()
test_associate_disassociate_address()

Verifies associate runs cleanly without raising an exception

test_authorize_revoke_security_group_ingress_by_id()
test_authorize_security_group_fail_missing_source_group()
test_authorize_security_group_ingress()
test_authorize_security_group_ingress_already_exists()
test_authorize_security_group_ingress_ip_permissions_groups()
test_authorize_security_group_ingress_ip_permissions_ip_ranges()
test_authorize_security_group_ingress_missing_group_name_or_id()
test_authorize_security_group_ingress_missing_protocol_params()
test_console_output()
test_create_delete_security_group()
test_create_image()

Make sure that CreateImage works

test_create_snapshot()

Makes sure create_snapshot works.

test_create_volume_from_snapshot()

Makes sure create_volume works when we specify a snapshot.

test_delete_key_pair()
test_delete_security_group_by_id()
test_delete_security_group_no_params()
test_delete_security_group_with_bad_group_id()
test_delete_security_group_with_bad_name()
test_delete_snapshot()

Makes sure delete_snapshot works.

test_deregister_image()
test_deregister_image_wrong_container_type()
test_describe_addresses()

Makes sure describe addresses runs without raising an exception

test_describe_availability_zones()

Makes sure describe_availability_zones works and filters results.

test_describe_image_attribute()
test_describe_image_attribute_block_device_mapping()
test_describe_image_attribute_root_device_name()
test_describe_image_mapping()

test for rootDeviceName and blockDeiceMapping

test_describe_images()
test_describe_instance_attribute()

Make sure that describe_instance_attribute works

test_describe_instances()

Makes sure describe_instances works and filters results.

test_describe_instances_bdm()

Make sure describe_instances works with root_device_name and block device mappings

test_describe_instances_deleted()
test_describe_key_pairs()
test_describe_regions()

Makes sure describe regions runs without raising an exception

test_describe_security_group_ingress_groups()
test_describe_security_groups()

Makes sure describe_security_groups works and filters results.

test_describe_security_groups_by_id()
test_describe_snapshots()

Makes sure describe_snapshots works and filters results.

test_describe_volumes()

Makes sure describe_volumes works and filters results.

test_format_instance_bdm()
test_get_instance_mapping()

Make sure that _get_instance_mapping works

test_import_public_key()
test_key_generation()
test_modify_image_attribute()
test_release_address()
test_release_address_still_associated()
test_revoke_security_group_ingress()
test_revoke_security_group_ingress_missing_group_name_or_id()
test_run_instances()
test_run_instances_image_state_invalid()
test_run_instances_image_state_none()
test_run_instances_image_status_active()
test_run_with_snapshot()

Makes sure run/stop/start instance with snapshot works.

test_security_group_ingress_quota_limit()
test_security_group_quota_limit()
test_stop_start_instance()

Makes sure stop/start instance works

test_stop_start_with_volume()

Make sure run instance with block device mapping works

test_stop_with_attached_volume()

Make sure attach info is reflected to block device mapping

test_terminate_instances()
test_update_of_instance_display_fields()
test_update_of_instance_wont_update_private_fields()
test_update_of_volume_display_fields()
test_update_of_volume_wont_update_private_fields()