The nova.tests.api.openstack.compute.contrib.test_security_groups Module

class AttrDict

Bases: dict

class SecurityGroupsOutputTest(*args, **kwargs)

Bases: nova.test.TestCase

content_type = 'application/json'
setUp()
test_create()
test_detail()
test_no_instance_passthrough_404()
test_show()
class SecurityGroupsOutputXmlTest(*args, **kwargs)

Bases: nova.tests.api.openstack.compute.contrib.test_security_groups.SecurityGroupsOutputTest

class MinimalCreateServerTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
SecurityGroupsOutputXmlTest.content_type = 'application/xml'
class TestSecurityGroupRules(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_create_add_existing_rules_by_cidr()
test_create_add_existing_rules_by_group_id()
test_create_by_cidr()
test_create_by_group_id()
test_create_by_invalid_cidr_json()
test_create_by_invalid_icmp_port_json()
test_create_by_invalid_tcp_port_json()
test_create_by_same_group_id()
test_create_none_value_from_to_port()
test_create_none_value_from_to_port_icmp()
test_create_none_value_from_to_port_tcp()
test_create_rule_cidr_allow_all()
test_create_rule_cidr_allow_some()
test_create_rule_cidr_bad_netmask()
test_create_rule_cidr_ipv6_allow_all()
test_create_rule_quota_limit()
test_create_with_empty_group_id()
test_create_with_invalid_cidr()
test_create_with_invalid_from_port()
test_create_with_invalid_group_id()
test_create_with_invalid_parent_group_id()
test_create_with_invalid_protocol()
test_create_with_invalid_to_port()
test_create_with_no_body()
test_create_with_no_cidr_group()
test_create_with_no_from_port()
test_create_with_no_ports_icmp()
test_create_with_no_ports_tcp()
test_create_with_no_ports_udp()
test_create_with_no_protocol()
test_create_with_no_security_group_rule_in_body()
test_create_with_no_to_port()
test_create_with_non_existing_parent_group_id()
test_create_with_non_numerical_from_port()
test_create_with_non_numerical_to_port()
test_create_with_nonexist_group_id()
test_create_with_ports_icmp()
test_create_with_ports_tcp()
test_create_with_ports_udp()
test_create_with_same_group_parent_id_and_group_id()
test_delete()
test_delete_invalid_rule_id()
test_delete_non_existing_rule_id()
class TestSecurityGroupRulesXMLDeserializer(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_corrupt_xml()

Should throw a 400 error on corrupt xml.

test_create_no_protocol_request()
test_create_request()
class TestSecurityGroupXMLDeserializer(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_corrupt_xml()

Should throw a 400 error on corrupt xml.

test_create_no_description_request()
test_create_no_name_request()
test_create_request()
class TestSecurityGroupXMLSerializer(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_group_serializer()
test_groups_serializer()
test_rule_serializer()
class TestSecurityGroups(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
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_create_security_group()
test_create_security_group_above_255_characters_description()
test_create_security_group_above_255_characters_name()
test_create_security_group_non_string_description()
test_create_security_group_non_string_name()
test_create_security_group_quota_limit()
test_create_security_group_with_blank_description()
test_create_security_group_with_blank_name()
test_create_security_group_with_duplicate_name()
test_create_security_group_with_no_body()
test_create_security_group_with_no_description()
test_create_security_group_with_no_name()
test_create_security_group_with_no_security_group()
test_create_security_group_with_whitespace_description()
test_create_security_group_with_whitespace_name()
test_delete_security_group_by_id()
test_delete_security_group_by_invalid_id()
test_delete_security_group_by_non_existing_id()
test_delete_security_group_in_use()
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_get_security_group_by_id()
test_get_security_group_by_instance()
test_get_security_group_by_instance_invalid_id()
test_get_security_group_by_instance_non_existing()
test_get_security_group_by_invalid_id()
test_get_security_group_by_non_existing_id()
test_get_security_group_list()
test_get_security_group_list_all_tenants()
fake_compute_create(*args, **kwargs)
fake_compute_get(*args, **kwargs)
fake_compute_get_all(*args, **kwargs)
fake_get_instances_security_groups_bindings(inst, context)
return_non_running_server(context, server_id)
return_security_group_by_name(context, project_id, group_name)
return_security_group_without_instances(context, project_id, group_name)
return_server(context, server_id)
return_server_by_uuid(context, server_uuid)
return_server_nonexistent(context, server_id)
security_group_db(security_group, id=None)
security_group_rule_db(rule, id=None)
security_group_rule_template(**kwargs)
security_group_template(**kwargs)

Previous topic

The nova.tests.api.openstack.compute.contrib.test_security_group_default_rules Module

Next topic

The nova.tests.api.openstack.compute.contrib.test_server_diagnostics Module

This Page