The neutron_fwaas.tests.unit.db.firewall.v2.test_firewall_db_v2 Module

class neutron_fwaas.tests.unit.db.firewall.v2.test_firewall_db_v2.FakeAgentApi

Bases: neutron_fwaas.services.firewall.fwaas_plugin_v2.FirewallCallbacks

This class used to mock the AgentAPI delete method inherits from FirewallCallbacks because it needs access to the firewall_deleted method. The delete_firewall method belongs to the FirewallAgentApi, which has no access to the firewall_deleted method normally because it’s not responsible for deleting the firewall from the DB. However, it needs to in the unit tests since there is no agent to call back.

delete_firewall_group(context, firewall_group, **kwargs)
class neutron_fwaas.tests.unit.db.firewall.v2.test_firewall_db_v2.FirewallPluginV2DbTestCase(*args, **kwds)

Bases: neutron_fwaas.tests.base.NeutronDbPluginV2TestCase

firewall_group(*args, **kwds)
firewall_policy(*args, **kwds)
firewall_rule(*args, **kwds)
resource_prefix_map = {'firewall_groups': '/fwaas', 'firewall_rules': '/fwaas', 'firewall_policies': '/fwaas'}
setUp(core_plugin=None, fw_plugin=None, ext_mgr=None)
class neutron_fwaas.tests.unit.db.firewall.v2.test_firewall_db_v2.TestFirewallDBPluginV2(*args, **kwds)

Bases: neutron_fwaas.tests.unit.db.firewall.v2.test_firewall_db_v2.FirewallPluginV2DbTestCase

test_create_admin_firewall_policy_with_other_tenant_rules(*args, **kwargs)
test_create_firewall_dest_port_illegal_range(*args, **kwargs)
test_create_firewall_group(*args, **kwargs)
test_create_firewall_group_with_admin_and_fwp_different_tenant(*args, **kwargs)
test_create_firewall_group_with_admin_and_fwp_is_public(*args, **kwargs)
test_create_firewall_group_with_dvr(*args, **kwargs)
test_create_firewall_group_with_empty_ports(*args, **kwargs)
test_create_firewall_group_with_fwp_does_not_exist(*args, **kwargs)
test_create_firewall_group_with_fwp_on_different_tenant(*args, **kwargs)
test_create_firewall_group_with_ports(*args, **kwargs)
test_create_firewall_policy(*args, **kwargs)
test_create_firewall_policy_with_previously_associated_rule(*args, **kwargs)
test_create_firewall_policy_with_rules(*args, **kwargs)
test_create_firewall_rule(*args, **kwargs)
test_create_firewall_rule_icmp_with_port(*args, **kwargs)
test_create_firewall_rule_icmp_without_port(*args, **kwargs)
test_create_firewall_rule_with_ipv6_addrs_and_wrong_ip_version(*args, **kwargs)
test_create_firewall_rule_without_destination(*args, **kwargs)
test_create_firewall_rule_without_protocol_with_dport(*args, **kwargs)
test_create_firewall_rule_without_protocol_with_sport(*args, **kwargs)
test_create_firewall_src_port_illegal_range(*args, **kwargs)
test_create_firewall_without_source(*args, **kwargs)
test_create_public_firewall_policy_with_nonpublic_rule(*args, **kwargs)
test_delete_firewall(*args, **kwargs)
test_delete_firewall_policy(*args, **kwargs)
test_delete_firewall_policy_with_firewall_group_association(*args, **kwargs)
test_delete_firewall_policy_with_rule(*args, **kwargs)
test_delete_firewall_rule(*args, **kwargs)
test_delete_firewall_rule_with_policy_associated(*args, **kwargs)
test_get_policy_ordered_rules(*args, **kwargs)
test_insert_rule_and_already_associated(*args, **kwargs)
test_insert_rule_for_policy_of_other_tenant(*args, **kwargs)
test_insert_rule_for_prev_associated_ref_rule(*args, **kwargs)
test_insert_rule_for_previously_associated_rule(*args, **kwargs)
test_insert_rule_for_previously_associated_rule_other_tenant(*args, **kwargs)
test_insert_rule_in_policy(*args, **kwargs)
test_insert_rule_in_policy_failures(*args, **kwargs)
test_insert_rule_in_policy_with_prior_rules_added_via_update(*args, **kwargs)
test_list_firewall_groups(*args, **kwargs)
test_list_firewall_policies(*args, **kwargs)
test_list_firewall_rules(*args, **kwargs)
test_remove_rule_and_not_associated(*args, **kwargs)
test_remove_rule_from_policy(*args, **kwargs)
test_remove_rule_from_policy_failures(*args, **kwargs)
test_show_firewall_group(*args, **kwargs)
test_show_firewall_group_by_name(*args, **kwargs)
test_show_firewall_group_with_empty_ports(*args, **kwargs)
test_show_firewall_group_with_ports(*args, **kwargs)
test_show_firewall_policy(*args, **kwargs)
test_show_firewall_policy_by_name(*args, **kwargs)
test_show_firewall_rule_by_name(*args, **kwargs)
test_show_firewall_rule_with_fw_policy_associated(*args, **kwargs)
test_show_firewall_rule_with_fw_policy_not_associated(*args, **kwargs)
test_update_firewall_group(*args, **kwargs)
test_update_firewall_group_fwp_not_found_on_different_tenant(*args, **kwargs)
test_update_firewall_group_with_admin_and_fwp_different_tenant(*args, **kwargs)
test_update_firewall_group_with_fwp(*args, **kwargs)
test_update_firewall_group_with_public_fwp(*args, **kwargs)
test_update_firewall_policy(*args, **kwargs)
test_update_firewall_policy_assoc_with_other_tenant_firewall(*args, **kwargs)
test_update_firewall_policy_reorder_rules(*args, **kwargs)
test_update_firewall_policy_replace_rules(*args, **kwargs)
test_update_firewall_policy_set_audited_false(*args, **kwargs)
test_update_firewall_policy_with_audited_set_true(*args, **kwargs)
test_update_firewall_policy_with_non_existing_rule(*args, **kwargs)
test_update_firewall_policy_with_public_attr_exist_unshare_rule(*args, **kwargs)
test_update_firewall_policy_with_public_attr_nonpublic_rule(*args, **kwargs)
test_update_firewall_policy_with_rules(*args, **kwargs)
test_update_firewall_rule(*args, **kwargs)
test_update_firewall_rule_associated_with_other_tenant_policy(*args, **kwargs)
test_update_firewall_rule_icmp_with_port(*args, **kwargs)
test_update_firewall_rule_with_ipv6_ipaddr(*args, **kwargs)
test_update_firewall_rule_with_policy_associated(*args, **kwargs)
test_update_firewall_rule_with_port(*args, **kwargs)
test_update_firewall_rule_with_port_and_no_proto(*args, **kwargs)
test_update_firewall_rule_with_port_and_protocol(*args, **kwargs)
test_update_firewall_rule_with_port_illegal_range(*args, **kwargs)
test_update_firewall_rule_without_ports_and_no_proto(*args, **kwargs)
test_update_public_firewall_policy_with_nonpublic_rule(*args, **kwargs)