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.contrib.test_security_groups Module

class nova.tests.api.openstack.contrib.test_security_groups.TestSecurityGroupRules(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_create_add_existing_rules_json()
test_create_by_cidr_json()
test_create_by_group_id_json()
test_create_rule_with_same_group_parent_id_json()
test_create_with_empty_group_id_json()
test_create_with_invalid_cidr_json()
test_create_with_invalid_from_port_json()
test_create_with_invalid_group_id_json()
test_create_with_invalid_parent_group_id_json()
test_create_with_invalid_protocol_json()
test_create_with_invalid_to_port_json()
test_create_with_no_body_json()
test_create_with_no_cidr_group_json()
test_create_with_no_protocol_json()
test_create_with_no_security_group_rule_in_body_json()
test_create_with_no_to_port_json()
test_create_with_non_existing_parent_group_id_json()
test_create_with_non_numerical_from_port_json()
test_create_with_non_numerical_to_port_json()
test_delete()
test_delete_invalid_rule_id()
test_delete_non_existing_rule_id()
class nova.tests.api.openstack.contrib.test_security_groups.TestSecurityGroupRulesXMLDeserializer(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_create_no_protocol_request()
test_create_request()
class nova.tests.api.openstack.contrib.test_security_groups.TestSecurityGroupXMLDeserializer(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_create_no_description_request()
test_create_no_name_request()
test_create_request()
class nova.tests.api.openstack.contrib.test_security_groups.TestSecurityGroups(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_associate()
test_associate_already_associated_security_group_to_instance()
test_associate_by_invalid_server_id()
test_associate_by_non_existing_security_group_name()
test_associate_no_security_group_name()
test_associate_non_existing_instance()
test_associate_non_running_instance()
test_associate_security_group_name_with_whitespaces()
test_associate_without_body()
test_associate_xml()
test_create_security_group_above_255_characters_description_json()
test_create_security_group_above_255_characters_name_json()
test_create_security_group_json()
test_create_security_group_non_string_description_json()
test_create_security_group_non_string_name_json()
test_create_security_group_with_blank_description_json()
test_create_security_group_with_blank_name_json()
test_create_security_group_with_duplicate_name_json()
test_create_security_group_with_no_body_json()
test_create_security_group_with_no_description_json()
test_create_security_group_with_no_name_json()
test_create_security_group_with_no_security_group()
test_create_security_group_with_whitespace_description_json()
test_create_security_group_with_whitespace_name_json()
test_create_security_group_xml()
test_delete_security_group_by_id()
test_delete_security_group_by_invalid_id()
test_delete_security_group_by_non_existing_id()
test_disassociate()
test_disassociate_already_associated_security_group_to_instance()
test_disassociate_by_invalid_server_id()
test_disassociate_by_non_existing_security_group_name()
test_disassociate_no_security_group_name()
test_disassociate_non_existing_instance()
test_disassociate_non_running_instance()
test_disassociate_security_group_name_with_whitespaces()
test_disassociate_without_body()
test_disassociate_xml()
test_get_security_group_by_id()
test_get_security_group_by_invalid_id()
test_get_security_group_by_non_existing_id()
test_get_security_group_list()
nova.tests.api.openstack.contrib.test_security_groups.return_non_running_server(context, server_id)
nova.tests.api.openstack.contrib.test_security_groups.return_security_group(context, project_id, group_name)
nova.tests.api.openstack.contrib.test_security_groups.return_security_group_without_instances(context, project_id, group_name)
nova.tests.api.openstack.contrib.test_security_groups.return_server(context, server_id)
nova.tests.api.openstack.contrib.test_security_groups.return_server_nonexistant(context, server_id)