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.api.openstack.test_server_actions Module

class nova.tests.api.openstack.test_server_actions.MockSetAdminPassword

Bases: object

class nova.tests.api.openstack.test_server_actions.ServerActionsTest(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_confirm_resize_migration_not_found()
test_confirm_resize_server()
test_confirm_resize_server_fails()
test_create_backup()

The happy path for creating backups

test_create_backup_admin_api_off()

The happy path for creating backups

test_create_backup_bad_entity()
test_create_backup_no_backup_type()

Backup Type (daily or weekly) is required for backup requests

test_create_backup_no_name()

Name is required for backups

test_create_backup_no_rotation()

Rotation is required for backup requests

test_create_backup_with_metadata()
test_create_backup_with_too_much_metadata()
test_migrate_server()

This is basically the same as resize, only we provide the migrate attribute in the body’s dict.

test_resize_bad_flavor_fails()
test_resize_raises_fails()
test_resize_server()
test_revert_resize_migration_not_found()
test_revert_resize_server()
test_revert_resize_server_fails()
test_server_change_password()
test_server_change_password_xml()
test_server_reboot()
test_server_rebuild_accepted()
test_server_rebuild_bad_entity()
test_server_rebuild_rejected_when_building()
class nova.tests.api.openstack.test_server_actions.ServerActionsTestV11(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_confirm_resize_server()
test_create_backup()

The happy path for creating backups

test_create_image()
test_create_image_bad_metadata()
test_create_image_no_name()
test_create_image_snapshots_disabled()

Don’t permit a snapshot if the allow_instance_snapshots flag is False

test_create_image_with_metadata()
test_create_image_with_too_much_metadata()
test_resize_server()
test_resize_server_no_flavor()
test_resize_server_no_flavor_ref()
test_revert_resize_server()
test_server_bad_body()
test_server_change_password()
test_server_change_password_bad_request()
test_server_change_password_empty_string()
test_server_change_password_none()
test_server_change_password_not_a_string()
test_server_change_password_xml()
test_server_reboot_hard()
test_server_reboot_incorrect_type()
test_server_reboot_missing_type()
test_server_reboot_soft()
test_server_rebuild_accepted_minimum()
test_server_rebuild_accepted_with_bad_metadata()
test_server_rebuild_accepted_with_metadata()
test_server_rebuild_admin_pass()
test_server_rebuild_bad_entity()
test_server_rebuild_bad_personality()
test_server_rebuild_personality()
test_server_rebuild_rejected_when_building()
test_server_rebuild_server_not_found()
test_server_unknown_action()
class nova.tests.api.openstack.test_server_actions.TestServerActionXMLDeserializerV11(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_change_pass()
test_change_pass_no_pass()
test_confirm_resize()
test_create_image()
test_create_image_with_metadata()
test_reboot()
test_reboot_no_type()
test_rebuild()
test_rebuild_minimum()
test_rebuild_no_imageRef()
test_resize()
test_resize_no_flavor_ref()
test_revert_resize()
nova.tests.api.openstack.test_server_actions.instance_update(context, instance_id, kwargs)
nova.tests.api.openstack.test_server_actions.return_server_by_id(context, id)
nova.tests.api.openstack.test_server_actions.return_server_with_attributes(**kwargs)
nova.tests.api.openstack.test_server_actions.return_server_with_state(vm_state, task_state=None)
nova.tests.api.openstack.test_server_actions.return_server_with_uuid_and_state(vm_state, task_state=None)
nova.tests.api.openstack.test_server_actions.stub_instance(id, metadata=None, image_ref='10', flavor_id='1', name=None, vm_state=None, task_state=None)