The neutron_fwaas.tests.unit.db.firewall.test_firewall_db Module

class neutron_fwaas.tests.unit.db.firewall.test_firewall_db.FakeAgentApi

Bases: neutron_fwaas.services.firewall.fwaas_plugin.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(context, firewall, **kwargs)
class neutron_fwaas.tests.unit.db.firewall.test_firewall_db.FirewallPluginDbTestCase(*args, **kwds)

Bases: neutron_fwaas.tests.base.NeutronDbPluginV2TestCase

firewall(*args, **kwds)
firewall_policy(*args, **kwds)
firewall_rule(*args, **kwds)
resource_prefix_map = {‘firewall_rules’: ‘/fw’, ‘firewalls’: ‘/fw’, ‘firewall_policies’: ‘/fw’}
setUp(core_plugin=None, fw_plugin=None, ext_mgr=None)
class neutron_fwaas.tests.unit.db.firewall.test_firewall_db.TestFirewallDBPlugin(*args, **kwds)

Bases: neutron_fwaas.tests.unit.db.firewall.test_firewall_db.FirewallPluginDbTestCase

test_check_router_has_no_firewall_passes(*args, **kwargs)
test_check_router_has_no_firewall_raises(*args, **kwargs)
test_create_admin_firewall_policy_with_other_tenant_rules(*args, **kwargs)
test_create_firewall(*args, **kwargs)
test_create_firewall_dest_port_illegal_range(*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_with_admin_and_fwp_different_tenant(*args, **kwargs)
test_create_firewall_with_admin_and_fwp_is_shared(*args, **kwargs)
test_create_firewall_with_dvr(*args, **kwargs)
test_create_firewall_with_fwp_does_not_exist(*args, **kwargs)
test_create_firewall_with_fwp_not_found_on_different_tenant(*args, **kwargs)
test_create_firewall_without_source(*args, **kwargs)
test_create_shared_firewall_policy_with_unshared_rule(*args, **kwargs)
test_delete_firewall(*args, **kwargs)
test_delete_firewall_policy(*args, **kwargs)
test_delete_firewall_policy_with_firewall_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_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_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_policies(*args, **kwargs)
test_list_firewall_rules(*args, **kwargs)
test_list_firewalls(*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(*args, **kwargs)
test_show_firewall_by_name(*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(*args, **kwargs)
test_update_firewall_fwp_not_found_on_different_tenant(*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_rules(*args, **kwargs)
test_update_firewall_policy_with_shared_attr_exist_unshare_rule(*args, **kwargs)
test_update_firewall_policy_with_shared_attr_unshared_rule(*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_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_firewall_with_admin_and_fwp_different_tenant(*args, **kwargs)
test_update_firewall_with_fwp(*args, **kwargs)
test_update_firewall_with_shared_fwp(*args, **kwargs)
test_update_shared_firewall_policy_with_unshared_rule(*args, **kwargs)